Mantis - Resin
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
4186 | major | always | 08-23-10 11:18 | 11-11-10 11:11 | |
|
|||||
Reporter: | reza | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | high | OS Version: | |||
Status: | closed | Product Version: | 4.0.10 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 4.0.13 | ||
|
|||||
Summary: | 0004186: Life-cycle call-back methods should be transactional | ||||
Description: |
Life-cycle call-back methods (@PostConstruct/@PreDestroy) should be transactional and support transaction meta-data including BMT meta-data as well as EJB session context transaction related methods. This is especially true for Singletons and is a requirement of the EJB 3.1 specification. This should probably be extended to CDI managed beans targeted for Java EE 7. Here is an example: @Singleton public class SomeBean { @PostConstruct private void init() { // Should be in a CMT REQUIRED transaction by default. } public void doSomething() { // Should be in a CMT REQUIRED transaction by default. } @PreDestroy private void destroy() { // Should be in a CMT REQUIRED transaction by default. } } |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
There are no notes attached to this issue. |