Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Where should the business logic reside in the beans or in
on another note .... i have a related question .... when developing
an enterprise class application using the EJB standard (we are
using WebLogic's application server) is it a standard practice to
put the biz logic within an entity bean or a session bean or just
plain (java) classes which can be used by either of them ... ?
entity beans just map to a particular table row in a database .... and you can have some checking by setting some constraints on the database in the form of stored procedures etc ....
but in my case .... the product we are building needs to have (financial) calculations and analysis etc .... so should this be put in the form of session (stateful or stateless ... whichever may be needed) beans .... or the entity bean ?
and on another note ... is it wise for a client to connect to entity beans directly .... or have session beans act as the "go between" between the client and an entity bean ? or have the client use both entity and session beans as and when needed ? this is a design issue ..... and we are new to this kind of technology, so forgive me if i sound stupid .....
thanks a lot !!!
regards,
krishnan
Received on Fri Nov 05 1999 - 09:34:56 CST