AnimalServiceListener.java
// license-header java merge-point
//
// Generated by SessionListener.vsl in andromda-ejb3-cartridge on 08/06/2014 10:56:22.
// Modify as necessary. If deleted it will be regenerated.
//
package org.andromda.demo.ejb3.animal;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.interceptor.InvocationContext;
/**
* Callback Listener for Session bean org.andromda.demo.ejb3.animal.AnimalService
*
* @see org.andromda.demo.ejb3.animal.AnimalService
*/
public class AnimalServiceListener
{
/**
* Default public no-args constructor
*/
public AnimalServiceListener()
{
// empty constructor
}
@PostConstruct
public void postConstruct(InvocationContext ctx)
{
try
{
System.out.println("AnimalServiceListener: postConstruct");
ctx.proceed();
}
catch (Exception ex)
{
throw new RuntimeException(ex);
}
}
@PreDestroy
public void preDestroy(InvocationContext ctx)
{
try
{
System.out.println("AnimalServiceListener: preDestroy");
ctx.proceed();
}
catch (Exception ex)
{
throw new RuntimeException(ex);
}
}
}