Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003603 [Resin] major always 07-20-09 17:30 08-28-09 15:12
Reporter mbrew View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 3.1.9
Summary 0003603: in an EJB Interceptor, the @Resource tag fails when getting the EJBContext
Description In the example provided, the EJBContext in the interceptor class throws an error upon initialisation of the EJB saying that it can't find the TestInterceptor/ejbContext in the JNDI. It should be able to find the context and initialise it.

I've debugged the problem a bit and it seems that its trying to look for the EJB context before its getting added to the JNDI, as I can workaround the problem using the InitialContext and looking up the EJBContext inside the intercept method.

I am migrating our server from 3.1.5 to 3.1.9 and this functionality worked in 3.1.5.


Matthew Brew
Additional Information Example:

@Local ({ITestAgent.class})
public class TestAgentImpl implements ITestAgent
    private EJBContext ejbContext;

    public String test()
        //do something

public class TestInterceptor
    private EJBContext ejbContext;

    public Object intercept(InvocationContext ctx) throws Exception
        //do stuff
Attached Files

- Relationships

- Notes
08-28-09 15:12


- Issue History
Date Modified Username Field Change
07-20-09 17:30 mbrew New Issue
08-28-09 15:12 ferg Note Added: 0004198
08-28-09 15:12 ferg Assigned To  => ferg
08-28-09 15:12 ferg Status new => closed
08-28-09 15:12 ferg Resolution open => fixed
08-28-09 15:12 ferg Fixed in Version  => 4.0.2

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