Anonymous | Login | Signup for a new account | 12-17-2024 08:46 PST |
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 | ||||
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. Regards Matthew Brew |
||||||||
Additional Information |
Example: @Stateless @Local ({ITestAgent.class}) @Interceptors({TestInterceptor.class}) @TransactionAttribute(TransactionAttributeType.SUPPORTS) public class TestAgentImpl implements ITestAgent { @Resource private EJBContext ejbContext; public String test() { //do something } } public class TestInterceptor { @Resource private EJBContext ejbContext; @AroundInvoke public Object intercept(InvocationContext ctx) throws Exception { //do stuff } } |
||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |