Forums Register Login

Environment entries

+Pie Number of slices to send: Send
Hi,

Suppose there are two beans, bean A and bean B such that both have the following environment refs:
A references B with java:comp/env/ejb/BeanB
B has a deploy-time constant with java:comp/env/MyConstant
Now, can A reference MyConstant with an address like:
java:comp/env/ejb/BeanB/MyConstant?
Chris Arthur
+Pie Number of slices to send: Send
No. The ENC (environment naming context) is a private space each bean has all to itself. It is bound to JNDI, but only for that bean. It isn't visible to other beans.
+Pie Number of slices to send: Send
I think Reid is right.
Good heavens! What have you done! Here, try to fix it with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 526 times.
Similar Threads
Name comp/ejb not found
Finding resources
Lookup pbm for a local EJB in JBOSS
JTA objects
Unable to Find EJB in JNDI
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:55:36.