Connecting iis to openfire

Hi at all

I want to forward request by MS ISS to openfire server for connect my XMPP web client.

i sow on the web and this forum, an howto for connect MS IIS to a generic java application server (in this case Jetty). This howto use a AJP protocol to connect the two servers.

Openfire support this?

on the howto, is necessary modify a jetty.xml configuration file

<Call name="addConnector">
  <Arg>
    <New class="org.mortbay.jetty.ajp.Ajp13SocketConnector">
      <Set name="port">8009</Set>
    </New>
  </Arg>
</Call>

where can I put this on OpenFire?

There is another solution to realize that?

Thanks in advance

Daniele

Try this:

http://www.igniterealtime.org/community/thread/32557

tnx for your help but i foud another solution:

i found a proxy script in jsp, that redirect all request to another host and port. it works fine under iis6

To help someone with same problem, this is the script:

<%@page session=“true”%>
<%@page import=“java.net.,java.io.” %>
<%
try {

String reqUrl = "[http://YOURHOSTOPENFIRE:PORT/http-bind/](http://YOURHOST:PORT/http-bind/)";

URL url = new URL(reqUrl);
HttpURLConnection con = (HttpURLConnection)url.openConnection();
con.setDoOutput(true);
con.setRequestMethod(request.getMethod());
int clength = request.getContentLength();
if(clength > 0) {
    con.setDoInput(true);
    byte[] idata = new byte[clength];
    request.getInputStream().read(idata, 0, clength);
    con.getOutputStream().write(idata, 0, clength);
}
response.setContentType(con.getContentType());

BufferedReader rd = new BufferedReader(new InputStreamReader(con.getInputStream()));
String line;
while ((line = rd.readLine()) != null) {
    out.println(line); 
}
rd.close();

} catch(Exception e) {
response.setStatus(500);
}
%>

Regards Daniele