On 5/10/06, chris24 <[EMAIL PROTECTED]> 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/