[jboss-user] [EJB 3.0] - Re: JNDI in Jboss EJB3 Embeddable Container: Naming Problem

fhh do-not-reply at jboss.com
Thu Apr 19 14:51:26 EDT 2007


anonymous wrote : 
  | From reading the documentation I shouldn't need @local for a stateless session bean right?
  | 

Nope. On the the page you linked in your first ppost it clearly says:

anonymous wrote : 
  | Take a look at CalculatorRemote.java. To define this as the remote interface of Calculator bean you either annotate the bean class and specify what the remote interfaces are, or you annotate each remote interface the bean class implements with @javax.ejb.Remote. only need to annotate the bean class with @javax.ejb.Remote. Similar for CalculatorLocal.java as you need to annotate the bean class with @javax.ejb.Local for it to be the local interface of the CalculatorBean.
  | 

Regards

Felix

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

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



More information about the jboss-user mailing list