[jBPM] New message: "jBPM 4.3 and Spring integration - multiple transaction managers"
by Patricia B
User development,
A new message was posted in the thread "jBPM 4.3 and Spring integration - multiple transaction managers":
http://community.jboss.org/message/530834#530834
Author : Patricia B
Profile : http://community.jboss.org/people/patriciab
Message:
--------------------------------------------------------------
I am working on an application that is using jBPM 4.3 and Spring 2.5. The integration with Spring is very easy, and is working pretty well.
But I have a special scenario in my application, where I am working with multiple transaction managers, but only one of them is used for jBPM. When I ran the app, I got the warning below.
***** warning *******
WARN [org.jbpm.pvm.internal.env.SpringContext] Multiple Spring beans found for type interface org.springframework.transaction.PlatformTransactionManager returning the first one found
What I would like, is to be able to control which bean is loaded from the Spring context into the jBPM context, when there are multiple implementations for the same interface.
My question is whether anybody else came across to this issue, and if there is any solution/workaround to this already implemented.
Thanks,
Patricia
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/530834#530834
16 years, 1 month
[JCA] New message: "JMS Bridge and JMS Provider Resource Adapter (JCA)"
by Bertrand GILLIS
User development,
A new message was posted in the thread "JMS Bridge and JMS Provider Resource Adapter (JCA)":
http://community.jboss.org/message/530823#530823
Author : Bertrand GILLIS
Profile : http://community.jboss.org/people/bgillis
Message:
--------------------------------------------------------------
Hi folks !
This question was also posted on JBoss Messaging Discussions (http://community.jboss.org/thread/149178).
I'm trying to setup a JMS bridge beween JBoss Messaging running inside JBoss 5.1.0 and WebSphere MQ 6.0.2 (WMQ) running as a standalone application.
Our major requirement is to have a Quality of Service (QoS) QOS_ONCE_AND_ONLY_ONCE between both JMS Providers.
This QoS requires that both connection factories must be XAConnectionFactory implementations.
The recommended way to integrate a JMS Provider inside a J2EE server is always to use the available JMS Resource Adapter.
So for WMQ, we must deploy wmq.jmsra.rar in JBoss AS as explained on this wiki page: http://community.jboss.org/docs/DOC-12535. And the JMS Bridge is working flawlessly when using QoS QOS_AT_MOST_ONCE and QOS_DUPLICATES_OK. But as soon as we use QoS QOS_ONCE_AND_ONLY_ONCE, the JMS Bridge doesn't start anymore and the following Exception is thrown.
17:15:38,302 WARN [Bridge] jboss.messaging:name=JMSBridge,service=Bridge Failed to set up connections
java.lang.IllegalArgumentException: Connection factory must be XAConnectionFactory
at org.jboss.jms.server.bridge.Bridge.createConnection(Bridge.java:880)
at org.jboss.jms.server.bridge.Bridge.setupJMSObjects(Bridge.java:1015)
at org.jboss.jms.server.bridge.Bridge.setupJMSObjectsWithRetry(Bridge.java:1223)
at org.jboss.jms.server.bridge.Bridge.access$1600(Bridge.java:68)
at org.jboss.jms.server.bridge.Bridge$FailureHandler.run(Bridge.java:1569)
at java.lang.Thread.run(Thread.java:619)
As a matter of fact, all JMS Resource Adaptors implement the ConnectionFactory interface only as described in the J2EE Connector Architecture
Specification (JSR112). That's the case for IBM WMQ Resource Adaptor, Apache Active MQ Resource Adaptor and JBoss Messaging Resource Adaptor as well.
So how is it possible to use the QoS QOS_ONCE_AND_ONLY_ONCE in a JMS Bridge if it is not possible to obtain a XAConnectionFactory from a JMS Resource Adaptor ?
Do we have to connect directly to the JMS Provider to obtain a XAConnectionFactory instead of using the JMS Provider resource Adaptor available ? If so, could you describe the procedure to follow ?
Thank you very much for your assistance.
Bertrand
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/530823#530823
16 years, 1 month
[JBoss Messaging] New message: "JMS Bridge and JMS Provider Resource Adapter (JCA)"
by Bertrand GILLIS
User development,
A new message was posted in the thread "JMS Bridge and JMS Provider Resource Adapter (JCA)":
http://community.jboss.org/message/530819#530819
Author : Bertrand GILLIS
Profile : http://community.jboss.org/people/bgillis
Message:
--------------------------------------------------------------
Hi folks !
I'm trying to setup a JMS bridge beween JBoss Messaging running inside JBoss 5.1.0 and WebSphere MQ 6.0.2 (WMQ) running as a standalone application.
Our major requirement is to have a Quality of Service (QoS) QOS_ONCE_AND_ONLY_ONCE between both JMS Providers.
This QoS requires that both connection factories must be XAConnectionFactory implementations.
The recommended way to integrate a JMS Provider inside a J2EE server is always to use the available JMS Resource Adapter.
So for WMQ, we must deploy wmq.jmsra.rar in JBoss AS as explained on this wiki page: http://community.jboss.org/docs/DOC-12535. And the JMS Bridge is working flawlessly when using QoS QOS_AT_MOST_ONCE and QOS_DUPLICATES_OK. But as soon as we use QoS QOS_ONCE_AND_ONLY_ONCE, the JMS Bridge doesn't start anymore and the following Exception is thrown.
17:15:38,302 WARN [Bridge] jboss.messaging:name=JMSBridge,service=Bridge Failed to set up connections
java.lang.IllegalArgumentException: Connection factory must be XAConnectionFactory
at org.jboss.jms.server.bridge.Bridge.createConnection(Bridge.java:880)
at org.jboss.jms.server.bridge.Bridge.setupJMSObjects(Bridge.java:1015)
at org.jboss.jms.server.bridge.Bridge.setupJMSObjectsWithRetry(Bridge.java:1223)
at org.jboss.jms.server.bridge.Bridge.access$1600(Bridge.java:68)
at org.jboss.jms.server.bridge.Bridge$FailureHandler.run(Bridge.java:1569)
at java.lang.Thread.run(Thread.java:619)
As a matter of fact, all JMS Resource Adaptors implement the ConnectionFactory interface only as described in the J2EE Connector Architecture
Specification (JSR112). That's the case for IBM WMQ Resource Adaptor, Apache Active MQ Resource Adaptor and JBoss Messaging Resource Adaptor as well.
So how is it possible to use the QoS QOS_ONCE_AND_ONLY_ONCE in a JMS Bridge if it is not possible to obtain a XAConnectionFactory from a JMS Resource Adaptor ?
Do we have to connect directly to the JMS Provider to obtain a XAConnectionFactory instead of using the JMS Provider resource Adaptor available ? If so, could you describe the procedure to follow ?
Thank you very much for your assistance.
Bertrand
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/530819#530819
16 years, 1 month