Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Service Locator and Business Delegate

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:confused:.

Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.

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)

When people don’t understand what you are doing they call you crazy. But this tiny ad just doesn't care:
the value of filler advertising in 2020
    Bookmark Topic Watch Topic
  • New Topic