Skip to main content

concurrent event processing [again]

4 replies [Last post]
scottjg
Offline
Joined: 2008-08-21

Hi,

Releted to my post http://forums.java.net/jive/thread.jspa?messageID=314520&#314520, I have get similar problem. I understand that only event from the same activity are serialized when delivering to sbb entity. Events from diffrent activities can be process parallel by one sbb entity.
I want realise use case simultaneously hunting group, its means service is calling many parties and after one of them answer 200 OK service release other parties. But if two parties answer in the same time, event with 200 OK response is process by the same sbb entity parallel and service doesn't work properly.
Have you got any idea how do it weel in JSLEE? I know I can't synchronize on any java object because it will be working only on one JVM but not in cluster.

Thanks,
scottjg

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
eduardomartins
Offline
Joined: 2005-10-10

What is the Mobicents JAIN SLEE version you are using? Sbb Entity serialization is present in last version.

scottjg
Offline
Joined: 2008-08-21

The truth is that I don't use Mobicents but other vendor implementation. In JSLEE spec I found only that "event router guarantees that there will be no concurrent execution within a single SBB object " (8.6.6). But I thought that many sbb object can be attache to one sbb entity and events can be processed by two sbb objects belongs to one sbb entity in separate transactions.

scottjg

eduardomartins
Offline
Joined: 2005-10-10

It can, but there is no guarantee in specs about the container behavior in such scenario, it may rollback some transactions (Mobicents used to had such behavior).

-- Eduardo

scottjg
Offline
Joined: 2008-08-21

Thanks a lot for the answer.

scottjg