Discussions

EJB programming & troubleshooting: Why do we need ejb-ref tags?

  1. Why do we need ejb-ref tags? (3 messages)

    I have a Session bean that access several entity beans and other session beans. In my ejb-jar.xml file, I havent declared all the necessary ejb-ref tags and still my application works.
    Ive tried it on jboss(3.0) and websphere (4.0.1).

    Are the ejb-ref tags really necessary?

    Threaded Messages (3)

  2. Why do we need ejb-ref tags?[ Go to top ]

    So that the JNDI name of a bean can be changed during deployment without needing access to the bean source code.
  3. Why do we need ejb-ref tags?[ Go to top ]

    Apart from the JNDI names all reference tags give you the opportunity to map requested to physically available references, which is an important feature to implement reusable components.

    Jens
    PS: But I did not say that I like the J2EE component model in general ;)
  4. Why do we need ejb-ref tags?[ Go to top ]

    I have also done the same thing of not using <ejb-ref> tag for Session Beans on JBoss 3.0 and it works fine.

    Raj