Problems using JMQ 2.0 HTTP tunnerl servlet

I installed IMQ 2.0 and followed the instructions in Appendix B of Administrator's Guide to set up HttpTunnel.

I am having problem creating a sample program to test IMQ's HTTP support.

Here is what I did:

1) install HttpTunnelServlet. No problem, preloaded when iPlanet Enterprise

Server 4.1 is running.

Testing the setup with a browser and I got back the following message:

HTTP tunneling servlet ready.

Servlet Start Time : Thu Jul 19 07:27:44 EDT 2001

Accepting TCP connections from brokers on port : 9000

Total available brokers = 1

Broker List :

raynote:jmqbroker

2) As you can see, I was running jmqbroker with no problem.

3) My problem is in setting up client connection: I used JBuilder 3.0 to

create a java project in which I basically reused HelloWorldServlet.java as

my starting point. Rest assured that I include

%JMQ_HOME%/lib/jmq.jar and jms.jar in my project classpath.

I added the following code after connectionFactory is created. This is

taken right out of p160 of the admin.pdf manual: setting up client

connection.

com.sun.messaging.QueueConnectionFactory qcf =

new com.sun.messaging.QueueConnectionFactory();

QueueConnectionFactory myQConnFactory = qcf;

qcf.setProperty( "JMQConnectionURL"

,

"http://java1/servlet/com.sun.messaging.jmq.transport.httptunnel.servlet.Htt

pTunnelServlet"

);

qcf.setProperty( "JMQConnectionHandler"

,

"com.sun.messging.jmq.jmsclient.protocol.http.HTTPStreamHandler"

);

The code compiled clean. But when I ran it, it threw exception when

qcf.setProperty is called to set up

"JMQConnectionHandler" ....);

Here is the exception I got:

Exception occurred : com.sun.messaging.InvalidPropertyValueException:

JMQConnect

ionHandler=com.sun.messging.jmq.jmsclient.protocol.http.HTTPStreamHandler

com.sun.messaging.InvalidPropertyValueException:

JMQConnectionHandler=com.sun.me

ssging.jmq.jmsclient.protocol.http.HTTPStreamHandler

at

com.sun.messaging.AdministeredObject.setProperty(AdministeredObject.j

ava:331)

at HelloWorldMessageHttp.main(HelloWorldMessageHttp.java:80)

Please advise where I did wrong. I apologize in advance if this is not the

right channel to report the problem. Please direct my problem to the proper

party. Also, if there is a complete sample that demos HTTPTunnel, please let

me know where to get it.

[2627 byte] By [christenscreen] at [2007-11-25 8:06:52]
# 1

There's a typo in your JMQConnectionHandler property.

It should be "com.sun.messaging.jmq.jmsclient.protocol.http.HTTPStreamHandler"

You have a typo in the `messaging' portion. Also, note that we are updating

our FAQ to highlight this typo in the docs and also highlight the preferred

way to configure the client to use HTTP - which is to set the

JMQConnectionType property to HTTP

i.e. setProperty("JMQConnectionType", "HTTP");

or -D"JMQConnectionType=HTTP"

Also, a jar file packaging bug in iMQ 2.0 will require you to include the

jmqutil.jar file in the client class path when the client is connecting via

HTTP.

christenscreen at 2007-7-1 13:57:16 > top of Java-index,Application & Integration Servers,Sun Java System Message Queue...