File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes MDB -> Stateless Interrupting long running process (how to reference SSBs) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "MDB -> Stateless Interrupting long running process (how to reference SSBs)" Watch "MDB -> Stateless Interrupting long running process (how to reference SSBs)" New topic
Author

MDB -> Stateless Interrupting long running process (how to reference SSBs)

Markus Schmider
Ranch Hand

Joined: Feb 25, 2007
Posts: 105
Hallo I have a design problem.
I have a MessageDrivenBean accpting large data chunks.
This MDB delegates the processing to a Stateless Session Bean (SSB) which can be a long running process.
I have a requirement that this processing can be stopped (and the Tx rolled backed)
So with an id for the data I must find out the SSB which processes the data and call some method stop().
I have no idea how to implement this. I cannot hold references to SSBs e.g. in a map (or can I).
Any ideas how to solve this?

Thanks, hans
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: MDB -> Stateless Interrupting long running process (how to reference SSBs)