[webbeans-commits] Webbeans SVN: r781 - ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ejb.
webbeans-commits at lists.jboss.org
webbeans-commits at lists.jboss.org
Mon Jan 5 14:27:07 EST 2009
Author: pete.muir at jboss.org
Date: 2009-01-05 14:27:07 -0500 (Mon, 05 Jan 2009)
New Revision: 781
Modified:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ejb/SessionBeanInterceptor.java
Log:
WBRI-91
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ejb/SessionBeanInterceptor.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ejb/SessionBeanInterceptor.java 2009-01-05 19:21:13 UTC (rev 780)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ejb/SessionBeanInterceptor.java 2009-01-05 19:27:07 UTC (rev 781)
@@ -36,30 +36,34 @@
* Gets the underlying target and calls the post-construct method
*
* @param invocationContext The invocation context
+ * @throws Exception
*/
@PostConstruct
- public void postConstruct(InvocationContext invocationContext)
+ public void postConstruct(InvocationContext invocationContext) throws Exception
{
EnterpriseBean<Object> enterpriseBean = getBean(invocationContext);
if (enterpriseBean != null)
{
enterpriseBean.postConstruct(invocationContext.getTarget());
}
+ invocationContext.proceed();
}
/**
* Gets the underlying target and calls the pre-destroy method
*
* @param invocationContext The invocation context
+ * @throws Exception
*/
@PreDestroy
- public void preDestroy(InvocationContext invocationContext)
+ public void preDestroy(InvocationContext invocationContext) throws Exception
{
EnterpriseBean<Object> enterpriseBean = getBean(invocationContext);
if (enterpriseBean != null)
{
enterpriseBean.preDestroy(invocationContext.getTarget());
}
+ invocationContext.proceed();
}
/**
More information about the weld-commits
mailing list