• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Service Locator and Business Delegate

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:confused:.

Regards,
Kumar
 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)

 
My, my, aren't you a big fella. Here, have a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic