I modified the RequestListener code to allow concurrent events. In the
constructor, I replace the line:
| consumer = messagerSession.getJmsSession().createConsumer(destination,
selector);
|
with
| Session session =
messagerSession.getMessager().getConnection().createSession(false,
Session.AUTO_ACKNOWLEDGE);
| consumer = session.createConsumer(destination, selector);
|
I can receive now event while I am processing different business logic inside
the scope, but I get a Null pointer exception in MessageHandler. The
scopeInstance is not found in the token's context instance.
| public void messageReceived(Receiver receiver, Element element, Token
token) {
| log.debug("message received");
| ScopeInstance scopeInstance = ScopeInstance.get(token);
| if (!scopeInstance.getState().equals(ActiveState.NORMAL_PROCESSING)) {
| log.error("Incoming events are only accepted when a scope instance is
normally processing");
| return;
| }
|
Do you intend to fix this issue or should I proceed with debugging even deeper
into your code?
Regards,
AA
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923453#3923453
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923453
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user