• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is wrong with this (env. entry)?

 
Yan Zhou
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Enterprise bean instances obtain the values of the environment entries from the enterprise bean's deployment descriptor.

what is wrong with the above statement? The answer says that the deployment descriptor is used to define only the environment entries, as opposed to the values that the enterprise bean expects to be provided at runtime.

I do not follow, if I define TaxRate in the descriptor, is not the value 0.20 also defined there?

Thanks.
Yan
 
Jef Cumps
cowbird
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

My guess is that this questions points you to the fact that the deployment descriptor is used for defining env entries and their values, but that the bean instance will not read the deployment descriptor when looking up an env entry (EJB's cannot read files!). The env entries are put in the 'special' JNDI-context of the bean, and that's where the bean should look them up...

Right?

Jef
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic