Re: Exception occur when JNDI lookup

2007-12-06 Thread xy_wen
de(DeliveryMode.NON_PERSISTENT); session.createConsumer((Topic)contxt.lookup("jmsreMsgControl")).setMessageListener(this); connection.start(); James.Strachan wrote: > > On 06/12/2007, xy_wen <[EMAIL PROTECTED]> wrote: >> >> I am using tomcat 5.5 wi

Exception occur when JNDI lookup

2007-12-05 Thread xy_wen
I am using tomcat 5.5 with Activemq 4.1.1.I have written a simple test example to get the connectfatory and topic information using JNDI. this is my test client: InitialContext iniContxt = new InitialContext(); Context contxt = (Context) iniContxt.lookup("java:comp/env/jmsConnect