Hi Matthias!

I made a Jakarta-Ant build.xml file for JabberPollingServlet.
Modify three values according to your environment:
1. the property value of J2EE_HOME in build.xml
2. the parameter value of jabber.server in web.xml
3. the parameter value of jabber.port in web.xml

Please include these files in the next release of JabberPollingServlet,
if you like it.


P.S.
I just succeeded the experiment in the configuration below:

  Exodus --HTTP_DirectConnection--> JabberPollingServlet on Tomcat
    --> jabberd on localhost:5222

Btw, I sent some requests to charente.de because of bad configuration.
I am sorry for that.

Now I will try experiments with http proxies and so on.
It will take some time for me to fully understand HTTP polling
with proxies and SSL. Well, I am making progress step by step :)

--
)Hiroaki Nakamura) [EMAIL PROTECTED]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC
    "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd";>
<web-app>
  <display-name>JabberHTTPPolling</display-name>

  <servlet>
    <servlet-name>JabberPollingServlet</servlet-name>
    <servlet-class>JabberPollingServlet</servlet-class>
    <init-param>
      <param-name>jabber.server</param-name>
      <param-value>e002800</param-value>
    </init-param>
    <init-param>
      <param-name>jabber.port</param-name>
      <param-value>5222</param-value>
    </init-param>
  </servlet>
  <servlet-mapping>
    <servlet-name>JabberPollingServlet</servlet-name>
    <url-pattern>/poll/*</url-pattern>
  </servlet-mapping>
</web-app>
<?xml version="1.0" encoding="UTF-8"?>

<project name="JabberHTTPPolling" default="war" basedir=".">
  <property name="J2EE_HOME" value="/j2sdkee1.3.1"/>

  <target name="war" depends="compile">
    <war warfile="JabberPolling.war" webxml="web.xml">
      <classes dir=".">
        <include name="*.class"/>
      </classes>
    </war>
  </target>

  <target name="compile">
    <javac srcdir="." destdir="."
        debug="true" deprecation="true" optimize="true">
      <classpath>
        <pathelement path="${J2EE_HOME}/lib/j2ee.jar"/>
      </classpath>
      <patternset>
        <include name="*.java"/>
      </patternset>
    </javac>
  </target>

  <target name="clean">
    <delete>
      <fileset dir=".">
        <include name="*.class"/>
        <include name="*.war"/>
      </fileset>
    </delete>
  </target>
</project>

Reply via email to