Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001322 [Resin] minor always 08-30-06 17:29 09-05-06 15:01
Reporter gzhu View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform x86
Status closed   OS Linux
Projection none   OS Version 2.6.7.1
ETA none Fixed in Version 3.0.22 Product Version 3.0.21
  Product Build Thu, 10 Aug 2006 12:03:19 PDT
Summary 0001322: Within Enterprise Bean Context, environment entries not stored for CMP EJB 2
Description Environment entries defined in EJB CMP 2.0 are not stored in EJB context - JNDI lookup returns null.

Stateless session bean can still have environment entries defined and looked up correctly. Somewhat consistent with EJB3 spec, since 'Entity' is no longer an EJB.





Steps To Reproduce Define a simple CMP (EJB2), with following in your ejb-jar.xml:

  <env-entry>
      <env-entry-name>testEnvName</env-entry-name>
      <env-entry-type>java.lang.String</env-entry-type>
      <env-entry-value>testEnvValue</env-entry-value>
  </env-entry>

Inside that CMP:
   String thisValue = (String)
           (new InitialContext()).lookup("java:comp/env/testEnvName");
   // thisValue would be "testEnvValue" with 3.0.19; and
   // thisValue would be null with 3.0.21


Additional Information
Attached Files

- Relationships

- Notes
(0001500)
ferg
09-05-06 15:01

ejb/086d
 

- Issue History
Date Modified Username Field Change
08-30-06 17:29 gzhu New Issue
09-05-06 15:01 ferg Note Added: 0001500
09-05-06 15:01 ferg Assigned To  => ferg
09-05-06 15:01 ferg Status new => closed
09-05-06 15:01 ferg Resolution open => fixed
09-05-06 15:01 ferg Fixed in Version  => 3.0.22


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker