Hi! Try changing:
Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory"); env.put(Context.PROVIDER_URL, "http://localhost:1099/"); InitialContext intCtx = new InitialContext(env); For: Properties props = new Properties(); props.setProperty("java.naming.provider.url", "jnp://localhost:1099"); props.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming"); props.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory"); InitialContext intCtx = new InitialContext( props ); This is what I'm using in my client. The topic polkTopic has to be defined in the file jbossmq-destinations-service.xml The problem could also be the jar files, check you have all that JMS & JBoss need. Good Luck !! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3919419#3919419 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3919419 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user