JBoss Community

Re: Random NameNotFoundException in jboss 6.1-SNAPSHOT

created by legae in EJB3 - View the full discussion

I checked this once again. I added to service (AService) where the MyDependBeanLocal is used in @PostConstruct method a System.out.println("myBeanLocal: "+myBeanLocal);

 

and this is the output

 

09:56:15,471 INFO  [STDOUT] myBeanLocal: Proxy to jboss.j2ee:ear=my.ear,jar=my.jar,name=MyDependBean,service=EJB3 implementing [interface com.app.ifaces.MyDependBeanLocal]

09:56:15,477 ERROR [CMTTxInterceptor] javax.ejb.EJBTransactionRolledbackException: javax.naming.NameNotFoundException: com.app.MyDependBean not bound

 

 

why in [STDOUT] myBeanLocal looks like it was initialized and ready to use?

What kind of annotation I should use to make my service dependend on EJB? Is @org.jboss.ejb3.annotation.Depends deprecated or does it really work?

Reply to this message by going to Community

Start a new discussion in EJB3 at Community