ConnectionFactory


The ConnectionFactory object encapsulates a set of connection configuration parameters. These objects are created using the administration interface and they are stored and managed by the TIBCO Enterprise Message Service server. See Using the Administration Tool for more information about creating and managing connection factories.

When a client starts, it typically performs a Java Naming and Directory Interface (JNDI) lookup for the ConnectionFactories that it needs. For example, the following code retrieves the InitialContext using the JNDI properties specified by env, then looks up a ConnectionFactory named myConnectionFactory.

Context ctx = new InitialContext(env); 
ConnectionFactory myConnectionFactory = 
   (ConnectionFactory) ctx.lookup("myConnectionFactory"); 

See Using JNDI with TIBCO Enterprise Message Service for more information about using JNDI with TIBCO Enterprise Message Service.


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