Hi all,
Could someone tell me how to look up a queue in
Jboss... I have a created a queue by name "userQueue",
by specifying it in jbossmq.xml.. and i am trying to
look up the same in a sample application.. but it
throws NameNotFoundException: the code is here...

Properties env = new Properties();
                env.setProperty(Context.INITIAL_CONTEXT_FACTORY, 
"org.jnp.interfaces.NamingContextFactory");
                env.setProperty(Context.PROVIDER_URL, 
"localhost:1099");
                env.setProperty(Context.URL_PKG_PREFIXES, 
"org.jboss.naming");

                InitialContext ic=new InitialContext(env);

                Queue q=(Queue)ic.lookup("userQueue");

Thanks in advance..
Keerthi

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to