The moose likes Web Services and the fly likes WebService Sessions ? Cluster ? Replication ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "WebService Sessions ? Cluster ? Replication ?" Watch "WebService Sessions ? Cluster ? Replication ?" New topic

WebService Sessions ? Cluster ? Replication ?

Stan Sokolov
Ranch Hand

Joined: Apr 13, 2004
Posts: 120

HTTPSession is not available to WebServices. At least I don't know how to use them.
But following circumstances should be very typical
When WebServices is called some proprietary "session" class should be created and some information should be stored in session to keep information about current state. When successive request comes to the server some information is attached to identify the session corresponded to this request. Server extracts information about this session and uses it to fulfill the Request.
EJB Statefull bean is good candidate to keep session information. Some singleton java class interface keeps references to all statefull beans and provides reference to particular EJB Statefull bean by request.
Ok. It probably works in the single server environment.
But how does it work in cluster?
Tomcat does not support EJB but supports some
HTTPSession replication.
Can I use tomcat session replication to synchronize some pool
of Java Beans that are not stored inside the HTTPSession?
Do commercial APP servers like a WebSphere
support Statefull bean replication?
Definitely they should do.

Good luck for yourself.
subject: WebService Sessions ? Cluster ? Replication ?
It's not a secret anymore!