Andy Piper wrote:

>However bad it may be encapsulation-wise fatter interfaces mean that you
>have designed the gun so the users of your interfaces can only shoot you
in
>the way you want. Interfaces have to be dumbed down if you want other
>people to use them successfully and generally that is the case between
>client and server and server and db etc in an N-tier system. So I'm all
for
>session wrapping.

Agree with all you say, except use of a session bean to wrap a collection
of entities. Why not push the wrapping further back and use an entity bean
to wrap a collection of java classes? Performance will go way up (EJB->EJB
calls are expensive), and there will be no possibility for accessing any
interfaces other than the "dumbed-down" ones.



Ian McCallion
CICS Business Unit
IBM Hursley
[EMAIL PROTECTED]
Tel: ++44-1962-818065
Fax: ++44-1962-818069

===========================================================================
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