2 Replies Latest reply on Sep 5, 2006 1:16 PM by Ovidiu Feodorov

    HTTP example not working

    Peter Johnson Master

      The http example client in 1.0.1.CR4 has a few issues, one which is easily fixed, the others are a bit more difficult.

      First, in example/http/build.xml the Ant property jboss.configuration never gets set, so the messaging-http-service.xml file gets copied to the wrong location. To fix this, add the line:

      <property name="jboss.configuration" value="messaging"/>


      anywhere after the line:

      <property file="./do-not-distribute.properties"/>


      The other two problems are more difficult to fix. In the class org.jboss.jms.server.remoting.JMSWireFormat, the methods write() and read() contain sanity checks to ensure that the parameters out and in are instances of ObjectOutputStream and ObjectInputStream, respectively. But they are not. Instead, out and in are instances of sun.net.www.http.PosterOutputStream (which extends ByteArrayOutpStream) and sun.net.www.protocol.http.HttpURLConnection$HttpInputStream (which extends FilterInoutStream), respectively. Unfortunately, wrapping these classes within the expected classes doesn't work.

      I searched through the forums and JIRA and didn't see anything on this.

      I am using JBoss AS 4.0.4.GA with EJB3, JVM 5.0_08.