users@glassfish.java.net

Re: Internal processes in EJB

From: <glassfish_at_javadesktop.org>
Date: Tue, 18 Nov 2008 00:54:21 PST

Thank you for your answer!

I have set of special hardware what I need to poll periodically by TCP/UDP/Serial Port/... to get it's current state. That state should be displayed in "real-time" on clients. At any time any client can also send to any peace of hardware some commands, that should be sent to that hardware in real-time also. Some hardware can send it's status by TCP or UDP directly. In that case I need to open server socket and listen for that information.
Of course I can separate all work with hardware from container to separate application, but I would not like to do this, if this is possible.
So, my tasks look close to your.

I am familiar with CORBA technology, but JEE is new for me.
I plan to store status of the hardware in set of statefull session beans.
But this set should be common for all clients. As I understand, by default any client (stateless session bean, MDB, application...) has it's own instance of session bean.
This will prevent exchange of information between them. How can I use common set of beans for all clients or what is recommended way to synchronize they're state?

Thank you in advance!
Best regards,
Roman
[Message sent by forum member 'rpolozov' (rpolozov)]

http://forums.java.net/jive/thread.jspa?messageID=317189