You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Dejan Bosanac <de...@nighttale.net> on 2010/07/30 09:47:43 UTC

Re: Possible to define in java product independent BrokerURL/CoonectionFactory?

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 <bx...@yahoo.co.uk> 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.
>
>