[ http://jira.jboss.com/jira/browse/JBAS-1490?page=history ]

Tim Fox updated JBAS-1490:
--------------------------

    Description: 
The component JNDI environment for a Stateless session bean does not appear to 
be read-only.

I have a SLSB running in 3.2.6.

It attempts to modify it's ENC (java:comp/env environment) and succeeds. I.e. 
the following succeeds:

InitialContext ic = new InitialContext();
Context envCtx = (Context)new InitialContext().lookup("java:comp/env");
envCtx.bind("foo", "bar");
log.debug("Worked!!");

Also bind stuff into the context works.

I haven't tried with other types of EJB.

According to the EJB 2.0 spec (Sec. 20.2.4) an enterprise beans's environment 
should be read-only.






  was:
The component JNDI environment for a Stateless session bean does not appear to 
be read-only.

I have a SLSB running in 3.2.6.

It attempts to modify it's ENC (java:comp/env environment) and succeeds. I.e. 
the following succeeds:

InitialContext ic = new InitialContext();
Context envCtx = (Context)new InitialContext().lookup("java:comp/env");
envCtx.bind("foo", "bar");
log.debug("Worked!!");

Also bind stuff into the context works.

I haven't tried with other types of EJB.

According to the EJB 2.0 spec (Sec. 20.2.4) an entity beans's environment 
should be read-only.





> EJB component environment (ENC) is not read only
> ------------------------------------------------
>
>          Key: JBAS-1490
>          URL: http://jira.jboss.com/jira/browse/JBAS-1490
>      Project: JBoss Application Server
>         Type: Bug
>   Components: EJBs
>     Versions: JBossAS-3.2.6 Final
>  Environment: Windows XP
>     Reporter: Tim Fox

>
>
> The component JNDI environment for a Stateless session bean does not appear 
> to be read-only.
> I have a SLSB running in 3.2.6.
> It attempts to modify it's ENC (java:comp/env environment) and succeeds. I.e. 
> the following succeeds:
> InitialContext ic = new InitialContext();
> Context envCtx = (Context)new InitialContext().lookup("java:comp/env");
> envCtx.bind("foo", "bar");
> log.debug("Worked!!");
> Also bind stuff into the context works.
> I haven't tried with other types of EJB.
> According to the EJB 2.0 spec (Sec. 20.2.4) an enterprise beans's environment 
> should be read-only.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to