Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Where should the business logic reside in the beans or in

Re: Where should the business logic reside in the beans or in

From: Krishnan Subramanian <krish_at_crisp.nl>
Date: Fri, 5 Nov 1999 15:34:56 -0000
Message-ID: <bdpuv7.1mu.ln@henson.crisp.nl>


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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US