Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Meaning of Bean's Environment Entries  RSS feed

 
Padma Priya
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Can anybody explain me the meaning of "Bean's Environment Entries". Are the values for these entries already present in the container when it is started up or are these values set by the Bean Provider.

If they are set by the bean provider then what does the below statement from the Spec means:

"Role of the container provider is to inject entries from the naming environment, as specified by annotations or by the deployment
descriptor
."

How can the container inject entries when the values of these are set in the bean.

Forgive me for such a dumb question. But i am really confused as i am new to EJB3.0

Thanks in advance

Deepthi

 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36406
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deepthi,
These are the "things" in the JNDI that the bean users. The environment entries are references to them.

That statement from the spec is talking about this injection. The values aren't set in the bean; the references are. For example, suppose my bean uses a DataSource. The DataSource already exists in the JNDI. Your bean is just saying it wants to use it.

If you know EJB 2.X, the concept hasn't changed.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!