Methods calling in session bean

There are two ways to call a method from session bean .

One is client look for each bean and call methods from the beans one after other

Other is bean itself looks for the methods in other beans and then client only calls the reqired method.

Which of this is the right appraoch and when to use them

[339 byte] By [msyal] at [2007-9-26 3:47:10]
# 1

Looks like you are talking about the Facade Design Pattern and its implementation via Session Facade. If so, see http://developer.java.sun.com/developer/restricted/patterns/SessionFacade.htmlandhttp://java.sun.com/j2ee/blueprints/design_patterns/session_facade/index.html

neville_sequeira at 2007-6-29 12:29:33 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...