javax.ejb.PrePassivate Java Examples
The following examples show how to use
javax.ejb.PrePassivate.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: StatefulContainerTest.java From tomee with Apache License 2.0 | 5 votes |
@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); } }
Example #2
Source File: StatsInterceptor.java From tomee with Apache License 2.0 | 4 votes |
public Method PrePassivate() throws NoSuchMethodException { return this.getClass().getMethod("PrePassivate"); }
Example #3
Source File: Compat3to2Test.java From tomee with Apache License 2.0 | 4 votes |
@PrePassivate public void beanPassivate() throws EJBException, RemoteException { calls.add((Call) Enum.valueOf(Call.class, "EjbPassivate" + (++passivates))); }
Example #4
Source File: CheckInvalidCallbacksTest.java From tomee with Apache License 2.0 | 4 votes |
@PrePassivate public void prePassivate(final InvocationContext ic) { }
Example #5
Source File: CheckInvalidCallbacksTest.java From tomee with Apache License 2.0 | 4 votes |
@PrePassivate public void myPrePassivate() { }
Example #6
Source File: CheckInvalidCallbacksTest.java From tomee with Apache License 2.0 | 4 votes |
@Override @PrePassivate public void ejbPassivate() throws EJBException, RemoteException { }
Example #7
Source File: CheckInvalidCallbacksTest.java From tomee with Apache License 2.0 | 4 votes |
@PrePassivate public void myPassivate() { }
Example #8
Source File: CheckInvalidCallbacksTest.java From tomee with Apache License 2.0 | 4 votes |
@PrePassivate public void myPassivate() { }
Example #9
Source File: InheritenceTest.java From tomee with Apache License 2.0 | 4 votes |
@PrePassivate public void colorPrePassivate() { }
Example #10
Source File: PrePassivateMetaTest.java From tomee with Apache License 2.0 | 4 votes |
@PrePassivate public void method() { }
Example #11
Source File: StatsInterceptor.java From tomee with Apache License 2.0 | 4 votes |
@PrePassivate public void PrePassivate(final InvocationContext invocationContext) throws Exception { record(invocationContext, PrePassivate()); }
Example #12
Source File: CallbackCounter.java From tomee with Apache License 2.0 | 4 votes |
@PrePassivate public void prePassivate() { ExecutionChannel.getInstance().notifyObservers("prePassivate"); }
Example #13
Source File: NewSessionBean.java From netbeans with Apache License 2.0 | 4 votes |
@PrePassivate public void businessMethod() { }
Example #14
Source File: ClassInterceptor.java From tomee with Apache License 2.0 | 3 votes |
/** * The interceptor method. * This should intercept prePassivate of the bean. * * @param ctx - InvocationContext * @throws Exception */ @PrePassivate public void classInterceptorPrePassivate(final InvocationContext ctx) throws Exception { Interceptor.profile(ctx, "classInterceptorPrePassivate"); ctx.proceed(); return; }
Example #15
Source File: SuperClassInterceptor.java From tomee with Apache License 2.0 | 3 votes |
/** * The interceptor method. * This should intercept prePassivate of the bean. * * @param ctx - InvocationContext * @throws Exception */ @PrePassivate public void superClassInterceptorPrePassivate(final InvocationContext ctx) throws Exception { Interceptor.profile(ctx, "superClassInterceptorPrePassivate"); ctx.proceed(); return; }
Example #16
Source File: SecondClassInterceptor.java From tomee with Apache License 2.0 | 3 votes |
/** * The interceptor method. * This should intercept prePassivate of the bean. * * @param ctx - InvocationContext * @throws Exception */ @PrePassivate public void secondClassInterceptorPrePassivate(final InvocationContext ctx) throws Exception { Interceptor.profile(ctx, "secondClassInterceptorPrePassivate"); ctx.proceed(); return; }
Example #17
Source File: NewMessageBean.java From netbeans with Apache License 2.0 | 2 votes |
@PrePassivate public void ejbStore(){ }
Example #18
Source File: BasicStatefulInterceptedBean.java From tomee with Apache License 2.0 | 2 votes |
/** * 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); }
Example #19
Source File: DefaultInterceptor.java From tomee with Apache License 2.0 | 2 votes |
/** * 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(); }
Example #20
Source File: ThirdStatefulInterceptedBean.java From tomee with Apache License 2.0 | 2 votes |
/** * 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); }
Example #21
Source File: StatefulInterceptedBean.java From tomee with Apache License 2.0 | 2 votes |
/** * 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); }
Example #22
Source File: SecondStatefulInterceptedBean.java From tomee with Apache License 2.0 | 2 votes |
/** * 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); }