Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Service Locator and Business Delegate

 
vikram kumar
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi Ranchers,

Can I still use the Service Locator and Business Delegate, some where I read that those patterns are extinct please help.

Regards,
Kumar
 
Kuppusamy Venkatasubramanian
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Service locator pattern is still valid because it will be the ideal way to get JNDI in non-managed environments and standalone java classes like utility class in Managed environment. For example, i am using SessionFacade pattern in my assignment and SessionFacade classes are normal java classes and still i need to use Service locator to get EJB references. Business Delegate pattern is used to wrap remote calls and still can be used with EJB3.

Please correct me if i am wrong.

Cheers..
 
talu singh
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They are still valid, if you use it in non managed environment for jdbc, jndi, etc....

Ignoring framework such as springframework and guice (as this post is related to SCEA)

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic