Hi,
see inline,
jguich wrote:
> Hi,
>
> i was reading the Enterprise Javabeans Developers Guide, from Sun, and it has a
>(little) topic about Helper Classes.
>
> Since the topic is too little, i had some questions about it.
>
> 1. Do they decrease ejb's performance? since they are not "managed" by the
>container, does 1000 session ejb using helper classes decrease the performance or
>affects load balancing or other else (because the helper classes) ?
Helper classes are indirectly managed by the container. Because non referenced classes
are garbage collected, heper classes will be garbaged when the bean is passivated.
>
>
> 2. what is better (in performance): use 1 main stateful session class and 50
>stateless session classes or 50 helper classes? they would access entities beans.
There is a fundamental difference between beans and simple classes. A bean is a
component with well specified interfaces and a lot of management burden. You should
only make a class a bean when you necessarily need remote
access, access controll, transaction handling and ...
Beacause each call to the bean is intercepted by the contrainer, you'll achieve better
performance with helper classes.
Salutation.
Francis.
===========================================================================
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".