On 6/1/06, sL07 <[EMAIL PROTECTED]> wrote:

WLS 7.x
Jdk1.4.2
activeMQ-4-RC2
Hi all,

Can the activeMQ be deployed in it own WAR ( ie. the example war with the
distribution) and used by other WAR on the same
app server?

Yes

I can't get this work as it complains about the following.

The error you got looks like you don't have the JMX jars required for
running on JDK 1.4. If you switched to Java 5 these errors would
disappear. Or just add the various mx4j jars to your WAR.

 It seems that the
when the servlet is invoked it  is trying to startup another broker
instance. I don't understand why?

The VM transport only works when the JMS client and broker are in the
same classloader. If you are using 2 separate WARs then the VM
transport cannot be used - so you'll have to use TCP to connect to the
same broker (unless the ActiveMQ classes are placed on the
system/shared classpath).

James


Any ideas?

<May 31, 2006 6:32:19 PM EST> <Notice> <WebLogicServer> <000360> <Server
started
 in RUNNING mode>
TestServelt init
May 31, 2006 6:33:08 PM org.apache.activemq.broker.jmx.ManagementContext
findMBe
anServer
SEVERE: Couldnot load MBeanServer
java.lang.NoClassDefFoundError: javax/management/remote/JMXServiceURL
        at
org.apache.activemq.broker.jmx.ManagementContext.createConnector(Mana
gementContext.java:323)
        at
org.apache.activemq.broker.jmx.ManagementContext.createMBeanServer(Ma
nagementContext.java:293)
        at
org.apache.activemq.broker.jmx.ManagementContext.findMBeanServer(Mana
gementContext.java:272)
        at
org.apache.activemq.broker.jmx.ManagementContext.getMBeanServer(Manag
ementContext.java:145)
        at
org.apache.activemq.broker.jmx.ManagementContext.start(ManagementCont
ext.java:69)
        at
org.apache.activemq.broker.BrokerService.start(BrokerService.java:353
)
        at
org.apache.activemq.transport.vm.VMTransportFactory.doCompositeConnec
t(VMTransportFactory.java:102)
        at
org.apache.activemq.transport.vm.VMTransportFactory.doConnect(VMTrans
portFactory.java:48)
        at
org.apache.activemq.transport.TransportFactory.doConnect(TransportFac
tory.java:42)
        at
org.apache.activemq.transport.TransportFactory.connect(TransportFacto
ry.java:76)
        at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnectio
n(ActiveMQConnectionFactory.java:222)
        at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnectio
n(ActiveMQConnectionFactory.java:210)
        at
org.apache.activemq.ActiveMQConnectionFactory.createQueueConnection(A
ctiveMQConnectionFactory.java:172)
        at
com.ogs.mig.payment.test.TestServlet.setMessageReceiver(TestServlet.j
ava:135)
        at com.ogs.mig.payment.test.TestServlet.init(TestServlet.java:65)
        at
weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(Servl
etStubImpl.java:1092)
        at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:685)
        at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
pl.java:916)
        at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub
--
View this message in context: 
http://www.nabble.com/activeMQ+embedded+broker+in+separate+war-t1713647.html#a4653458
Sent from the ActiveMQ - User forum at Nabble.com.




--

James
-------
http://radio.weblogs.com/0112098/

Reply via email to