HTTP transport and Sun ONE Message Queue

How do I get the HTTP transport to work? The docs don't seem to be correct.
[90 byte] By [Guest] at [2007-11-25 8:03:40]
# 1

There are a couple of errors in the Sun ONE Message Queue docs that shipped with

the product.

The following are corrections for those errors.

Servlet configuration

Please note the following correction in the Sun ONE Message Queue 2.0

Administration Guide, Appendix B -

The class name of the HTTP Servlet in Step 4 of the "Configuring the Tunnel Servlet"

section is given as:

com.sun.messging.jmq.transport.httptunnel.servlet.HTTPTunnelServlet

The correct class name is :

com.sun.messaging.jmq.transport.httptunnel.servlet.HttpTunnelServlet

Client setup for HTTP support

1.The following connection factory attributes must be specified to use the HTTP

tunnel connection support.

JMQConnectionType :

Set this attribute to "HTTP".

JMQConnectionURL :

Set this attribute to the URL that will be used to connect to the Sun ONE

Message Queue message service (i.e. the URL for the HTTP tunnel servlet).

Note that there is no need to specify the JMQConnectionHandler attribute as

mentioned in the Sun ONE Message Queue 2.0 Administration Guide -

Appendix B.

2.Before running the client application, set the CLASSPATH variable to include

jmqutil.jar in addition to the standard Sun ONE Message Queue jar files.

This file is located at "/opt/SUNWjmq/lib/jmqutil.jar".

If the "jmqutil.jar" file is not included in the CLASSPATH, the client will get a

"java.lang.NoClassDefFoundError" exception for the class

"com/sun/messaging/jmq/util/JMQTimerTask".

3.If you are using an HTTP proxy, set "http.proxyHost" to the proxy server host

name, and "http.proxyPort" to the proxy server port number using the -D

command line option.

An example command line would look like this:

java -classpath

/opt/SUNWjmq/lib/jms.jar:/opt/SUNWjmq/lib/jmq.jar:

/opt/SUNWjmq/lib/jndi.jar:.:/opt/SUNWjmq/lib/jmqutil.jar

-DJMQConnectionType=HTTP

-DJMQConnectionURL=http://webserver:80/imq/servlet ClientApplicaiton

Guest at 2007-7-1 13:50:38 > top of Java-index,Application & Integration Servers,Sun Java System Message Queue...