• Post Reply Bookmark Topic Watch Topic
  • New Topic

BusinessDelegate and ServiceLocator pattern  RSS feed

 
aakash bhatt
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

So in my appliction my web server is a tomcat and appsever is jboss and they both are deployed in 2 different machines.
1) So if I am using ejb specs 1.1 then
where should my business delegate and ServiceLocator reside. In app server or web server.

2) So if I am using ejb specs 2.0 then
where should my business delegate and ServiceLocator reside. In app server or web server.

is it true that if your using ejb2.0 specs then its good to have businessDelegate as StatelessSession bean and ServieLocator as a helper Singleton Java bean at the app server end,
as all the lookup calls would be local. if I had implemented the local interface

Thanks,
aakash
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by aakash bhatt:
Hi

So in my appliction my web server is a tomcat and appsever is jboss and they both are deployed in 2 different machines.
1) So if I am using ejb specs 1.1 then
where should my business delegate and ServiceLocator reside. In app server or web server.

2) So if I am using ejb specs 2.0 then
where should my business delegate and ServiceLocator reside. In app server or web server.

is it true that if your using ejb2.0 specs then its good to have businessDelegate as StatelessSession bean and ServieLocator as a helper Singleton Java bean at the app server end,
as all the lookup calls would be local. if I had implemented the local interface

Thanks,
aakash




The Business delegate and the serviceLocator should be located in the web server. It hardly makes a difference whether EJB 1.1 or 2.0 is used in the configuration mentioned by you. You could implement the Service Locator class as a singleton.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!