OverviewThe TCP connector enables OpenJMS clients to connect to the OpenJMS server using TCP/IP sockets. Using the TCP connector
To connect to an OpenJMS server running on the local host, using
the default TCP configuration, construct an
Hashtable properties = new Hashtable(); properties.put(Context.INITIAL_CONTEXT_FACTORY, "org.exolab.jms.jndi.InitialContextFactory"); properties.put(Context.PROVIDER_URL, "tcp://localhost:3035/"); Context context = new InitialContext(properties);
The JNDI
"tcp://<server-host>:<jndi-port>/" Where:
Administration using the TCP connector
To administer an OpenJMS server running on the local host, using
the default TCP configuration, construct a
String url = "tcp://localhost:3030/"; JmsAdminServerIfc admin = AdminConnectionFactory.create(url); The URL argument has the format: "tcp://<server-host>:<server-port>/" Where:
|