I am solving this problem. I am developing so called message gateway. There are connected Output Devices on this gateway. Every Output Device is running in different JVM than JBoss. Every device works in serial meaner, it means, it can process only ONE message at a time.
Questions: 1) How to call client code from a Enterprise Bean? (sockets, RPC, CORBA, or is there something better?) 2) Because of parallel behavior of Beans, there must be some synchronization process. How to serialize this calls?