All Downloads are FREE. Search and download functionalities are using the official Maven repository.

eap7.eap72.tests.data.singleton-sessionbean.SingletonNoSessionBeanBean Maven / Gradle / Ivy

The newest version!
import java.rmi.RemoteException;
import java.util.logging.Logger;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.ejb.EJBException;
import javax.ejb.SessionContext;
import javax.ejb.Singleton;
import javax.ejb.Startup;

@Singleton
@Startup
public class SingletonBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private static final Logger LOGGER = Logger.getLogger(SingletonBean.class.getName());

	@PostConstruct
	public void start() {
		LOGGER.info(">>>>>>>> STARTING [" + this.getClass().getSimpleName() + "]");
	}

	// not called by EAP
	@PreDestroy
	public void stop() {
		LOGGER.info(">>>>>>>> DESTROYING [" + this.getClass().getSimpleName() + "]");

	}

	public void setSessionContext(SessionContext ctx) throws EJBException, RemoteException {
		// TODO Auto-generated method stub

	}

	public void ejbRemove() throws EJBException, RemoteException {
		// TODO Auto-generated method stub

	}

	public void ejbActivate() throws EJBException, RemoteException {
		// TODO Auto-generated method stub

	}

	public void ejbPassivate() throws EJBException, RemoteException {
		// TODO Auto-generated method stub

	}
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy