So far I have only used servlets and JDBC, and I don't mind rolling my
own persistence if that will minimize response time and maximize
flexibility. I'm thinking that I could get by with one server this way
by keeping all data in objects in memory if there is an efficient way to
make them available to all sessions.

I would have an array of accounts where each account number mapped
directly to an array index.
Depending navigation I would return data from the appropriate array
contained in the account, such as person name/ID pairs.
If the user chooses a person from a drop down list, the person ID would
be an index into the person array in that account.
Pages would be generated dynamically.
I really don't see how response time could be much faster than this,
unless perhaps pages were pre-generated.

Of course I would love to use JBoss if anyone can explain why it is
going to give me more flexibility and better response time than anything
I could develop with servlets, but I am afraid that EJBs, or at least
entity beans, might be a dead end based on one project I have worked on
and several others I have heard about.

Jim

----- Original Message -----
From: "Dmitri Colebatch" <[EMAIL PROTECTED]>
To: "Jim" <[EMAIL PROTECTED]>
Sent: Sunday, February 17, 2002 11:56 PM
Subject: Re: [JBoss-user] performance: same object in multiple sessions


if the data objects are in fact entity beans, then the container will do
this for you automatically (cache in memory that is).

otoh if you want to roll your own persistence, then a singleton would
probably be a perfectly acceptable way to get access to
instances.  Then again - thinking this through further, how are these
data objects going to come about in the first place?  from a
session bean?  have the session bean have a static map of key->data
object references, and load from there first.... or something
like that.

bear in mind its a pretty complicated thing to do, and the above 5 lines
hardly do it justice (o:

cheers
dim

----- Original Message -----
From: "Jim" <[EMAIL PROTECTED]>
To: "Dmitri Colebatch" <[EMAIL PROTECTED]>
Sent: Monday, February 18, 2002 3:57 PM
Subject: Re: [JBoss-user] performance: same object in multiple sessions


> I was planning to keep many data objects (possibly the entire
database)
> available to all sessions a times.
>
> ----- Original Message -----
> From: "Dmitri Colebatch" <[EMAIL PROTECTED]>
> To: "Jim" <[EMAIL PROTECTED]>; "jboss-user"
> <[EMAIL PROTECTED]>
> Sent: Sunday, February 17, 2002 11:30 PM
> Subject: Re: [JBoss-user] performance: same object in multiple
sessions
>
>
> where?  in the web tier there's always application scope.
>
> in the ejb tier you could use a singleton if you're only in one vm...
> bind to jndi?
>
> cheers
> di
>
>
> ----- Original Message -----
> From: "Jim" <[EMAIL PROTECTED]>
> To: "jboss-user" <[EMAIL PROTECTED]>
> Sent: Monday, February 18, 2002 3:04 PM
> Subject: [JBoss-user] performance: same object in multiple sessions
>
>
> > Hello,
> >
> > What method of making an object accessible from multiple sessions
> would
> > yield the best performance?
> >
> > Thanks,
> >
> > Jim
> >
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to