|Anonymous | Login | Signup for a new account||03-30-2020 16:32 PDT|
|Main | My View | View Issues | Change Log | Docs|
|Viewing Issue Simple Details [ Jump to Notes ]||[ View Advanced ] [ 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|
|Summary||0003964: 3.1 to 4.0 EJB JNDI Lookup compatibility|
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");
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.
public class TLDAgentImpl implements ITLDAgent
How can I retreive the EJB's from the JNDI?
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).
|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.