1. I don't think you can use EJBs to implement HttpSessions, see my other email. That said, all you really need is a distributed hashtable. There's already one implemented as the Distributed State Service. No coding, this is already done. Can't get more simpler than that. Implement an HttpSession as a serializable object. "get" the session from the DSS at the beginning of an HTTP request, "put" the session back into the DSS at the end of the request. Simple as that. Well at least for the 1st iteration :)
2. Also, sub-partitioning should really be handled at the HAPartition level and should be totally transparent to every other clustering feature/service. Configuring sub-partition sizes and whether automatic-sub-partitioning should be turned on or not should been done solely in the HAPartition MBean. 3. I think the complexity starts to become a factor when you start thinking about concurrent access to HttpSessions. IMHO, it is quite common to have 2 different HTTP requests accessing the same HTTP session concurrently. I think you're going to need some sort of distributed locking for HTTPSessions otherwise people are going to come across some really funky errors when they start using this stuff. Of course, you don't need distributed locking if you require the load-balancer to give you "sticky" sessions. Bill > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of marc > fleury > Sent: Monday, December 24, 2001 3:26 PM > To: Sacha Labourey; [EMAIL PROTECTED] > Subject: RE: RE: [JBoss-dev] distributed HttpSessions - advice... > > > |OK. Will try to find so time to work on this from the 28th. In > one hour, I > |enter a black hole and will only go out in 90 hours... Impressive, huh? > > Thank you dr spock, thanks for listening... I also always knew you worked > like a madman and that your weeks were really 90 hours long. > > Julian you don't have to wait for the 28 th to get started, just code with > the entity bean, it won't be colocated at first. > > Create a HTTPSession do lookup/load store and let us bring the time on it > down, it is our duty. > > marcf > > > > _______________________________________________ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development > _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
