Menu

#113 create MQ Connections without JNDI

v3.0 (Rabbit Hole)
open
nobody
None
5
2001-10-21
2001-10-21
No

JbossMQ Connection can now be created with using JNDI.

A connection can be established as follows:

Properties props = new Properties();
props.setProperty
(OILServerILFactory.SERVER_IL_FACTORY_KEY,
OILServerILFactory.SERVER_IL_FACTORY);
props.setProperty
(OILServerILFactory.CLIENT_IL_SERVICE_KEY,
OILServerILFactory.CLIENT_IL_SERVICE);
props.setProperty
(OILServerILFactory.PING_PERIOD_KEY, "1000");
props.setProperty
(OILServerILFactory.OIL_ADDRESS_KEY, "localhost");
props.setProperty
(OILServerILFactory.OIL_PORT_KEY, "8090");

QueueConnectionFactory cf = new SpyConnectionFactory
(props);
QueueConnection c = cf.createQueueConnection();

Discussion


Log in to post a comment.