Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Business Delegate in business tiers

Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I understand Business Delegate (BD) is for presentation-tier to hide the detail of accessing business logic. Can this be applied inter-EJBs? An EJB uses BD to hide an access detail to another EJB. Or is there any specific pattern for this?

(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you could use the same delegates between EJBs. I really hate even a couple lines of housekeeping code around home finders and such and would prefer to have delegates generated for me and use them all the time.

But I also stop and ask myself why I'm calling EJB to EJB? Could each session bean implement all its tricky bits in another Plain Old Java Object (POJO)? Then one EJB could call its own POJO or any other. What would be gained or lost here?
Can you smell this for me? I think this tiny ad smells like blueberry pie!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic