• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

implementing same interface by more than one beans (glashfish v2 + netbeans 6.7)

 
blv krishna
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a problem that is , in my application i have a generic local interface the all beans has to implement the same interfaces . i am getting the following error.



sample code



regards
Guru...
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@EJB(name="ProcessRequestReceiver")
IServicesLocal local;


Cannot resolve reference Unresolved Ejb-Ref ProcessRequestReceiver@jndi: @null@com.and.common.i.IServicesLocal@Session@null because there are 4 ejbs in the application with interface com.and.common.i.IServicesLocal


Try specifying the name of the bean too, in the injection:

 
blv krishna
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Jaikiran Pai,

it is working .thank for you help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic