[
https://jira.jboss.org/jira/browse/EJBTHREE-1068?page=com.atlassian.jira....
]
Dieter Cailliau commented on EJBTHREE-1068:
-------------------------------------------
I could not get the workaround working for the start() method: the @AroundInvoke never
intercepts start(), no matter in which interface it was. This means that i can not use my
resources (injected by my interceptor) in the start() implementation of the service, since
start() is ran without interception, and always the first call on that service. (jboss
4.2.3) Therefore this workaround isn't of much use to me: i have to call
Injector.inject(this) myself in the first line of my start() implementation.
@Interceptors defined on @Service EJBs do not have @PostConstruct
@PreDestroy interceptor methods invoked
---------------------------------------------------------------------------------------------------------
Key: EJBTHREE-1068
URL:
https://jira.jboss.org/jira/browse/EJBTHREE-1068
Project: EJB 3.0
Issue Type: Bug
Components: EJB3 Extensions
Affects Versions: AS 4.2.1.GA
Reporter: Michael McKibben
I've defined an injection-style interceptor class that needs to be called before a
@Service EJBs start() method is invoked on service startup. Using @PostConstruct
doesn't not work (the container never calls my @PostConstruct annotated method).
@AroundInvoke only works for methods defined on the @Local or @Remote business interface,
not the @Management interface.
Shouldn't @PostConstruct and @PreDestroy be invoked on @Service EJBs? I need my
interceptor to behave like the standard injection interceptors do.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira