wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes implementing same interface by more than one beans (glashfish v2 + netbeans 6.7) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "implementing same interface by more than one beans (glashfish v2 + netbeans 6.7)" Watch "implementing same interface by more than one beans (glashfish v2 + netbeans 6.7)" New topic
Author

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

blv krishna
Greenhorn

Joined: Sep 27, 2009
Posts: 18
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

Joined: Jul 20, 2005
Posts: 9963
    
163

@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:



[My Blog] [JavaRanch Journal]
blv krishna
Greenhorn

Joined: Sep 27, 2009
Posts: 18
hi Jaikiran Pai,

it is working .thank for you help.
 
 
subject: implementing same interface by more than one beans (glashfish v2 + netbeans 6.7)
 
Similar Threads
[EJB3] Stateless Session Bean & Inheritance
How to inject sessionbean local reference in webservice(soap)
EJB3.x XML overriding @EJB Annotation Injection
accessing local session bean from a message driven bean
EJB 3.0 invasive?