You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by martyman <ma...@nuernberger.de> on 2008/06/16 10:02:08 UTC

Re: AMQ5.1 bridge to WebsphereMQ 5.3 -> javax.jms.IllegalStateException: MQJMS1112

Hi svela,

based on the bean definition below I'm using the following route definition
for outbound messages. I'm not using inbound at all.

...
  <camelContext id="camel"
xmlns="http://activemq.apache.org/camel/schema/spring">
	<route>
	  <from uri="activemq:OUTBOUND"/>
	  <to uri="webspheremq:queue:TEST.COMMON.REQUEST"/>
	</route>
  </camelContext>
....

Regards
 Martin



svela wrote:
> 
> 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.
> 
> ...Thanx.
> 
> 
> 
> 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
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/AMQ5.1-bridge-to-WebsphereMQ-5.3--%3E-javax.jms.IllegalStateException%3A-MQJMS1112-tp17204001p17859748.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.