Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
session sharing for multiple webapps

session sharing for multiple webapps

2004-01-19       - By Todd O'Bryan

 Back
I've googled and googled and I can't find what I'm looking for.

I'd like to deploy several small webapps that share a login method.
(Several small ones, because I teach high school and my students will
be working on them. I'd prefer to break only small amounts of
functionality at any one time rather than the whole website.)
Unfortunately, access to the individual servlets is fairly fine-grained
and not amenable, at least as far as I can tell, to the built-in single
login functionality. (For example, I have "/info/login.html" set to use
the Info servlet, but only administrators or the login that's being
accessed should be able to access the information. In the first few
lines of the servlet, I use the session to determine the login and
either accept or reject the request. Since every role should have
access to the Info servlet, but not every user should be able to access
all the information available from it, I don't know how the built-in
access method helps me. If I'm mistaken, I'd love to here about it,
though.)

There's a pair of messages on an archive that mention sticking a
singleton in $CATALINA_HOME/shared/lib or $CATALINA_HOME/common/lib to
maintain sessions across multiple webapps, but they go no farther than
mentioning it. Does anybody have a pointer with more information about
how exactly to do this? I've been sticking a User object in the session
which allows me easy access to login, role, etc., and I'd love to be
able to continue doing that and share that user info between multiple
webapps in the same container.

If this hasn't been fleshed out anywhere that's publicly accessible,
would someone like to flesh it out for me and posterity? Or talk me out
of it. I'm open at this point...

Thanks,
Todd O'Bryan


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)




©2008 junlu.com - Jax Systems, LLC, U.S.A.