File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Parsing attributes across webapps Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Parsing attributes across webapps" Watch "Parsing attributes across webapps" New topic
Author

Parsing attributes across webapps

Kevin P Smith
Ranch Hand

Joined: Feb 18, 2005
Posts: 362
Hi guys

I have a webapp which when the users log in creates a JavaBean with details of the user, including wether the user has successfully logged in, name, user_id etc...

I need to find a way of parsing all this information across from the main /web webapp over to a seperate /admin webapp.

Any ideas.

Cheers
Sri Ram
Ranch Hand

Joined: Oct 03, 2005
Posts: 118
Set those values that are needed in all the pages but does not change, in cache or in a static variable. U can also store these data in Session variables so that they can be accessed easily without any performance problem.
Chengwei Lee
Ranch Hand

Joined: Apr 02, 2004
Posts: 884
Originally posted by Sri Ram:
U can also store these data in Session variables so that they can be accessed easily without any performance problem.


Abusing of the session does pose some inherent problems such as memory leak. So it is best to use session attributes only if they're necessary.

I need to find a way of parsing all this information across from the main /web webapp over to a seperate /admin webapp.


Are we talking about 2 separate webapp here? They won't share the same session, the only is to persist your information into some storage like the database or use Java serialization.


SCJP 1.4 * SCWCD 1.4 * SCBCD 1.3 * SCJA 1.0 * TOGAF 8
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Parsing attributes across webapps
 
Similar Threads
Session Synchronisation
jQuery - search hierarchy
How to validate user's session while accessing other pages?
Any Solution to Break/Overlook the Session Variables ?
request handling in Clustered enviroment?