[Design of JBoss ESB] - Re: jBPM in JBossESB
by burrsutter
"rex.sheridan" wrote : One idea that could be helpful for the jBPM user is to insert the ESB message (or just the body of the message) into the ContextInstance. That way the workflow could have easy access to the data.
I think this is a very good point. The quickstart/examples should at least illustrate how an ESB message can be broken down into context instance variables so they are available to the EL in jBPM (decision nodes, task assignments, etc.) By default we can push the whole message in as a single instance variable for "free" meaning no work on by the user (you the ESB programmer).
The Message could be pushed through a transformation action and returned as POJOs (see the transform_XML2POJO) and you can then use a custom action to load those POJOs into instance variables for jBPM.
We also need a known message header property to store the token id for correlation purposes.
Thanks Rex!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019060#4019060
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019060
19 years, 1 month
[Design of Messaging on JBoss (Messaging/JBoss)] - Integration TEsts / Use of other connections
by clebert.suconic@jboss.com
I have this MDB:
https://svn.jboss.org/repos/messaging/projects/jms-integration/src/main/o... (Sorry for non-committers... the URL wasn't available the time I posted this)
And I'm running this on JBoss-4.0.4... with a messaging configuration created by our utils.
On ejbCreate I'm using other resources such as opening a new connection, as I will answer messages through an answering queue:
| public void ejbCreate() throws EJBException
| {
| try
| {
| ctx = new InitialContext();
| cf = (XAConnectionFactory) ctx.lookup(CONNECTION_FACTORY);
| conn = cf.createXAConnection();
| //ts = messageContext.getTimerService();
| }
| catch (NamingException e)
| {
| throw new EJBException(e);
| }
| catch (JMSException e)
| {
| throw new EJBException(e);
| }
|
| }
|
When I run this, I'm getting a classCastException:
Caused by: java.lang.ClassCastException: org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl
| at org.jboss.test.messaging.integration.mdb.support.ejb20.TestMessageDriven.ejbCreate(TestMessageDriven.java:81)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.ejb.MessageDrivenEnterpriseContext.<init>(MessageDrivenEnterpriseContext.java:82)
|
This is bound to java:/JmsXA
Is this a bug, or I am missing a config here?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019023#4019023
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019023
19 years, 1 month