Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Multiple Implementations of @Local interface  RSS feed

 
Marko Novakovic
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have interface GetData. I would like to have multiple implementations of that interface so that i can choose what kind of GetData will i use. This is @Local Interface and various implementations are called from another Session Bean. How can switch between implementations?

I have added @Stateless(name="serviceXXX") and am using it in that way but no matter what i set to name when using it, i am always getting the same implementation !?
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Marko Novakovic:
Hi,

I have interface GetData. I would like to have multiple implementations of that interface so that i can choose what kind of GetData will i use. This is @Local Interface and various implementations are called from another Session Bean. How can switch between implementations?

I have added @Stateless(name="serviceXXX") and am using it in that way but no matter what i set to name when using it, i am always getting the same implementation !?


Can you elaborate a bit on your question?
 
Marko Novakovic
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, i have one interface that is annotated with @Local

I would like to have more Session Beans that are implementing that interface. ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!