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();