For example: for a server assigned non-secure port7278, on hostboothost1, that uses the default transport chainBootstrapBasicMessaging: boothost1:7278:BootstrapBasicMessaging or boothost1:7278 and for a server assigned secure port7289, on hostboothost2, that uses the predefined transport cha...
To enable client applications to create broker connections, add a connection factory administered object for the type of connection to be created: a queue connection factory or a topic connection factory, as the case may be.Example 11–1shows a command to add a queue connection factory (administ...
Example 2–2shows how to create a connection factory object by direct instantiation and configure its properties. Example 2–2 Instantiating a Connection Factory // Instantiate the connection factory object. com.sun.messaging.ConnectionFactory myFactory = new com.sun.messaging.ConnectionFactory(); //...
The application code is similar to the following example: javax.jms.QueueConnectionFactory myQCF = null; InitialContext ic = null; //... setup InitialContext here ... try { myQCF = (QueueConnectionFactory)ic.lookup("jms/myQCF"); } catch(Throwable e) { e.printStackTra...
Example 2–1 Looking Up a Connection Factory // Create the environment for constructing the initial JNDI // naming context. Hashtable env = new Hashtable(); // Store the environment attributes that tell JNDI which initial context // factory to use and where to find the provider.// ...
For example, if the user name is Calvin and the string specified for the connection factory’s imqConfiguredClientID attribute is ${u}Hobbes, the client identifier assigned will be u:CalvinHobbes. Note – This scheme will not work if two clients both attempt to obtain connections using the...
It is possible for the same queue manager to be shown more than once in the Queue Managers folder if each connection uses different connection details; for example, a local queue manager could be connected using 'localhost' as the host name, and it could also be connected using the IP ...
For example: for a server assigned non-secure port7278, on hostboothost1, that uses the default transport chainBootstrapBasicMessaging: boothost1:7278:BootstrapBasicMessaging or boothost1:7278 and for a server assigned secure port7289, on hostboothost2, that uses the predefined transport chai...
Example 2–2 shows how to reconfigure an admin connection factory's properties to nondefault values. Instead of using the default broker address (localhost:7676), the code shown here uses the connection factory's setProperty method to reconfigure it to connect to a broker at port 9898 on host...
For example: for a server assigned non-secure port7278, on hostboothost1, that uses the default transport chainBootstrapBasicMessaging: boothost1:7278:BootstrapBasicMessaging or boothost1:7278 and for a server assigned secure port7289, on hostboothost2, that uses the predefined transport cha...