Hi,
I would like to configure my jms router resource directly in tomcat and
perform a jndi lookup to get this resource. But I am not sure how this is
working. For example in the code I have this:
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.swiftmq.jndi.InitialContextFactoryImpl");
env.put(Context.PROVIDER_URL, "smqp://192.168.10.54:4001/timeout=10000");
Context jndiContext = new InitialContext(env);
Queue q1 = (Queue)jndiContext.lookup("myQueue");
What I would like to do is configure the router in tomcat so I can do this
in the code:
Context initContext = new InitialContext();
Context envContext = (Context)initContext.lookup("java:/comp/env");
Queue ds = (Queue)initContext.lookup("myQueue");
Does anyone know how I can do this??
Thanks for listening,
Steve.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]