Re: Faking Entity Beans in Tomcat?
From: Andoni (no_address_at_homeless_people.com)
Date: 07/16/04
- Next message: Michael Borgwardt: "Re: Any API to sort this Vector?"
- Previous message: Edith: "Re: Any API to sort this Vector?"
- In reply to: Murray: "Re: Faking Entity Beans in Tomcat?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 16 Jul 2004 14:07:54 +0100
Yes, I have an admin application which allows me add/change/delete users'
details. This would have to synch with the data stored in application
level.
I don't have too many users at the moment so I don't see holding the data in
application (ServletContext) level being a problem.
Surely the data couldn't be held in session level as each user creates a new
separate session when they log in?
Another aspect I have started to consider is that this site should be
distributable across two Tomcat servers. Would I be right in saying that
this is going to be a problem if I'm storing the data at application level?
I am going to have to check the user's details in application and then if
they are not there check the database for them and pull them into
application. I think I'll do that anyway, then I'll be ready for making it
distributable! Am I right?
Andoni.
"Murray" <parps@SPAMOFFoptusnet.SPAMMAGE.com.au> wrote in message
news:40f7c0d4$0$16105$afc38c87@news.optusnet.com.au...
>
> > 1. It has to be possible to update any user in real time or to create a
> new
> > one and have them function immediately.
>
> If it wasn't for this requirement, you could simply stick the user data
into
> the session. I assume you mean you want to be able to modify the user's
> state from some other "place" in the application, i.e. outside the user's
> session by an admin user or something along those lines. Is that what you
> mean?
>
>
> > 2. I don't know if there would be too much information being stored at
> > application level?
>
> Well obviously that depends on the amount of data involved, how many users
> will be using the site concurrently, and the amount of memory available on
> the server. All things that only you know at the moment ;-) But if the
> queries to grab the data take a while, then I'd say it's an acceptable
> compromise to store the data in memory to improve performance, as long as
> it's not a massive amount of data.
>
>
- Next message: Michael Borgwardt: "Re: Any API to sort this Vector?"
- Previous message: Edith: "Re: Any API to sort this Vector?"
- In reply to: Murray: "Re: Faking Entity Beans in Tomcat?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|