- MyEclipse5.5.1GA+JBOSS4.2.1GA+EJB3, very strange proble 2007-08-11 - By daemon1978
Back for a new project i met following strange problem,please help me : using myeclipse to generate a EJB3 projects and When I create a session bean and use the annotation "@(protected)" to inject the EntityManager, then I deploy such
EJB3 to jboss. With jboss web-console ,in JNDIView I cann't find the EJB's JNDI name ,that mean the session bean cann't bind
to a JNDI name abd I cann't visit it. But when I delete the using of the annotation "@(protected)", the session bean will be deployed ok, in jboss web-
console I can also find the session-bean's JNDI name.
code like : //deploy it will have problem @(protected) public class CommonNativeQuery implements CommonNativeQueryLocal, CommonNativeQueryRemote { @(protected) EntityManager em; }
//deploy it will be OK @(protected) public class CommonNativeQuery implements CommonNativeQueryLocal, CommonNativeQueryRemote { //@(protected) EntityManager em; }
In such circumstance, I cann't use EntityManager to operate the Entity-Bean ,it 's really big headache,please help me!! thanks!!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic &p=4073260#4073260
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode =reply&p=4073260 __ ____ ____ ____ ____ ____ ____ ____ ____ ____ jboss-user mailing list jboss-user@(protected) https://lists.jboss.org/mailman/listinfo/jboss-user
|
|