activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Strachan <james.strac...@gmail.com>
Subject Re: JBoss and ActiveMQ with remote JNDI
Date Fri, 07 Aug 2009 08:28:47 GMT
2009/8/7 An An <anjusmail@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/

Mime
View raw message