What type of Class can I use?

Hi,

Here is my dilemma.. I have 2 classes.. We can call them Policy and Quote. I need to have them on the session. I also have a class, BusinessModel, that will also hold onto these "same" objects. This way I can pass BusinessModel around with all the objects I require in my app..

My dilemma is, If I have many users, how do I keep many instances of the session for both the BusinessModel and the individual objects?

Thank you in advance!

Jim

[474 byte] By [jimc08807a] at [2007-10-2 19:12:23]
# 1

> Hi,

> Here is my dilemma.. I have 2 classes.. We can call

> them Policy and Quote. I need to have them on the

> session. I also have a class, BusinessModel, that

> will also hold onto these "same" objects. This way I

> can pass BusinessModel around with all the objects I

> require in my app..

BusinessModel is an object that has references to Policy and Quote objects. Right?

> My dilemma is, If I have many users, how do I keep

> many instances of the session for both the

> BusinessModel and the individual objects?

Depends on what your understanding of the problem.

If there is one session per user, and every user has their own instances of BusinessModel, Policy, and Quote, then you have one for each user.

If you mean that somehow all users should be looking at the same BusinessModel, Policy, and Quote (funny requirement), then it's not a session thing. They're more like application scope objects.

When you say "session" it's a loaded term for me. I immediately think of users as web clients, and "session" is a javax.servlet.Session object. Is that what you mean?

%

duffymoa at 2007-7-13 20:53:16 > top of Java-index,Other Topics,Patterns & OO Design...