This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Business Delegate and Session beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Business Delegate and Session beans" Watch "Business Delegate and Session beans" New topic
Author

Business Delegate and Session beans

Ashwath Rangan
Greenhorn

Joined: Jan 30, 2007
Posts: 6
Hi All,

I am neither very familiar with BD nor EJB. So please correct me if anything that I say is wrong.

I am deevloping an EJB2 application. We have different components and each component is a session bean. Now i am trying to implement the BD pattern.

From my understanding the BD class will be in the presentation tier. Now wat I am not clear about is will all the Service beans have its own BD class.

Say I have 2 components Staff and Students or will it be just one BD tat calls up a Service Locater to get the Service bean depending on the type of request.

Thanks

Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
From my understanding the BD class will be in the presentation tier. Now wat I am not clear about is will all the Service beans have its own BD class.


The Business Delegate design pattern can be implemented on either the Presentation tier or the Business tier. It depends upon the design and the requirements.

No, each Session EJB should not have its own Business Delegate object. Note, think in objects not classes. A class is only a blueprint, it is a description. In object-oriented programming, objects execute at runtime, not classes.

The Business Delegate API exposes the business methods that are implemented by the Session EJB. So, in your example, if your Staff EJB has two business methods and your Students EJB has five business methods, then your Business Delegate can have five business methods in its API.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Business Delegate and Session beans
 
Similar Threads
Cleared Part II/III...99%
My WAF or their WAF?
Managed Bean as service locator
SCEA Part II - Design Question
EL functions and singleton session bean