Correlation for ELS

Hi all,

i'm in the process of making a fairly generic ELS functionality with by using eInsight Correlation.

Have one inbound Queue that is being picked up by a JMS Receive, initialized the CorrelationSet, etcetera. Then goes on to a while loop which contains an Event Based Decision with a JMS Receive on one branch and a Time out on the other branche.

Although the runtime errors appear to occur at random, in order to not get runtime errors i have to specify a receiveWait for this one, but then the process blocks. If i use a receive then i get the exception below.

For using receiveWait i do have to specify a different PortType, ns0:JMSQueue instead of ns0:JMSMessageListener.

[#|2007-02-08T22:26:03.328+0000|INFO|IS5.1.2|javax.enterprise.system.container. ejb|_ThreadID=32; ThreadName=JMS Async S167; Context=prjPPlay_u002F_prjELSdpELS/qHTTPReply_cmELS_bpELS1_ejb;stacktrace-id=4; |

javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean; nested exception is: java.lang.NullPointerException

java.lang.NullPointerException

at com.stc.codegen.eInsightImpl.runtime.ejb.BPELService.handleRequestWithCorrelate dInstance(BPELService.java:596)

at com.stc.codegen.eInsightImpl.runtime.ejb.BPELService.handleRequest(BPELService. java:340)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

Just to verify, is it possible to use eInsight Correlation with receiving messages from the same Queue ? All samples i've seen separate the Queue for the first JMS Receive and the second JMS Receive.

Tried that too, but cause some other trouble which wasn't worth pursuing.

Any input is welcome.

Take care and Ciao

Paul

[1738 byte] By [PaulPetersa] at [2007-11-26 17:51:04]
# 1
Chances are you are nore going about it correctly. Please let me have your email address and I will send you a document in which einsigt correlations are explained in details with examples. One of the examples does what you seemt obe trying to do.michaelDOTczapskiATsunDOTcom
Michael.Czapskia at 2007-7-9 5:03:33 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 2

Hi Michael,

Thanks for the offer. Will be reading the chapter on Correlation again while flying home today.

Chances of doing something not right are about 100%.. Probably it's just not possible to reuse the same partner, JMSMessageListener, which makes sense from a BPEL perspective of orchestrating and linking discrete business transactions. Just slightly annoying from a pragmatic point of view, as i naively had assumed there to be a custom Sbyn/Sun feature for JMS Clients that would allow for reusing the same partner (and thus the same Queue) for bundling messages.

Well, the story continues...

Have a nice weekend

Ciao

Paul

paul AT fluxology DOT com

PaulPetersa at 2007-7-9 5:03:33 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 3
And thanks for writing this great book !
PaulPetersa at 2007-7-9 5:03:33 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 4

11.10.5 and 11.10.6 to refer to...

Using for the first receive

<receive name="JMS.receive"

partner="JMSSource"

portType="ns0:JMSMessageListener"

operation="receive"

container="JMS.receive.Output"

createInstance="yes"

><correlations>

<correlation set="csGroupID" initiation="yes"/>

</correlations>

For the second receive either :

<onMessage name="JMS.receive"

partner="JMSSource"

portType="ns0:JMSMessageListener"

operation="receive"

container="JMS.receive.Output1"

><correlations>

<correlation set="csGroupID" initiation="no"/>

</correlations>

Throws the Error as refered to in the first case.

<onMessage partner="JMSSource"

portType="ns0:JMSQueue"

operation="receiveWait"

container="JMS.receive.Output1"

><correlations>

<correlation set="csGroupID" initiation="no"/>

</correaltions>

Never picks up a message...

Should i just *not* use an event based decision such as in the samples ?

PaulPetersa at 2007-7-9 5:03:33 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...