• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between Session Facade and Business Delegate pattern

 
Ram Gokul
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WHile reading more and more about these two from various website and Sun's pattern site , i find they are doing mostly the same thing . That is sitting between the client and the different Business objects and hiding the complexity , coupling involved dealing with different business objects.They may use service locator inside them to look up remote object/jndi lookup.

Thanks if someone could clearly demark these two patterns .
Thanks
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Though the bussiness delegate is definded in the Business tire it reside in the presentation tire and work as proxy to handle various bussiness method calls.

Session Facade reside in the business tire and handle communication in the business tire.

May be other big difference. It is just my understanding.

Thanks
 
sarang bharambe
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to add one more to this: Service locator
Reading HFSJ,I am getting confused between Service locator and business delegate. Seems like there is very minute difference between these three.

Can anybody throw more light on it???

regards,
sarang bharambe
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Service Loacator is used in lookup for services like JNDI and other factory resource. It only help to locate the resources and create the initial context of these resources. It can cache the located resources for future use. Other work is handle by bussiness delegate /other pattern including handling of business exceptions.

Thanks
 
savita jadhav
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
Can anyone tell the difference between Front Controller and MVC?Savita

Thanks
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I think MVC is more than pattern. It is framework. It define how to refactor your various task in different modules and controls all the flow between various tasks. That is Model, View, Controller.

The Front Controller is more about the single task. It is related to the requests comming from the users. It control the flow of requests from the users and eliminate the duplicate codes.

The Front Controller may be part of the MVC framework.

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic