[jboss-dev-forums] [Design of EJB 3.0] - Re: javax.ejb.EJB Annotations Outside EJB3 Components
richard.opalka@jboss.com
do-not-reply at jboss.com
Mon May 4 09:58:21 EDT 2009
Little fix, my getEjbReference() method looks like this now (because of @EJB annotation defaults):
private EjbReference getEjbReference(EJB ejbAnnotation, Class<?> type)
{
String beanInterface = ejbAnnotation.beanInterface().getName();
if (java.lang.Object.class.getName().equals(beanInterface))
{
beanInterface = type.getName();
}
return new EjbReference(ejbAnnotation.beanName(), beanInterface, ejbAnnotation.mappedName());
}
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228331#4228331
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228331
More information about the jboss-dev-forums
mailing list