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?
posted 13 years ago
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...