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?
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?
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
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