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: Getting a list of active topics from a JMS client
Date Wed, 10 May 2006 21:04:44 GMT
On 5/10/06, chris24 <ilkt24@gmail.com> wrote:
>
> How would I get access to a broker object or a region object in my client
> code? I currently connect to the standalone broker like this (using the
> default jndi properties with some new topics):
>         // Obtain a JNDI connection
>         mJndi = new InitialContext();
>
>         // Look up a JMS connection factory
>         TopicConnectionFactory conFactory =
>         (TopicConnectionFactory)mJndi.lookup("TopicConnectionFactory");
>
>         // Create a JMS connection
>         TopicConnection connection =
>         conFactory.createTopicConnection();

See the examples here using Java or Spring...

http://activemq.org/How+do+I+embed+a+Broker+inside+a+Connection

--

James
-------
http://radio.weblogs.com/0112098/

Mime
View raw message