Ok, new topic (I hope!).

Now that I'm starting to understand how to use EJBs I'm having
some difficulty coming up with the proper architecture.


I've got a general business-logic representation.
One 'authors' their business logic (who cares how) and
then makes it available so that thousands of users
can 'use' the business logic.

I want to map that to the app server, ejb world (why not, everyone
else seems to be doing it!).


The 'user session' data obviously equates to a bunch of entity
beans.

But the business logic ought to be a session bean.  Except
that it is a generic session bean that somehow needs its
'logic' loaded in in order to 'enact' the what the
authored logic does.  (Think of it as a scripting language
where the evaluator is in the session bean, but the stuff
that is being evaluated is loaded in dynamically.)


Now, if I have 10,000 users hitting the app server, that's 10,000
session bean instances.  They are all using the same 'business logic'.
(But these 10,000 uses all have their own data, so the entity beans
all do the right thing with scalability, etc.)

How the heck can the loading of the session bean be done efficiently?
(That's my question.)

Because I want to think of this as application-logic, business-logic,
there is only one application (so to speak), but many users.
(Modelling the application/business logic as an entity bean means that
it is read 10,000 times even though it is not changing.)

Or is there a better way to think about this?

Joel

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to