[jboss-user] [EJB 3.0] - EJB 3 tutorial encourages non-standard code
huuskart
do-not-reply at jboss.com
Tue Dec 4 03:46:17 EST 2007
EJB 3 tutorial encourages to write non-standard code, at least in the EJB 2.1 adapters bit.
See
http://labs.jboss.com/jbossejb3/docs/tutorial/ejb21_client_adaptors/ejb21_client_adaptors.html
Session1Bean is annotated with the @Remote annotation to designate Session1Remote as its remote business interface. However, Session1Remote interface extends the EJBObject interface, which is wrong.
Enterprise JavaBeans 3.0 has this to say in §4.4.6:
"The following are the requirements for the session bean's business interface:
- The interface must not not extend the javax.ejb.EJBObject or javax.ejb.EJBLocalObject interface"
See also JBAS-5036.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110091#4110091
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110091
More information about the jboss-user
mailing list