Author: pete.muir(a)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();
}
/**
Show replies by date