Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

WebService Sessions ? Cluster ? Replication ?  RSS feed

Ranch Hand
Posts: 120
Hibernate IntelliJ IDE Spring
  • 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.
I'm THIS CLOSE to ruling the world! Right after reading this tiny ad:
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!