[jboss-user] [JNDI/Naming/Network] - Re: JNDI EJB local lookup is ok, but the bean cannot be invo

itsme do-not-reply at jboss.com
Fri Jun 27 10:21:43 EDT 2008

Ah sorry, forgett about the last post.

Instead look for the ejb3 spec. There it is defined that an ejb cannot be both local and remote interface. Instead I would recommend, that you create a remote ejb as a facade that delegates it's work to the local interface

  | @Remote
  | public class ShipperManagerRemote extends IShipperManager {
  |  Long createShipper(Shipper);
  | }
  | public class ShipperManagerRemoteBean implements ShipperManagerRemote {
  |  @EJB private ShiperManagerLocal localShipperMgr;
  |  public Long createShipper(Shipper s) {
  |    return localShipperMgr.createShipper(s);
  |  }
  | }

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161188#4161188

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161188

More information about the jboss-user mailing list