[
http://jira.jboss.com/jira/browse/JBAS-1490?page=all ]
Dimitris Andreadis updated JBAS-1490:
-------------------------------------
Fix Version/s: JBossAS-4.2.1.CR1
(was: JBossAS-4.2.0.CR1)
EJB component environment (ENC) is not read only
------------------------------------------------
Key: JBAS-1490
URL:
http://jira.jboss.com/jira/browse/JBAS-1490
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: EJB2
Affects Versions: JBossAS-3.2.6 Final
Environment: Windows XP
Reporter: Tim Fox
Assigned To: Scott M Stark
Fix For: JBossAS-4.2.1.CR1
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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira