The following is from EJB 3 in Action,
If you want, you can apply the @Local, @Remote, or @WebService annotation in the
bean class without having to implement the business interface as follows:
My question here is with the @Remote annotation specified in the code above as it says that BidManager.class which is a POJI is the Remote interface for this session bean. So does this imply that when I write my client class (which is going to be a remote client), can I do a DI like this below,
OR do I have to do this,
Please help guys!
[ September 03, 2008: Message edited by: Jothi Shankar Kumar Sankararaj ]
Originally posted by Sergio Tridente:
In the following code:
The BidManagerBean business remote interface is BidManager. There are no other business interfaces. So the proper way to get a reference to your bean will be to define:
You cannot use
BidManagerRemote is NOT a business interface of BidManagerBean.
I competely got what you are trying to convey. Thanks for the response! Another question here is, can I also say the same interface to be a Local interface?
Would this be right?