• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Business Delegate and Session beans

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 have always wanted to have a neighbor just like you - Fred Rogers. Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic