activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Davies <rajdav...@gmail.com>
Subject Re: AMQ5.1 bridge to WebsphereMQ 5.3 -> javax.jms.IllegalStateException: MQJMS1112
Date Wed, 21 May 2008 06:35:10 GMT
Great! glad camel worked out for you!

cheers,

Rob

http://open.iona.com/products/enterprise-activemq
http://rajdavies.blogspot.com/

On 21 May 2008, at 06:25, martyman wrote:

>
> Just in case someone is facing a similar problem. Here's my solution:
>
> The following works for me:
>
> <bean id="webspheremq"  
> class="org.apache.camel.component.jms.JmsComponent">
>    <property name="connectionFactory">
>    <bean
> class 
> = 
> "org 
> .springframework 
> .jms.connection.UserCredentialsConnectionFactoryAdapter">
>      <property name="targetConnectionFactory">
>      <bean class="com.ibm.mq.jms.MQQueueConnectionFactory">
>        <property name="hostName" value="Test"/>
>        <property name="port" value="1414"/>
>        <property name="queueManager" value="CSQ"/>
>        <property name="channel" value="CO.TEST"/>
>        <property name="transportType" value="1"/>
>      </bean>
>      </property>
>      <property name="username" value="xxxxxx"/>
>      <property name="password" value="xxxxxx"/>
>    </bean>
> 	</property>
> </bean>
>
> Cheers,
> Martin
>
>
>
> martyman wrote:
>>
>> Hi guys,
>>
>> based on examples I've found on the net I've configured a bridge  
>> from AMQ
>> 5.1.0 to Webphere MQ 5.3. Messages are forwarded thus the bridge  
>> seems to
>> work but I get lots of javax.jms.IllegalStateExceptions in the logs  
>> (see
>> below).
>>
>> Did I miss something? Any hints?
>>
>> Should I rather use Camel JMS Components?
>>
>> Thanks,
>> Martin
>>
>>
>>
>> Relevant activemq.xml fragments:
>> ...
>> <jmsBridgeConnectors>
>> <jmsQueueConnector name="activemq2webspheremq"
>> outboundQueueConnectionFactory="#remoteFactory">
>>  <outboundQueueBridges>
>> 	 <outboundQueueBridge outboundQueueName="WIN.TEST"
>> localQueueName="bridge2mq"/>
>>  </outboundQueueBridges>
>>   </jmsQueueConnector>
>> </jmsBridgeConnectors>
>> ...
>> <bean id="remoteFactory"  
>> class="com.ibm.mq.jms.MQQueueConnectionFactory">
>> <property name="transportType" value="1"/>
>> <property name="hostName" value="Test"/>
>> <property name="port" value="1414"/>
>> <property name="queueManager" value="CSQ"/>
>> <property name="channel" value="CO.TEST"/>
>> </bean>
>> ....
>>
>>
>>
>>
>> 2008-05-13 09:13:50,445 [enerContainer-1] ERROR
>> efaultMessageListenerContainer - Setup of JMS message listener  
>> invoker
>> failed - trying to recover
>> javax.jms.IllegalStateException: MQJMS1112: JMS1.1 Ungültige  
>> Operation für
>> domänenspezifisches Objekt
>> 	at com.ibm.mq.jms.MQQueueSession.createTopic(MQQueueSession.java: 
>> 734)
>> 	at
>> org 
>> .springframework 
>> .jms 
>> .support 
>> .destination 
>> .DynamicDestinationResolver 
>> .resolveTopic(DynamicDestinationResolver.java:86)
>> 	at
>> org 
>> .springframework 
>> .jms 
>> .support 
>> .destination 
>> .DynamicDestinationResolver 
>> .resolveDestinationName(DynamicDestinationResolver.java:63)
>> 	at
>> org 
>> .springframework 
>> .jms 
>> .support 
>> .destination 
>> .JmsDestinationAccessor 
>> .resolveDestinationName(JmsDestinationAccessor.java:100)
>> 	at
>> org 
>> .springframework 
>> .jms 
>> .listener 
>> .AbstractPollingMessageListenerContainer 
>> .createListenerConsumer 
>> (AbstractPollingMessageListenerContainer.java:215)
>> 	at
>> org.springframework.jms.listener.DefaultMessageListenerContainer 
>> $ 
>> AsyncMessageListenerInvoker 
>> .initResourcesIfNecessary(DefaultMessageListenerContainer.java:903)
>> 	at
>> org.springframework.jms.listener.DefaultMessageListenerContainer 
>> $ 
>> AsyncMessageListenerInvoker 
>> .invokeListener(DefaultMessageListenerContainer.java:886)
>> 	at
>> org.springframework.jms.listener.DefaultMessageListenerContainer 
>> $ 
>> AsyncMessageListenerInvoker 
>> .run(DefaultMessageListenerContainer.java:822)
>> 	at java.lang.Thread.run(Unknown Source)
>> 2008-05-13 09:13:50,445 [enerContainer-1] INFO
>> efaultMessageListenerContainer - Successfully refreshed JMS  
>> Connection
>> 2008-05-13 09:13:50,492 [enerContainer-1] ERROR
>> efaultMessageListenerContainer - Setup of JMS message listener  
>> invoker
>> failed - trying to recover
>> javax.jms.InvalidDestinationException: MQJMS2008: Fehler beim  
>> Öffnen der
>> MQ-Warteschlange
>> 	at
>> com 
>> .ibm 
>> .mq.jms.MQQueueServices.getQueueOpenException(MQQueueServices.java: 
>> 408)
>> 	at
>> com 
>> .ibm 
>> .mq.jms.JMSServicesMgr.getQueueOpenException(JMSServicesMgr.java:112)
>> 	at com.ibm.mq.jms.MQSession.createQReceiver(MQSession.java:5995)
>> 	at  
>> com.ibm.mq.jms.MQQueueSession.createReceiver(MQQueueSession.java:326)
>> 	at  
>> com.ibm.mq.jms.MQQueueSession.createConsumer(MQQueueSession.java:382)
>> 	at
>> org 
>> .springframework 
>> .jms 
>> .listener 
>> .AbstractPollingMessageListenerContainer 
>> .createConsumer(AbstractPollingMessageListenerContainer.java:449)
>> 	at
>> org 
>> .springframework 
>> .jms 
>> .listener 
>> .AbstractPollingMessageListenerContainer 
>> .createListenerConsumer 
>> (AbstractPollingMessageListenerContainer.java:217)
>> 	at
>> org.springframework.jms.listener.DefaultMessageListenerContainer 
>> $ 
>> AsyncMessageListenerInvoker 
>> .initResourcesIfNecessary(DefaultMessageListenerContainer.java:903)
>> 	at
>> org.springframework.jms.listener.DefaultMessageListenerContainer 
>> $ 
>> AsyncMessageListenerInvoker 
>> .invokeListener(DefaultMessageListenerContainer.java:886)
>> 	at
>> org.springframework.jms.listener.DefaultMessageListenerContainer 
>> $ 
>> AsyncMessageListenerInvoker 
>> .run(DefaultMessageListenerContainer.java:822)
>> 	at java.lang.Thread.run(Unknown Source)
>> 2008-05-13 09:13:50,539 [enerContainer-1] INFO
>> efaultMessageListenerContainer - Successfully refreshed JMS  
>> Connection
>> 2008-05-13 09:13:55,461 [enerContainer-2] ERROR
>> efaultMessageListenerContainer - Setup of JMS message listener  
>> invoker
>> failed - trying to recover
>> javax.jms.IllegalStateException: MQJMS1112: JMS1.1 Ungültige  
>> Operation für
>> domänenspezifisches Objekt
>> 	at com.ibm.mq.jms.MQQueueSession.createTopic(MQQueueSession.java: 
>> 734)
>> 	at
>> org 
>> .springframework 
>> .jms 
>> .support 
>> .destination 
>> .DynamicDestinationResolver 
>> .resolveTopic(DynamicDestinationResolver.java:86)
>> 	at
>> org 
>> .springframework 
>> .jms 
>> .support 
>> .destination 
>> .DynamicDestinationResolver 
>> .resolveDestinationName(DynamicDestinationResolver.java:63)
>> 	at
>> org 
>> .springframework 
>> .jms 
>> .support 
>> .destination 
>> .JmsDestinationAccessor 
>> .resolveDestinationName(JmsDestinationAccessor.java:100)
>> 	at
>> org 
>> .springframework 
>> .jms 
>> .listener 
>> .AbstractPollingMessageListenerContainer 
>> .createListenerConsumer 
>> (AbstractPollingMessageListenerContainer.java:215)
>> 	at
>> org.springframework.jms.listener.DefaultMessageListenerContainer 
>> $ 
>> AsyncMessageListenerInvoker 
>> .initResourcesIfNecessary(DefaultMessageListenerContainer.java:903)
>> 	at
>> org.springframework.jms.listener.DefaultMessageListenerContainer 
>> $ 
>> AsyncMessageListenerInvoker 
>> .invokeListener(DefaultMessageListenerContainer.java:886)
>> 	at
>> org.springframework.jms.listener.DefaultMessageListenerContainer 
>> $ 
>> AsyncMessageListenerInvoker 
>> .run(DefaultMessageListenerContainer.java:822)
>> 	at java.lang.Thread.run(Unknown Source)
>>
>
> -- 
> View this message in context: http://www.nabble.com/AMQ5.1-bridge-to-WebsphereMQ-5.3--%3E-javax.jms.IllegalStateException%3A-MQJMS1112-tp17204001s2354p17356167.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>





Mime
View raw message