activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BenXS <bxsto...@yahoo.co.uk>
Subject Possible to define in java product independent BrokerURL/CoonectionFactory?
Date Fri, 30 Jul 2010 07:31:32 GMT

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.


Mime
View raw message