From: Vance K. <va...@us...> - 2006-03-02 10:18:51
|
User: vancek Date: 06/03/02 02:18:21 Modified: andromda-ejb3/src/main/resources/templates/ejb3 MessageDrivenListener.vsl Log: lifecycle methods can only have 1 arg of type InvocationContext call context.proceed() to continue the chain of interceptors after implementation Revision Changes Path 1.3 +22 -5 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/MessageDrivenListener.vsl Index: MessageDrivenListener.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/MessageDrivenListener.vsl,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -r1.2 -r1.3 --- MessageDrivenListener.vsl 17 Jan 2006 03:08:17 -0000 1.2 +++ MessageDrivenListener.vsl 2 Mar 2006 10:18:15 -0000 1.3 @@ -16,17 +16,34 @@ */ public ${mdb.messageDrivenListenerName}() { + // empty constructor } @javax.ejb.PostConstruct - public void postConstruct(${mdb.fullyQualifiedMessageDrivenName} ${stringUtils.uncapitalize(${mdb.name})}) + public void postConstruct(javax.ejb.InvocationContext ctx) + { + try { // post construct implementation + ctx.proceed(); + } + catch (Exception ex) + { + throw new RuntimeException(e); + } } @javax.ejb.PreDestroy - public void preDestroy(${mdb.fullyQualifiedMessageDrivenName} ${stringUtils.uncapitalize(${mdb.name})}) + public void preDestroy(javax.ejb.InvocationContext ctx) + { + try { // pre destroy implementation + ctx.proceed(); + } + catch (Exception ex) + { + throw new RuntimeException(e); + } } } |