geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan <xhh...@gmail.com>
Subject Re: Using vm:// transport for ActiveMQ5.3 (Geronimo 2.2)
Date Thu, 22 Apr 2010 12:47:10 GMT
Hi, for vm protocol, I do not think that you need to add any connector in
the ActiveMQ configuration file, also, it should use broker name in the
server url, or ActiveMQ server will choose a broker for you.
By default, Geronimo 2.2 would create a broker name DefaultActiveMQBroker,
so the url should something like vm://DefaultActiveMQBroker

2010/4/22 easyl <thlin.box@gmail.com>

>
> I try to add a vm protocal in activemq.xml
>
> <transportConnectors>
>            <transportConnector name="openwire"
> uri="tcp://${ServerHostname}:${${ActiveMQPort} + ${PortOffset}}" />
>            <transportConnector name="openwireVM"
> uri="vm://${ServerHostname}" />
>        </transportConnectors>
>
> and make a jms resource in deployment
>
> <conn:config-property-setting
>
> name="ServerUrl">vm://localhost?jms.copyMessageOnSend=false&amp;jms.watchTopicAdvisories=false</conn:config-property-setting>
>
>
> while starting up application, I got such warning...
>
> Module 77/78 My/app.ear/1.0/ear
> 2010-04-22 11:13:12,352 WARN  [BrokerRegistry] Broker localhost not started
> so using DefaultActiveMQBroker instead
> 2010-04-22 11:13:12,444 WARN  [BrokerRegistry] Broker localhost not started
> so using DefaultActiveMQBroker instead
>  started in  1.670s
>
> Startup completed in 29.762s seconds
> java.lang.IllegalArgumentException: port out of range:-1
>        at java.net.InetSocketAddress.<init>(InetSocketAddress.java:118)
>        at
>
> org.apache.geronimo.activemq.management.ActiveMQTransportConnector.getListenAddress(ActiveMQTransportConnector.java:135)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at
>
> org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanAttribute.getValue(GBeanAttribute.java:364)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanInstance.getAttribute(GBeanInstance.java:677)
>        at
>
> org.apache.geronimo.kernel.basic.BasicKernel.getAttribute(BasicKernel.java:176)
>        at
>
> org.apache.geronimo.system.main.StartupMonitorUtil.wrapUp(StartupMonitorUtil.java:108)
>        at
>
> org.apache.geronimo.system.main.LongStartupMonitor.startupFinished(LongStartupMonitor.java:160)
>        at
>
> org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:194)
>        at
>
> org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:78)
>        at
>
> org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
>        at
> org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
>        at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30)
>
> --
> View this message in context:
> http://apache-geronimo.328035.n3.nabble.com/Using-vm-transport-for-ActiveMQ5-3-Geronimo-2-2-tp742434p742434.html
> Sent from the Users mailing list archive at Nabble.com.
>



-- 
Ivan

Mime
View raw message