javax.ejb.PostActivate Java Examples

The following examples show how to use javax.ejb.PostActivate. 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 vote down vote up
@PostActivate
public void activate() {
    final String name = "POST_ACTIVATE" + (++activates);
    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 vote down vote up
public Method PostActivate() throws NoSuchMethodException {
    return this.getClass().getMethod("PostActivate");
}
 
Example #3
Source File: Compat3to2Test.java    From tomee with Apache License 2.0 4 votes vote down vote up
@PostActivate
public void beanActivate() throws EJBException, RemoteException {
    calls.add((Call) Enum.valueOf(Call.class, "EjbActivate" + (++activates)));
}
 
Example #4
Source File: CheckInvalidCallbacksTest.java    From tomee with Apache License 2.0 4 votes vote down vote up
@PostActivate
public void postActivate(final InvocationContext ic) {
}
 
Example #5
Source File: CheckInvalidCallbacksTest.java    From tomee with Apache License 2.0 4 votes vote down vote up
@PostActivate
public void myPostActivate() {
}
 
Example #6
Source File: CheckInvalidCallbacksTest.java    From tomee with Apache License 2.0 4 votes vote down vote up
@Override
@PostActivate
public void ejbActivate() throws EJBException, RemoteException {
}
 
Example #7
Source File: CheckInvalidCallbacksTest.java    From tomee with Apache License 2.0 4 votes vote down vote up
@PostActivate
public void myActivate(final Object anInvalidArgument) {
}
 
Example #8
Source File: CheckInvalidCallbacksTest.java    From tomee with Apache License 2.0 4 votes vote down vote up
@PostActivate
public void myActivate() {
}
 
Example #9
Source File: PostActivateMetaTest.java    From tomee with Apache License 2.0 4 votes vote down vote up
@PostActivate
public void method() {
}
 
Example #10
Source File: StatsInterceptor.java    From tomee with Apache License 2.0 4 votes vote down vote up
@PostActivate
public void PostActivate(final InvocationContext invocationContext) throws Exception {
    record(invocationContext, PostActivate());
}
 
Example #11
Source File: NewSessionBean.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@PostActivate
public void method() {
}
 
Example #12
Source File: CallbackCounter.java    From tomee with Apache License 2.0 4 votes vote down vote up
@PostActivate
public void postActivate() {
    ExecutionChannel.getInstance().notifyObservers("postActivate");
}
 
Example #13
Source File: ClassInterceptor.java    From tomee with Apache License 2.0 3 votes vote down vote up
/**
 * The interceptor method.
 * This should intercept postActivate of the bean
 *
 * @param ctx - InvocationContext
 * @throws Exception
 */
@PostActivate
public void classInterceptorPostActivate(final InvocationContext ctx) throws Exception {
    Interceptor.profile(ctx, "classInterceptorPostActivate");
    ctx.proceed();
    return;
}
 
Example #14
Source File: SuperClassInterceptor.java    From tomee with Apache License 2.0 3 votes vote down vote up
/**
 * The interceptor method.
 * This should intercept postActivate of the bean
 *
 * @param ctx - InvocationContext
 * @throws Exception
 */
@PostActivate
public void superClassInterceptorPostActivate(final InvocationContext ctx) throws Exception {
    Interceptor.profile(ctx, "superClassInterceptorPostActivate");
    ctx.proceed();
    return;
}
 
Example #15
Source File: SecondClassInterceptor.java    From tomee with Apache License 2.0 3 votes vote down vote up
/**
 * The interceptor method.
 * This should intercept postActivate of the bean
 *
 * @param ctx - InvocationContext
 * @throws Exception
 */
@PostActivate
public void secondClassInterceptorPostActivate(final InvocationContext ctx) throws Exception {
    Interceptor.profile(ctx, "secondClassInterceptorPostActivate");
    ctx.proceed();
    return;
}
 
Example #16
Source File: BasicStatefulInterceptedBean.java    From tomee with Apache License 2.0 2 votes vote down vote up
/**
 * The interceptor method.
 * This should intercept postActivate of the bean
 *
 * @throws Exception runtime exceptions.
 */
@PostActivate
public void inBeanInterceptorPostActivate() throws Exception {
    final Map<String, Object> ctxData = Interceptor.profile(this, "inBeanInterceptorPostActivate");
    setContextData(ctxData);
}
 
Example #17
Source File: InheritenceTest.java    From tomee with Apache License 2.0 2 votes vote down vote up
@PostActivate
public void colorPostActivate() {

}
 
Example #18
Source File: DefaultInterceptor.java    From tomee with Apache License 2.0 2 votes vote down vote up
/**
 * The interceptor method.
 * This should intercept postActivate of the bean
 *
 * @param ctx - InvocationContext
 * @throws Exception runtime exceptions.
 */
@PostActivate
public void defaultInterceptorPostActivate(final InvocationContext ctx) throws Exception {
    Interceptor.profile(ctx, "defaultInterceptorPostActivate");
    ctx.proceed();
}
 
Example #19
Source File: ThirdStatefulInterceptedBean.java    From tomee with Apache License 2.0 2 votes vote down vote up
/**
 * The interceptor method.
 * This should intercept postActivate of the bean
 *
 * @throws Exception runtime exceptions.
 */
@PostActivate
public void inBeanInterceptorPostActivate() throws Exception {
    final Map<String, Object> ctxData = Interceptor.profile(this, "inBeanInterceptorPostActivate");
    setContextData(ctxData);
}
 
Example #20
Source File: StatefulInterceptedBean.java    From tomee with Apache License 2.0 2 votes vote down vote up
/**
 * The interceptor method.
 * This should intercept postActivate of the bean
 *
 * @throws Exception runtime exceptions.
 */
@PostActivate
public void inBeanInterceptorPostActivate() throws Exception {
    final Map<String, Object> ctxData = Interceptor.profile(this, "inBeanInterceptorPostActivate");
    setContextData(ctxData);
}
 
Example #21
Source File: SecondStatefulInterceptedBean.java    From tomee with Apache License 2.0 2 votes vote down vote up
/**
 * The interceptor method.
 * This should intercept postActivate of the bean
 *
 * @throws Exception runtime exceptions.
 */
@PostActivate
public void inBeanInterceptorPostActivate() throws Exception {
    final Map<String, Object> ctxData = Interceptor.profile(this, "inBeanInterceptorPostActivate");
    setContextData(ctxData);
}