-
1. Re: Fuse Fabric + Active MQ
yngve2 Sep 8, 2014 9:22 AM (in response to virchete)The correct URL is:
discovery:(fabric:default)
-
2. Re: Fuse Fabric + Active MQ
virchete Sep 9, 2014 5:05 AM (in response to yngve2)Hi,
I have tried the url you suggested me:
ConnectionFactory connectionFactory = new ActiveMQConnectionFactory(username, password, "discovery:(fabric://default)"); When this line is executed then I receive an exception:
https://gist.github.com/dvirgiln/179c5adeaa1b6972411c
This class belongs to the activemq client jar. And the mq-client profile has been added.
Additionaly I have another question. It is required for creating the ActiveMQConnectionFactory the credentials username/password. Could it be deactivated? I say this because right now the username/password is stored into a properties file, but as the profiles are common for different container instances it has no sense to maintain a common username/password.
-
3. Re: Fuse Fabric + Active MQ
davsclaus Sep 9, 2014 8:43 AM (in response to virchete)Can you tell more about what you have otherwise customized as there is some overlord in the stacktrace. And it may be that overlord is not OSGi friendly causing that problem.
java.lang.NoClassDefFoundError: org/apache/activemq/broker/region/policy/RedeliveryPolicyMap
at org.apache.activemq.ActiveMQConnectionFactory.<init>(ActiveMQConnectionFactory.java:85)
at org.overlord.sramp.events.jms.JMSEventProducer.startup(JMSEventProducer.java:141)
at org.overlord.sramp.server.SrampLifeCycle.contextInitialized(SrampLifeCycle.java:24)
-
4. Re: Fuse Fabric + Active MQ
virchete Oct 20, 2014 11:19 AM (in response to davsclaus)Hi Claus,
This error dissapeared. No worries about this.