[jboss-user] [JBoss Messaging] - HTTP example not working

PeterJ do-not-reply at jboss.com
Mon Sep 4 15:52:50 EDT 2006


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.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969290#3969290

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969290



More information about the jboss-user mailing list