OverviewThe HTTP connector enables OpenJMS clients to connect to the OpenJMS server using HTTP. This is typically used when firewall restrictions prevent the use of the RMI, TCP, and TCPS connectors. Using the HTTP connector
Clients connect to the OpenJMS server via a webserver.
To connect to OpenJMS via a webserver running on the local host, using
the default HTTP configuration, construct an
Hashtable properties = new Hashtable(); properties.put(Context.INITIAL_CONTEXT_FACTORY, "org.exolab.jms.jndi.InitialContextFactory"); properties.put(Context.PROVIDER_URL, "http://localhost:8080/"); Context context = new InitialContext(properties);
The JNDI
"http://<webserver-host>:<webserver-port>/" Where:
Administration using the HTTP connector
To administer an OpenJMS server via the webserver running on the local
host, using the default HTTP configuration, construct a
String url = "http://localhost:8080/"; JmsAdminServerIfc admin = AdminConnectionFactory.create(url);
The URL argument has the same format as the
|