Hi,

 

Below text I found from sun java forum.

 

“The pattern catalog describes the business delegate as containing an instance of an EJBObject where as the service locator can optionally cache an EJBHome object. The former avoids repeated JNDI lookups and creating an EJB whilst the later just avoids repeated JNDI lookups.
Using this strategy, the delegate looks up the home interface and creates an instance of an EJB on creation; it has a one-to-one relationship with it. We don’t really want the delegate to have to create an EJB from the home interface in every method so it should therefore contain an instance member.

This all means the delegate can’t be a singleton; it can't share that EJBObject with multiple clients.”

 

Is there any another pattern which is useful to apply to business delegate classes?

 

Thanks & Regards,

Viral

 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to