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
 
Modular Web-based system and session management

Modular Web-based system and session management

2004-08-16       - By Yagiz Erkan

 Back
Hi all,

I'm working on a large but modularized Web-based J2EE project. We split the
whole system into subprojects and we develop them one by one. We don't have
time to do an up-front global design however there are some things that we
know, including cross-module session access, and my question is going to be
about this last point.

Let's say we're going to have 6 modules when the system is completely
operational. There is going to be some kind of integration between them. For
instance, if the user uses a phone number in module 2, she may decide to access
module 1 and have the phone no available. Or, she may be using module 3, she
may want to hit the "hold" button to store the session information, then she
may start something new from scratch and when she finishes the latter work, she
may go back to the former by hitting "restore" button, bringing back all the
old data (I was thinking without database access. I think that if the context
data is large, it's worth going to the database in order not to clutter the
session object.).

I'm thinking about creating contexts for each module and store them in the
session. The contexts may be empty most of the time. Let's say the phone number
for module 1 isn't the same as the phone number for the module 2 because in the
session I'll have an object of type Module1Context and another one of type
Module2Context. Inter-modular communication means copying some information from
one module context to another module context. Holding and restoring data means
replicating the context state (Memento pattern probably?!?) for later
replacement.

Please let me know what you think about it! Have you had to deal with something
similar in the past? I'd greatly appreciate any comments!

Thanks,

- Yagiz -

===========================================================================
To unsubscribe, send email to listserv@(protected) and include in the body
of the message "signoff J2EE-INTEREST".  For general help, send email to
listserv@(protected) and include in the body of the message "help".

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