Connecting Directly to TIBCO Enterprise Message Service Server


Client applications must connect to a running instance of TIBCO Enterprise Message Service server in order to perform any JMS operations.

Normally client applications use JNDI access to look up a ConnectionFactory object in order to connect to the server. For more information on JNDI-based access to the server, refer to Using JNDI with TIBCO Enterprise Message Service.

However, in rare cases applications may connect to the server directly.

In order to connect to the server directly, the application must use one of the following statements.

For the common facility interface, use:

ConnectionFactory factory = new  
   com.tibco.tibjms.TibjmsConnectionFactory(server_url); 

For a topic, use:

TopicConnectionFactory factory = new  
   com.tibco.tibjms.TibjmsTopicConnectionFactory(server_url); 

For a queue, use:

QueueConnectionFactory factory = new  
   com.tibco.tibjms.TibjmsQueueConnectionFactory(server_url); 

The server_url parameter in these expressions is a Java string defining the protocol and the address of the running instance of the TIBCO Enterprise Message Service Server. The server_url parameter has the form:

protocol://host:port 

The supported protocols are tcp and ssl.

Examples of the server url string are:

tcp://jmshost:7255  
ssl://localhost:7243 

You can use short forms of the server-url, as described below:

For example, valid forms of the server url are:


TIBCO Enterprise Message Service™ User’s Guide
Software Release 4.3, February 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com