• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Parsing attributes across webapps

 
Kevin P Smith
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 884
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic