File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WebService Sessions ? Cluster ? Replication ?

 
Stan Sokolov
Ranch Hand
Posts: 120
Hibernate IntelliJ IDE Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic