Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003964 [Resin] minor always 03-23-10 11:48 03-26-10 14:05
Reporter alex View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.6 Product Version 4.0.4
  Product Build
Summary 0003964: 3.1 to 4.0 EJB JNDI Lookup compatibility
Description rep. by Matthew Brew
I am currently trying to upgrade resin from version 3.1.9 to version 4.0.4. The method of deployment we use is an .ear file. We are having some problems with getting Stateless EJB's from the JNDI.

Previously this would work:

InitialContext ctx = (Context)new InitialContext();
ctx.lookup("java:comp/env/ejb/automation/" + className + "/local");

Matthew,

That behaviour is not standard and did not get ported to 4.0. We will be adding the capability as


I have also tried this:
ctx.lookup("java:comp/env/ejb/" + className );

and various other combinations but unfortunately they all fail. Following is an example of our annotations on the stateless EJB.


@Stateless
@Local({ITLDAgent.class})
@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
public class TLDAgentImpl implements ITLDAgent
{

}
How can I retreive the EJB's from the JNDI?
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0004487)
ferg
03-26-10 14:05

ejb/3400, ejb/2090

In Resin 4.0.5, <ejb-server jndi-prefix="java:comp/env/ejb"/> gives the backward compatibility. You will need to add it to your resin.xml (usually in the <cluster> section.)

The fix for 4.0.6 was basic <ejb-ref> support. (Complete support isn't expected until 4.0.8, but the basic support will be in 4.0.6).
 

- Issue History
Date Modified Username Field Change
03-23-10 11:48 alex New Issue
03-23-10 11:49 alex Description Updated
03-24-10 03:16 smallufo Issue Monitored: smallufo
03-26-10 14:05 ferg Note Added: 0004487
03-26-10 14:05 ferg Assigned To  => ferg
03-26-10 14:05 ferg Status new => closed
03-26-10 14:05 ferg Resolution open => fixed
03-26-10 14:05 ferg Fixed in Version  => 4.0.6


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