ActiveMQ Developers,
I've been going around in circles, can't figure out why I get this JMS
Exception: Unknown Destination Type. The message gets routed from
openjms and into activemq, it fails when activemq attempts to
deliver/process the message.
activemq.xml: bridge
<jmsBridgeConnectors>
<jmsQueueConnector name="OpenJMSBridge-Inbound"
jndiOutboundTemplate="#remoteJndi"
outboundQueueConnectionFactoryName="ConnectionFactory"
localQueueConnectionFactory="#localFactory">
<inboundQueueBridges>
<inboundQueueBridge inboundQueueName="jmstojmsBridgeQueue"/>
</inboundQueueBridges>
</jmsQueueConnector>
</jmsBridgeConnectors>
activemq.xml: broker
<bean id="remoteJndi" class="org.springframework.jndi.JndiTemplate">
<property name="environment">
<props>
<prop
key="java.naming.factory.initial">org.exolab.jms.jndi.InitialContextFactory
<prop key="java.naming.provider.url">tcp://localhost:3035
</props>
</property>
</bean>
<bean id="localFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL" value="tcp://localhost:61616" />
</bean>
The Exception I'm getting:
ERROR | failed to forward message on attempt: 1 reason:
javax.jms.JMSException: Unknown Destination Type message: This is a
test message!
javax.jms.JMSException: Unknown Destination Type
at
org.exolab.jms.message.MessageHeader.setJMSDestination(MessageHeader.java:194)
at
org.exolab.jms.message.MessageImpl.setJMSDestination(MessageImpl.java:301)
at org.apache.activemq.ActiveMQSession.send(ActiveMQSession.java:1641)
at
org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:231)
at
org.apache.activemq.ActiveMQMessageProducerSupport.send(ActiveMQMessageProducerSupport.java:300)
at
org.apache.activemq.ActiveMQQueueSender.send(ActiveMQQueueSender.java:111)
at
org.apache.activemq.network.jms.QueueBridge.sendMessage(QueueBridge.java:80)
at
org.apache.activemq.network.jms.DestinationBridge.onMessage(DestinationBridge.java:130)
at
org.exolab.jms.client.JmsMessageConsumer.onMessage(JmsMessageConsumer.java:256)
at org.exolab.jms.client.JmsSession.onMessage(JmsSession.java:1009)
at
org.exolab.jms.client.net.JmsSessionStubImpl.onMessage(JmsSessionStubImpl.java:478)
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.exolab.jms.net.orb.DefaultORB$Handler.invoke(DefaultORB.java:572)
at org.exolab.jms.net.orb.DefaultORB$1.run(DefaultORB.java:530)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:637)
Thanks,
Javier Godinez