[jboss-user] [EJB 3.0] - @Depends refers to the ear file name - is there another way?
do-not-reply at jboss.com
Wed Sep 24 17:02:12 EDT 2008
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:
as you can see, the ear and the jar file name is now in the Java code!
Now comes Maven which does not allow to change artifact names when installed to repositories! Thats why the maven versions stay in the file names.
Which prevents me from ever changing a maven version of the ear or ejb.jar projects.
Maven has no solution that i was able to find.
Does JBoss have an alternative for declaring some dependency to be resolved later?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4178646#4178646
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4178646
More information about the jboss-user