File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes container role in environment entry settings? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "container role in environment entry settings?" Watch "container role in environment entry settings?" New topic

container role in environment entry settings?

yamini nadella
Ranch Hand

Joined: Apr 13, 2004
Posts: 257
The container is responsible for providing tools, which helps a Deployer to set or modify environment entry values.

is above statement is correct?
environment entries are defined by bean provider in ejb-jar.xml file. Assembler can set or change environment entry values.
But why container and deployer are coming in to picture. can a deployer change environment entry values?

Kathy Sierra
Cowgirl and Author

Joined: Oct 10, 2002
Posts: 1589
Howdy -- a Deployer could definitely modify environment variables--in fact, we like to think of env variables as "deploy-time constants", because they are typically things that might vary from deployment to deployment (tax rates, discounts, etc.)

The Container just has to make sure that this is available for a deployer to modify. There is a good chance that the bean provider and possibly the app assembler do not *know* the real value until deploy-time.

I agree. Here's the link:
subject: container role in environment entry settings?
It's not a secret anymore!