camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aparghi <apar...@yahoo.com>
Subject Unable to configure Websphere MQ using Camel JMS Component (Reposting from Camel Dev forum)
Date Sat, 09 Jan 2016 23:31:19 GMT
I am getting below exception while trying to connect to Websphere queues
configured in JBoss 6.1. We are using wma.jmsra.rar as ResourceAdapter and
have configured connectionFactory and Destinations in standalone.xml of
jBoss. 

In Camel context bootstrap class, I am injecting jms/ConnectionFactory and
then creating JMSComponent using JmsConfiguration initialized with this
connectionFactory. 

When I try to invoke route which is using the JmsComponent, I am getting
below error. On investigating found that
com.ibm.mq.connector.outbound.QueueConnectionFactoryImpl.createConnection(user,
pwd) is written as below: 
public Connection createConnection(String username, String password) throws
JMSException { 
        if(ResourceAdapterImpl.getJCARuntimeHelper().getEnvironment() != 1) 
            return createQueueConnection(username, password); 
        else 
            throw (JMSException)JCAExceptionBuilder.buildException(3,
"MQJCA1026"); 
} 

I am not sure how to make
ResourceAdapterImpl.getJCARuntimeHelper().getEnvironment() to return value
!=1. And hence the code end up throwing exception. 

On further investigations, I read Camel with JMS 1.0.2 works fine with
Websphere MQ and JMS 1.1 is not working. Ideally createQueueConnection()
should get invoked, that's what I read on couple of posts. (Ref :
https://jira.spring.io/browse/SPR-9877) 

Can someone please urgently help to look into issue I am facing???


19:34:47,388 INFO  [stdout] (Camel (camel-2) thread #1 - timer://myTimer)
Caused by: com.ibm.msg.client.jms.DetailedJMSException: MQJCA1026: An
operation on a domain specific object was not valid. 

19:34:47,388 INFO  [stdout] (Camel (camel-2) thread #1 - timer://myTimer) at
com.ibm.mq.connector.services.JCAExceptionBuilder.buildException(JCAExceptionBuilder.java:141)
~[na:na] 

19:34:47,388 INFO  [stdout] (Camel (camel-2) thread #1 - timer://myTimer) at
com.ibm.mq.connector.services.JCAExceptionBuilder.buildException(JCAExceptionBuilder.java:86)
~[na:na] 

19:34:47,388 INFO  [stdout] (Camel (camel-2) thread #1 - timer://myTimer) at
com.ibm.mq.connector.outbound.QueueConnectionFactoryImpl.createConnection(QueueConnectionFactoryImpl.java:114)
~[na:na] 

19:34:47,388 INFO  [stdout] (Camel (camel-2) thread #1 - timer://myTimer) at
com.ibm.mq.connector.outbound.QueueConnectionFactoryImpl.createConnection(QueueConnectionFactoryImpl.java:93)
~[na:na] 

19:34:47,388 INFO  [stdout] (Camel (camel-2) thread #1 - timer://myTimer) at
org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:184)
~[spring-jms-3.2.11.RELEASE.jar:3.2.11.RELEASE] 

19:34:47,388 INFO  [stdout] (Camel (camel-2) thread #1 - timer://myTimer) at
org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:456)
~[spring-jms-3.2.11.RELEASE.jar:3.2.11.RELEASE] 




--
View this message in context: http://camel.465427.n5.nabble.com/Unable-to-configure-Websphere-MQ-using-Camel-JMS-Component-Reposting-from-Camel-Dev-forum-tp5776082.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message