Java 类javax.ejb.PrePassivate 实例源码

项目:actionbazaar    文件:BidderAccountCreatorBean.java   
/**
 * Cleans everything up
 */
@PrePassivate
@PreDestroy
public void cleanup() {
    try {
        connection.close();
        connection = null;
    } catch (SQLException sqle) {
        sqle.printStackTrace();
    }
}
项目:study-ocbcd    文件:EjbStatefulBean.java   
/**
 * @PrePassivate: Marks a method to be invoked before the container passivates the instance.
 * This method is called before the bean is passivate by the Container.
 * This method with @PrePassivate annotation correspond to the ejbPassivate() method used in EJB 2.x.
 */
@PrePassivate
public void passivate() {
    System.out.println("passivate");
    someVarNoSerializable = null; // we must set null
    // myConnection = null;
}
项目:study-ocbcd    文件:AccountFacadeBean.java   
@PreDestroy @Remove @PrePassivate
public void remove() {
    this.account = null;
    this.em = null;
    this.queue = null;
    this.queueFactory = null;
    this.ctx  = null;
}
项目:tomee    文件:StatefulContainerTest.java   
@PrePassivate
public void passivate() {
    final String name = "PRE_PASSIVATE" + (++passivates);
    try {
        lifecycle.push(Enum.valueOf(Lifecycle.class, name));
    } catch (final Exception e) {
        lifecycle.push(name);
    }
}
项目:Mastering-Java-EE-Development-with-WildFly    文件:StateEngineLocalBean.java   
@PrePassivate
public void passivate() {
    logger.info("the bean is passivating");
}
项目:JEE7-Demo    文件:StudentStatisticsServiceImpl.java   
@PrePassivate
private void prePassivate() {
    logger.info("In PrePassivate method");
}
项目:JavaIncrementalParser    文件:MyStatefulBean.java   
@PrePassivate
private void prePassivate(InvocationContext context) {
    System.out.println("MyStatefulBean.prePassivate");
}
项目:study-ocbcd    文件:AgencyFacadeBean.java   
@PreDestroy @Remove @PrePassivate
public void remove() {
    this.agency = null;
    this.em = null;
    this.ctx  = null;
}
项目:isa    文件:CountCallbacks.java   
@PrePassivate
public void passivate(InvocationContext ctx) {
  System.out.println("[CountCallbacks] @PrePassivate");
}
项目:isa    文件:CountBean.java   
@PrePassivate
public void passivate() {
  System.out.println("[CountBean] @PrePassivate");
}
项目:hsw    文件:BestellvorgangBean.java   
@PrePassivate
public void onPrePassivate() {
    // Session-Statistik aktualisieren
    BestellvorgangSessionStatistics.passivatedSessions++;
    BestellvorgangSessionStatistics.activeSessions--;
}
项目:hsw    文件:LifeCycleTestBean.java   
@PrePassivate
public void vorPassivierung()
{
    meinZustand = Zustand.SCHLAFEND;

}
项目:tomee    文件:CallbackCounter.java   
@PrePassivate
public void prePassivate() {
    ExecutionChannel.getInstance().notifyObservers("prePassivate");
}
项目:tomee    文件:StatsInterceptor.java   
public Method PrePassivate() throws NoSuchMethodException {
    return this.getClass().getMethod("PrePassivate");
}
项目:tomee    文件:StatsInterceptor.java   
@PrePassivate
public void PrePassivate(final InvocationContext invocationContext) throws Exception {
    record(invocationContext, PrePassivate());
}
项目:tomee    文件:PrePassivateMetaTest.java   
@PrePassivate
public void method() {
}
项目:tomee    文件:InheritenceTest.java   
@PrePassivate
public void colorPrePassivate() {
}
项目:tomee    文件:CheckInvalidCallbacksTest.java   
@PrePassivate
public void myPassivate() {
}
项目:tomee    文件:CheckInvalidCallbacksTest.java   
@PrePassivate
public void myPassivate() {
}
项目:tomee    文件:CheckInvalidCallbacksTest.java   
@Override
@PrePassivate
public void ejbPassivate() throws EJBException, RemoteException {
}
项目:tomee    文件:CheckInvalidCallbacksTest.java   
@PrePassivate
public void myPrePassivate() {
}
项目:tomee    文件:CheckInvalidCallbacksTest.java   
@PrePassivate
public void prePassivate(final InvocationContext ic) {
}
项目:tomee    文件:Compat3to2Test.java   
@PrePassivate
public void beanPassivate() throws EJBException, RemoteException {
    calls.add((Call) Enum.valueOf(Call.class, "EjbPassivate" + (++passivates)));
}
项目:mbs2    文件:CountCallbacks.java   
@PrePassivate
public void passivate(InvocationContext ctx) {
  System.out.println("[CountCallbacks] @PrePassivate");
}
项目:mbs2    文件:CountBean.java   
@PrePassivate
public void passivate() {
  System.out.println("[CountBean] @PrePassivate");
}
项目:tomee    文件:SecondClassInterceptor.java   
/**
 * The interceptor method.
 * This should intercept prePassivate of the bean.
 *
 * @param ctx - InvocationContext
 * @throws runtime exceptions.
 */
@PrePassivate
public void secondClassInterceptorPrePassivate(final InvocationContext ctx) throws Exception {
    Interceptor.profile(ctx, "secondClassInterceptorPrePassivate");
    ctx.proceed();
    return;
}
项目:tomee    文件:SuperClassInterceptor.java   
/**
 * The interceptor method.
 * This should intercept prePassivate of the bean.
 *
 * @param ctx - InvocationContext
 * @throws runtime exceptions.
 */
@PrePassivate
public void superClassInterceptorPrePassivate(final InvocationContext ctx) throws Exception {
    Interceptor.profile(ctx, "superClassInterceptorPrePassivate");
    ctx.proceed();
    return;
}
项目:tomee    文件:ClassInterceptor.java   
/**
 * The interceptor method.
 * This should intercept prePassivate of the bean.
 *
 * @param ctx - InvocationContext
 * @throws runtime exceptions.
 */
@PrePassivate
public void classInterceptorPrePassivate(final InvocationContext ctx) throws Exception {
    Interceptor.profile(ctx, "classInterceptorPrePassivate");
    ctx.proceed();
    return;
}
项目:tomee    文件:SecondStatefulInterceptedBean.java   
/**
 * The interceptor method.
 * This should intercept prePassivate of the bean.
 *
 * @throws Exception runtime exceptions.
 */
@PrePassivate
public void inBeanInterceptorPrePassivate() throws Exception {
    final Map<String, Object> ctxData = Interceptor.profile(this, Thread.currentThread().getStackTrace()[4].getMethodName());
    setContextData(ctxData);
}
项目:tomee    文件:StatefulInterceptedBean.java   
/**
 * The interceptor method.
 * This should intercept prePassivate of the bean.
 *
 * @throws Exception runtime exceptions.
 */
@PrePassivate
public void inBeanInterceptorPrePassivate() throws Exception {
    final Map<String, Object> ctxData = Interceptor.profile(this, "inBeanInterceptorPrePassivate");
    setContextData(ctxData);
}
项目:tomee    文件:ThirdStatefulInterceptedBean.java   
/**
 * The interceptor method.
 * This should intercept prePassivate of the bean.
 *
 * @throws Exception runtime exceptions.
 */
@PrePassivate
public void inBeanInterceptorPrePassivate() throws Exception {
    final Map<String, Object> ctxData = Interceptor.profile(this, "inBeanInterceptorPrePassivate");
    setContextData(ctxData);
}
项目:tomee    文件:DefaultInterceptor.java   
/**
 * The interceptor method.
 * This should intercept prePassivate of the bean.
 *
 * @param ctx - InvocationContext
 * @throws Exception runtime exceptions.
 */
@PrePassivate
public void defaultInterceptorPrePassivate(final InvocationContext ctx) throws Exception {
    Interceptor.profile(ctx, "defaultInterceptorPrePassivate");
    ctx.proceed();
}
项目:tomee    文件:BasicStatefulInterceptedBean.java   
/**
 * The interceptor method.
 * This should intercept prePassivate of the bean.
 *
 * @throws Exception runtime exceptions.
 */
@PrePassivate
public void inBeanInterceptorPrePassivate() throws Exception {
    final Map<String, Object> ctxData = Interceptor.profile(this, "inBeanInterceptorPrePassivate");
    setContextData(ctxData);
}