Hi,
JBoss forces me to annotate some of my session beans with a @Depends annotation. I deploy ejbs in several ears at the same time with @EJB injection dependencies in between them. Deployment at server startup only works when i tell ejb container to ignore some @EJB dep for the moment and come back later once the referenced ejb got deployed.
It works fine (like most in JBoss).
But, in the @Depends annotation there is the referenced ejb named not by its jndiname but by its mbean (?) name:
example:
@Depends( "jboss.j2ee:ear=my_ear-1.0-SNAPSHOT.ear,jar=my-ejb-1.0-SNAPSHOT.jar,name=MyServiceEjb,service=EJB3")