Java 类javax.ejb.PostActivate 实例源码
项目:actionbazaar
文件:BidderAccountCreatorBean.java
/**
* Opens a new connection.
*/
@PostConstruct
@PostActivate
public void openConnection() {
try {
connection = dataSource.getConnection();
} catch (SQLException sqle) {
sqle.printStackTrace();
}
}
项目:study-ocbcd
文件:EjbStatefulBean.java
/**
* @PostActivate: Marks a method to be invoked immediately after the container reactivates the instance.
* This method is called after the bean is deserialized and before the
* business methoed called by the client run.
* This method with @PostActivate annotation correspond to the ejbActivate() method used in EJB 2.x.
*/
@PostActivate
public void activate() {
System.out.println("activate");
// reacquire the resources
someVarNoSerializable = new Object();
}
项目:tomee
文件:StatefulContainerTest.java
@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);
}
}
项目:Mastering-Java-EE-Development-with-WildFly
文件:StateEngineLocalBean.java
@PostActivate
public void activate() {
logger.info("the bean is active");
}
项目:JEE7-Demo
文件:StudentStatisticsServiceImpl.java
@PostActivate
private void postActivate() {
logger.info("In PostActivate method");
}
项目:JavaIncrementalParser
文件:MyStatefulBean.java
@PostActivate
private void postActivate(InvocationContext context) {
System.out.println("MyStatefulBean.postActivate");
}
项目:isa
文件:CountCallbacks.java
@PostActivate
public void activate(InvocationContext ctx) {
System.out.println("[CountCallbacks] @PostActivate");
}
项目:isa
文件:CountBean.java
@PostActivate
public void activate() {
System.out.println("[CountBean] @PostActivate");
}
项目:hsw
文件:BestellvorgangBean.java
@PostActivate
public void onPostActivate() {
// Session-Statistik aktualisieren
BestellvorgangSessionStatistics.passivatedSessions--;
BestellvorgangSessionStatistics.activeSessions++;
}
项目:hsw
文件:LifeCycleTestBean.java
@PostActivate
public void nachAktivierung()
{
meinZustand = Zustand.AUFGEWACHT;
}
项目:tomee
文件:CallbackCounter.java
@PostActivate
public void postActivate() {
ExecutionChannel.getInstance().notifyObservers("postActivate");
}
项目:tomee
文件:StatsInterceptor.java
public Method PostActivate() throws NoSuchMethodException {
return this.getClass().getMethod("PostActivate");
}
项目:tomee
文件:StatsInterceptor.java
@PostActivate
public void PostActivate(final InvocationContext invocationContext) throws Exception {
record(invocationContext, PostActivate());
}
项目:tomee
文件:PostActivateMetaTest.java
@PostActivate
public void method() {
}
项目:tomee
文件:CheckInvalidCallbacksTest.java
@PostActivate
public void myActivate() {
}
项目:tomee
文件:CheckInvalidCallbacksTest.java
@PostActivate
public void myActivate(final Object anInvalidArgument) {
}
项目:tomee
文件:CheckInvalidCallbacksTest.java
@Override
@PostActivate
public void ejbActivate() throws EJBException, RemoteException {
}
项目:tomee
文件:CheckInvalidCallbacksTest.java
@PostActivate
public void myPostActivate() {
}
项目:tomee
文件:CheckInvalidCallbacksTest.java
@PostActivate
public void postActivate(final InvocationContext ic) {
}
项目:tomee
文件:Compat3to2Test.java
@PostActivate
public void beanActivate() throws EJBException, RemoteException {
calls.add((Call) Enum.valueOf(Call.class, "EjbActivate" + (++activates)));
}
项目:mbs2
文件:CountCallbacks.java
@PostActivate
public void activate(InvocationContext ctx) {
System.out.println("[CountCallbacks] @PostActivate");
}
项目:mbs2
文件:CountBean.java
@PostActivate
public void activate() {
System.out.println("[CountBean] @PostActivate");
}
项目:tomee
文件:SecondClassInterceptor.java
/**
* The interceptor method.
* This should intercept postActivate of the bean
*
* @param ctx - InvocationContext
* @throws runtime exceptions.
*/
@PostActivate
public void secondClassInterceptorPostActivate(final InvocationContext ctx) throws Exception {
Interceptor.profile(ctx, "secondClassInterceptorPostActivate");
ctx.proceed();
return;
}
项目:tomee
文件:SuperClassInterceptor.java
/**
* The interceptor method.
* This should intercept postActivate of the bean
*
* @param ctx - InvocationContext
* @throws runtime exceptions.
*/
@PostActivate
public void superClassInterceptorPostActivate(final InvocationContext ctx) throws Exception {
Interceptor.profile(ctx, "superClassInterceptorPostActivate");
ctx.proceed();
return;
}
项目:tomee
文件:ClassInterceptor.java
/**
* The interceptor method.
* This should intercept postActivate of the bean
*
* @param ctx - InvocationContext
* @throws runtime exceptions.
*/
@PostActivate
public void classInterceptorPostActivate(final InvocationContext ctx) throws Exception {
Interceptor.profile(ctx, "classInterceptorPostActivate");
ctx.proceed();
return;
}
项目:tomee
文件:SecondStatefulInterceptedBean.java
/**
* 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);
}
项目:tomee
文件:StatefulInterceptedBean.java
/**
* 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);
}
项目:tomee
文件:ThirdStatefulInterceptedBean.java
/**
* 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);
}
项目:tomee
文件:DefaultInterceptor.java
/**
* 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();
}
项目:tomee
文件:BasicStatefulInterceptedBean.java
/**
* 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);
}
项目:tomee
文件:InheritenceTest.java
@PostActivate
public void colorPostActivate() {
}