From: Vance K. <va...@us...> - 2006-01-18 09:38:14
|
User: vancek Date: 06/01/18 01:38:07 Modified: andromda-ejb3/src/main/resources/templates/ejb3 SessionBean.vsl Log: removed @javax.ejb.Stateless/@javax.ejb.Stateful annotation - cause double up of session bean registration and failure to associate remote interface. now regisration is done via ejb-jar.xml descriptor. added @javax.ejb.Timeout annotation for session beans to register the callback with the Timer Service. Revision Changes Path 1.6 +8 -1 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBean.vsl Index: SessionBean.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBean.vsl,v retrieving revision 1.5 retrieving revision 1.6 diff -u -w -r1.5 -r1.6 --- SessionBean.vsl 17 Jan 2006 03:13:48 -0000 1.5 +++ SessionBean.vsl 18 Jan 2006 09:38:04 -0000 1.6 @@ -10,7 +10,11 @@ * $service.getDocumentation(" * ") */ -@javax.ejb.${service.type} +/** + * Do not specify the javax.ejb.${service.type} annotation + * Instead, define the session bean in the ejb-jar.xml descriptor + * javax.ejb.${service.type} + */ #if ($service.transactionManagement) @javax.ejb.TransactionManagement(javax.ejb.TransactionManagementType.${service.transactionManagement}) #end @@ -278,6 +282,9 @@ #* *##if ($operation.flushMode) @javax.persistence.FlushMode(javax.persistence.FlushModeType.${operation.flushMode}) #* *##end +#* *##if ($operation.timeoutCallback) + @javax.ejb.Timeout +#* *##end #* *##set ($returnType = $operation.returnType.fullyQualifiedName) #* *##if ($operation.exceptionsPresent) $visibility abstract $returnType $operation.signature $operation.throwsClause; |