2009/8/7 An An <anjusm...@gmail.com>: > > Hi James, > Thanks for the reply. > I have set the JBoss jndi properties already. > So I do this in the code :- > << > Properties props = new Properties(); > > props.setProperty(Context.INITIAL_CONTEXT_FACTORY,"org.apache.activemq.jndi.ActiveMQInitialContextFactory"); > > props.setProperty(Context.PROVIDER_URL,"tcp://localhost:61616"); > javax.naming.Context ctx = new InitialContext(props); > Queue queue = (Queue) ctx.lookup("activemq/queue/outbound");
If you are going to create your own JNDI properties, this page describes how to configure resources inside JNDI http://activemq.apache.org/jndi-support.html -- James ------- http://macstrac.blogspot.com/ Open Source Integration http://fusesource.com/