activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From svela <svein...@gmail.com>
Subject Re: AMQ5.1 bridge to WebsphereMQ 5.3 -> javax.jms.IllegalStateException: MQJMS1112
Date Tue, 27 May 2008 14:25:24 GMT

Hi! I've been struggeling for a while with the same problem. Had to rewrite
my config file completely. But how do you put it all together? 
I'm used to "<jmsQueueConnector name="bridge-request"
outboundQueueConnectionFactory="#webspheremq">" and so on. But now we have
to put it in <camelcontext>? - which I'm new to. 

I would appreciate any feedback on how you are setting up the bridges from
activeMQ queues to queues in websphere..and vice versa.




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-tp17204001s2354p17491657.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message