javaee / ejb-spec

See javax.ejb project for API. Contains legacy issues only.
https://github.com/javaee/javax.ejb
6 stars 1 forks source link

LifecycleCallback method-intf type should not include bean constructor #97

Closed glassfishrobot closed 11 years ago

glassfishrobot commented 11 years ago

If Interceptors can be bound to a constructor directly, the element might refer to a constructor, but LifecycleCallback should be explicit that it includes only PostConstruct, PreDestroy, PrePassivate or PostActivate methods

Affected Versions

[3.2]

glassfishrobot commented 11 years ago

Reported by mvatkina

glassfishrobot commented 11 years ago

mvatkina said: Fixed in rev 61044:

svn diff Index: src/ejb-jar_3_2.xsds

— src/ejb-jar_3_2.xsds (revision 60392) +++ src/ejb-jar_3_2.xsds (working copy) @@ -2123,10 +2123,13 @@ timeout callback methods message-driven bean message listener method

2.

@@ -2140,8 +2143,9 @@ this style refers to all the methods with the overloaded name. * This style may be used to refer to stateful session bean * lifecycle callback methods to specify their transaction + This style may be used to refer to stateful session bean + PostConstruct, PreDestroy, PrePassivate, and PostActivate + lifecycle callback methods to specify their transaction attributes if any of the following is true: there is only one method with this name in the specified enterprise bean @@ -2364,8 +2368,10 @@ MessageEndpoint refers to the methods of a message-driven bean's message-listener interface. * LifecycleCallback refers to the lifecycle callback methods of * a singleton or stateful session bean. + LifecycleCallback refers to the PostConstruct and PreDestroy + lifecycle callback methods of a singleton session bean and + to the PostConstruct, PreDestroy, PrePassivate, and PostActivate + lifecycle callback methods of a stateful session bean. The method-intf element must be one of the following:
glassfishrobot commented 11 years ago

Was assigned to mvatkina

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA EJB_SPEC-97

glassfishrobot commented 11 years ago

Marked as fixed on Friday, March 29th 2013, 4:00:38 pm