from the 1.1 spec:

-----------

14.2.4 Container Provider responsibility
The container provider has the following responsibilities:

Provide a deployment tool that allows the Deployer to set and modify the
values of the enterprise beans environment entries.

Implement the java:comp/env environment naming context, and provide it to
the enterprise bean instances at runtime. The naming context must include
all the environment entries declared by the Bean Provider, with their
values supplied in the deployment descriptor or set by the Deployer. The
environment naming context must allow the Deployer to create subcontexts
if they are needed by an enterprise bean.

The Container must ensure that the enterprise bean instances have only
read access to their environment variables. The Container must throw the
javax.naming.OperationNotSupportedException from all the methods of the
javax.naming.Context interface that modify the environment naming context
and its subcontexts.

---------

basically its for read only config.  without redeploying an app, there's
nothing in the spec that outlines how you would notify your beans of a
change in config, so essentially they are set-and-forget values.  (afaik)

hth
cheers
dim

On Tue, 20 Nov 2001, Catalfano Anthony wrote:

> I am totally confused regarding java:comp/env .
>
> Is there any good doc on this. I'm using VAJava 3.5 for development and
> deploying on WebSphere 3.5 and 4.0.
>
> Thanks
>
> Anthony Catalfano
> Information Technology Analyst
> Deere & Company
> 309-748-5201
>
>
> -----Original Message-----
> From: Raymond Blum [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 20, 2001 8:50 AM
> To: [EMAIL PROTECTED]
> Subject: Re: context java:comp/env is read only
>
>
> Thanks. I inherited this code which was developed for the J2EE RI, I guess
> that the RI did not conform to this portion of the spec (?)
>
> > -----Original Message-----
> > From: Victor Langelo [SMTP:[EMAIL PROTECTED]]
> > Sent: Monday, November 19, 2001 10:25 PM
> > To:   Raymond Blum
> > Cc:   [EMAIL PROTECTED]
> > Subject:      Re: context java:comp/env is read only
> >
> > It's mandated by the EJB spec. See section 20.2.4 of the EJB 2.0 spec.
> >
> > --Victor
> >
> > Raymond Blum wrote:
> >
> > > Hi there
> > >   I'm using WebLogic 6.1 and and having problems trying to bind values
> > to
> > > the context "java:comp/env"
> > > I look up that context through my initial context, retrieve values from
> > it
> > > that were coded in my <env-entry>, but when I then try to bind some
> > names
> > > and values to the context I get an "OperationNotSupportedException" with
> > the
> > > message "bind not allowed in a ReadOnlyContext"
> > >
> > > Is this a security policy issue? Can anyone help?
> > >
> > > Thanks
> > > ---Raymond
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to