I apologize if my questions are a bit naive and off-topic, I spent only
a week playing with EJB (Weblogic Tengah demo).
We are looking into using weblogic as a middleware solution for a highly
loaded website. So clustering is very important for us. Currently we are
thinking about having several servlet-serving boxes (Apache/Jserv) in
the front and one (maybe more) EJB server(s) in the back talking to the
database.
I'd like to use standard HttpSession classes from Java Servlet API, but
I realize that standard implementation is:
1. Local to the server where servlets are running. We need to have them
shared among all front boxes. We might also want to use our existing
session tables in the database so servlets coexist with current CGIs.
2. Using cookies(???). Our official policy is to use URL-rewriting,
since many potential customers still use old browsers.
I found that WebLogic's implementation of HttpSession can use a JDBC for
storing sessions, but then we'd need to use Tengah as our http server,
and use their table structure. I also was unable to find details about
how often HttpSession is synched with the db.
My solution is to have a bean-managed entity bean representing HTTP
session in the EJB server, and have servlets talking to it. So here are
my questions:
1. Is it possible to seamlessly substitute "standard" HttpSession with
our custom one which would talk to the bean?
2. How can I guarantee that there's only one instance of my HttpSession
bean representing particular session? Is it done by the server already?
3. What would be advantages in sticking with WebLogic's implementation
of the HttpSession with JDBC persistence? Where could I find more
information regarding how this option works?
4. We also want to expire sessions, so there should be a thread/process
doing that. What would be the best way to implement it, another client
process, or maybe we could run it as a thread with weblogic's jvm. Is it
possible?
I'd appreciate any comments/pointers.
Thanks,
Alex
--
Alex Gleyzer email: [EMAIL PROTECTED]
Boyle Software phone: (212) 596-2949
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".