Is there a way to avoid creating <ejb-local-ref> elements in your EJBs declarations?

 

We have an ejb-jar.xml with literally thousands of lines of XML, and quite many of those lines contain <ejb-local-ref> element information. All of our <ejb-local-ref> elements refer EJBs in the same ejb-jar. It seems superfluous yet without it nothing works.

 

I am looking for some way to express that if any of my EJBs refer “ejb/MySupermanEJB” then that always should resolve to a certain single <ejb-local-ref> declaration. Currently, instead of a single <ejb-local-ref> element, the element is always repeated in many many EJB declarations.

 

Is there a way to avoid it using either EJB compliant features or JBoss specific features?

 

Randahl

 

Reply via email to