Hello

I'm trying to do the same thing but when the second instance comes up the
first instance gets the following messages:

11:21:04,408 | DEBUG | ActiveMQ Session Task | JMSFlow                  |
i.nmr.flow.jms.AbstractJMSFlow  378 | ServiceMix: broadcasting info for
org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://servicemix.org/wsnotification}Publisher,endpoint=Anonymous]]
11:21:04,411 | DEBUG | ActiveMQ Session Task | JMSFlow                  |
i.nmr.flow.jms.AbstractJMSFlow  378 | ServiceMix: broadcasting info for
org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://servicemix.org/wsnotification}CreatePullPoint,endpoint=Broker]]
11:21:04,411 | DEBUG | ActiveMQ Session Task | JMSFlow                  |
i.nmr.flow.jms.AbstractJMSFlow  378 | ServiceMix: broadcasting info for
org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://servicemix.org/wsnotification}NotificationBroker,endpoint=Broker]]
11:21:04,443 | DEBUG |
pool-flow.jca.ActiveMQ.Advisory.Consumer.Topic.org.apache.servicemix.JCAFlow-thread-3
| JCAFlow                  | cemix.jbi.nmr.flow.jca.JCAFlow  389 |
ServiceMix: broadcasting info for
org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://servicemix.org/wsnotification}Publisher,endpoint=Anonymous]]
11:21:04,448 | DEBUG |
pool-flow.jca.ActiveMQ.Advisory.Consumer.Topic.org.apache.servicemix.JCAFlow-thread-3
| JCAFlow                  | cemix.jbi.nmr.flow.jca.JCAFlow  389 |
ServiceMix: broadcasting info for
org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://servicemix.org/wsnotification}CreatePullPoint,endpoint=Broker]]
11:21:04,457 | DEBUG |
pool-flow.jca.ActiveMQ.Advisory.Consumer.Topic.org.apache.servicemix.JCAFlow-thread-3
| JCAFlow                  | cemix.jbi.nmr.flow.jca.JCAFlow  389 |
ServiceMix: broadcasting info for
org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://servicemix.org/wsnotification}NotificationBroker,endpoint=Broker]]

So the underlying ActiveMqs are connected via multicast. I want my
ServiceMix instances to be totally independent.   Do I need to turn off the
multicasting? Should I turn off the multicasting? How do I turn off the
multicasting? 

Thanks
Tom



mattrpav wrote:
> 
> Sanjay-
> 
> Its technically possible, but requires some attentiveness.  
> 
> There are two approaches: 
> 
> 1. An IP per instance.  Each instance listens on the same port numbers,
> but on specific IPs, not *:8080, but 10.0.0.10:8080 and 10.0.0.11:8080.
> 2. Change the ports of the second instance to not conflict with the first.
> 
> Technically, you should be able to have two instances tied to their own
> IP, but I've never proven that all the components support that properly. 
> Below is the approach for changing all the ports in the second instance. 
> Leave the first one alone.
> 
> Find files that have a port config:
> find $SM_HOME/conf -type f -exec grep port {} \; 
> 
> For sure these files..
> conf/activemq.xml
> conf/servicemix.properties
> conf/servicemix.xml
> 
> NOTE:: *** BE SURE TO SETUP THE ACTIVEMQ PORTS CORRECTLY ***  All heck
> breaks loose, if you have one SM instance sending messages to another's
> ActiveMQ.
> 
> and if you have DEBUG enabled, you'll need to change the JVM debug port in 
> bin/servicemix
> 
> DEFAULT_JAVA_DEBUG_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE
> -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
> 
> Change the '5005' to something else in the second instance.
> 
> Test just the SM setup without any deployed SA's.  Once that works, you
> have to remember to update you SA's to listen on different ports.. 8081 vs
> 8080, etc.  
> 
> Matt Pavlovich
> 

-- 
View this message in context: 
http://www.nabble.com/Installing-Multiple-instances-of-servicemix-tp20134120p21375688.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to