You can do that by using Spring - http://activemq.apache.org/spring-support.html
or JNDI - http://activemq.apache.org/jndi-support.html Cheers -- Dejan Bosanac - http://twitter.com/dejanb Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Fri, Jul 30, 2010 at 9:31 AM, BenXS <[email protected]> wrote: > > As far as I can see the suggested way to connect to a running ActiveMQ > MessageBroker > in java POJO is something like: > > import org.apache.activemq.ActiveMQConnectionFactory; > ... > ConnectionFactory connectionFactory = new > ActiveMQConnectionFactory("tcp://localhost:51616"); > > However this definition is not product independent. It refers to ActiveMQ as > MessageBroker. > What if the devleopers decide to change the MessageBroker product? > > In the case above they have to rewrite the java source, > > Is there a product independent way of defining a ConnectionFactory in Java > POJOs? > > Ben > -- > View this message in context: > http://old.nabble.com/Possible-to-define-in-java-product-independent-BrokerURL-CoonectionFactory--tp29303545p29303545.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > >
