Hi folks,

Hope you can help me with that:

I have the following scenario:
Every client ( reached via servlet ) needs to get it's own cached data from
the application server - such as orders, status , etc.
This Client state is valid while the client is connected to the system,
other wise it's in a general storage.
I thought that I can use a SessionBean ( stateful ) to represent the client
and to store it's handle in the ServletSession of the.
The problem is that the clients state changes asynchronously. For that I
developed a simple singleton of pub/sub tree that upon messages calls a
desired method callback on its subscribers.
The pub/sub singleton resides on the server side - it is inside the
applications server in order to prevent overhead.

The question is :

Can I subscribe a particular SessionBean. If so how do I do it ?. What I
mean is how do I access not via the clients handle to a certain SessionBean
?
Or should I convert the Client state to EntityBean with no persistent
attributes and subscribe it - with its primary key ?

(If this is one of those repeated questions - pls. show me to the archives)

Thanks in advance

Guy Nirpaz
Java Architect

Tantian Corp.
[EMAIL PROTECTED]

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to