Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ecf-dev] Distributed Event Admin - Is possible to specify JMS Client ID???

Hi All,

I'm doing an integration of the ECF Distributed Event Admin ( the jms implementation ) in my project.

It's working ok, so i've been able to connect two use that implementation to send and receiving event
among different equinox nodes.

The only problems that i still have is that at the moment to make test for example with two node ( node 1 and node 2) i've to use different machines ( or vmware ) because if i try to run two equinox connected to the same activemq topic
i've the following exception:

org.eclipse.ecf.core.ContainerCreateException: Exception creating activemq server container at org.eclipse.ecf.internal.provider.jms.activemq.ActiveMQJMSServerContainerInstantiator.createInstance( at org.eclipse.ecf.core.ContainerFactory.createContainer( at org.eclipse.ecf.core.ContainerFactory.createContainer( at at at at at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication( at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start( at at
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(
    at org.eclipse.equinox.launcher.Main.basicRun(
    at org.eclipse.equinox.launcher.Main.main(
Caused by: org.eclipse.ecf.core.util.ECFException: JMS Connect or Setup Exception at at<init>( at org.eclipse.ecf.provider.jms.activemq.container.ActiveMQServerChannel.<init>( at org.eclipse.ecf.provider.jms.activemq.container.ActiveMQJMSServerContainer.start( at org.eclipse.ecf.internal.provider.jms.activemq.ActiveMQJMSServerContainerInstantiator.createInstance(
    ... 18 more
Caused by: javax.jms.InvalidClientIDException: Broker: localhost - Client: tcp://localhost:61616/exampleTopic already connected from / at at at at org.apache.activemq.advisory.AdvisoryBroker.addConnection( at at at at at org.apache.activemq.command.ConnectionInfo.visit( at at$1.onCommand( at org.apache.activemq.transport.TransportFilter.onCommand( at org.apache.activemq.transport.WireFormatNegotiator.onCommand( at org.apache.activemq.transport.InactivityMonitor.onCommand( at org.apache.activemq.transport.TransportSupport.doConsume( at org.apache.activemq.transport.tcp.TcpTransport.doRun( at

From the activemq site it's seems it's possible to specify the JMS client id in the connection factory, so my question is if this
is possible also in ecf.


Back to the top