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?
-
Why do we need ejb-ref tags? (3 messages)
- Posted by: Nikhil Gupte
- Posted on: November 09 2002 02:49 EST
Threaded Messages (3)
- Why do we need ejb-ref tags? by Stephen Davies on November 10 2002 18:01 EST
- Why do we need ejb-ref tags? by Jens Schumann on November 10 2002 18:53 EST
- Why do we need ejb-ref tags? by Raj S on November 11 2002 02:56 EST
-
Why do we need ejb-ref tags?[ Go to top ]
- Posted by: Stephen Davies
- Posted on: November 10 2002 18:01 EST
- in response to Nikhil Gupte
So that the JNDI name of a bean can be changed during deployment without needing access to the bean source code. -
Why do we need ejb-ref tags?[ Go to top ]
- Posted by: Jens Schumann
- Posted on: November 10 2002 18:53 EST
- in response to Stephen Davies
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 ;) -
Why do we need ejb-ref tags?[ Go to top ]
- Posted by: Raj S
- Posted on: November 11 2002 02:56 EST
- in response to Nikhil Gupte
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