Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

service locator in ejb3

 
avihai marchiano
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

In some cases i dont want to use injection,so i write a class that implement Service locator design pattern , but than a few issues pop up:
1. is there any meaning to cacheing in ejb3?
2. Can i avoid from write the ear name hardcoded when i look up for the ejb?

Thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic