You transportConnector and networkConnector entries look fine. I am guessing that since you appear to be running these instances on the same host, you probebly need to look at the ActiveMQ persistenceAdapter entry in activemq.xml and make sure they are pointing to different locations for the journal data. This message leads me to believe that the instances are looking at the same location, so the first instance starts fine, and the second one can't lock the journal.
Chris -- Chris Custine My Blog :: http://blog.organicelement.com Apache ServiceMix :: http://servicemix.apache.org Apache Directory Server :: http://directory.apache.org On Wed, Aug 13, 2008 at 4:53 AM, Grzegorz Kokosiński <[EMAIL PROTECTED]> wrote: > Hi. > I try to cluster two instances of servicemix. Each of them is run > independly. I set network connector to each other. In each brokerName is the > same. > One of them writes in logs that: > > INFO - org.apache.activemq.store.DefaultPersistenceAdapterFactory - > Journal is locked... waiting 10 seconds for the journal to be unlocked. > > After that I can not close that instance, I have to kill it. > > What does it mean? > > This a piece of $SMX/conf/activemq.xml: > > First one: > > <beans xmlns:amq="http://activemq.org/config/1.0"> > > <amq:broker id="broker" brokerName="broker" depends-on="jmxServer" > useShutdownHook="false"> > > <amq:transportConnectors> > <amq:transportConnector uri="tcp://localhost:61617"/> <!-- > discoveryUri="multicast://default"/--> > </amq:transportConnectors> > > <amq:networkConnectors> > <amq:networkConnector uri="static://(tcp://localhost:61616)"/> > </amq:networkConnectors> > > <!-- the rest of config --> > > </beans> > > Second one: > <beans xmlns:amq="http://activemq.org/config/1.0"> > > <amq:broker id="broker" brokerName="broker" depends-on="jmxServer" > useShutdownHook="false"> > > <amq:transportConnectors> > <amq:transportConnector uri="tcp://localhost:61616"/> <!-- > discoveryUri="multicast://default"/--> > </amq:transportConnectors> > > <amq:networkConnectors> > <amq:networkConnector uri="static://(tcp://localhost:61617)"/> > </amq:networkConnectors> > > <!-- the rest of config --> > > </beans> > > Thanks in advance. > Grzesiek >
