You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by jeff yung <yu...@hotmail.com> on 2009/11/12 10:52:55 UTC
Exception on local to remote jms bridge
I am trying to connect the local activemq queue to remote jboss queue with
bridge.
It shows nullpointerexception:
ERROR | Failed to initialize the JMSConnector
java.lang.NullPointerException
at javax.naming.InitialContext.getURLScheme(InitialContext.java:228)
at
javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:277)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at
org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:155)
at
org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:88)
at
org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:153)
at
org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178)
at
org.apache.activemq.network.jms.JmsQueueConnector.createForeignQueue(JmsQueueConnector.java:398)
Here is my activemq.xml config file:
<broker xmlns="http://activemq.apache.org/schema/core" id="localbroker"
brokerName="localBroker" persistent="false">
<transportConnectors>
<transportConnector uri="tcp://172.19.174.107:61616" />
</transportConnectors>
<destinations>
<queue physicalName="queue/testQueue"/>
</destinations>
<jmsBridgeConnectors>
<jmsQueueConnector jndiOutboundTemplate="#remoteJndi"
outboundQueueConnectionFactoryName="ConnectionFactory">
<!--jmsQueueConnector outboundQueueConnectionFactory="#localFactory"-->
<outboundQueueBridges>
<outboundQueueBridge localQueueName="queue/testQueue"/>
<outboundQueueBridge outboundQueueName="queue/testQueue"/>
</outboundQueueBridges>
</jmsQueueConnector>
</jmsBridgeConnectors>
</broker>
<!-- JMS ConnectionFactory to use remote -->
<bean id="remoteJndi" class="org.springframework.jndi.JndiTemplate">
<property name="environment">
<props>
<prop
key="java.naming.factory.initial">org.jnp.interfaces.NamingContextFactory</prop>
<prop
key="java.naming.provider.url">jnp://172.19.7.121:1099</prop>
<prop
key="java.naming.factory.url.pkgs">org.jboss.naming:org.jnp.interfaces</prop>
</props>
</property>
</bean>
Any idea how to solve this? Thanks.
--
View this message in context: http://old.nabble.com/Exception-on-local-to-remote-jms-bridge-tp26315287p26315287.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.