• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

WebService Sessions ? Cluster ? Replication ?

 
Ranch Hand
Posts: 120
IntelliJ IDE Hibernate Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic