当前位置: 首页>>代码示例>>Java>>正文


Java PostActivate类代码示例

本文整理汇总了Java中javax.ejb.PostActivate的典型用法代码示例。如果您正苦于以下问题:Java PostActivate类的具体用法?Java PostActivate怎么用?Java PostActivate使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


PostActivate类属于javax.ejb包,在下文中一共展示了PostActivate类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: openConnection

import javax.ejb.PostActivate; //导入依赖的package包/类
/**
 * Opens a new connection.
 */
@PostConstruct
@PostActivate
public void openConnection() {
    try {
        connection = dataSource.getConnection();
    } catch (SQLException sqle) {
        sqle.printStackTrace();
    }
}
 
开发者ID:rcuprak,项目名称:actionbazaar,代码行数:13,代码来源:BidderAccountCreatorBean.java

示例2: activate

import javax.ejb.PostActivate; //导入依赖的package包/类
/**
 * @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();
}
 
开发者ID:wesleyegberto,项目名称:study-ocbcd,代码行数:13,代码来源:EjbStatefulBean.java

示例3: activate

import javax.ejb.PostActivate; //导入依赖的package包/类
@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);
    }
}
 
开发者ID:apache,项目名称:tomee,代码行数:10,代码来源:StatefulContainerTest.java

示例4: activate

import javax.ejb.PostActivate; //导入依赖的package包/类
@PostActivate
public void activate() {
	logger.info("the bean is active");
}
 
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:5,代码来源:StateEngineLocalBean.java

示例5: postActivate

import javax.ejb.PostActivate; //导入依赖的package包/类
@PostActivate
private void postActivate() {
	logger.info("In PostActivate method");
}
 
开发者ID:hostettler,项目名称:JEE7-Demo,代码行数:5,代码来源:StudentStatisticsServiceImpl.java

示例6: postActivate

import javax.ejb.PostActivate; //导入依赖的package包/类
@PostActivate
private void postActivate(InvocationContext context) {
    System.out.println("MyStatefulBean.postActivate");
}
 
开发者ID:ftomassetti,项目名称:JavaIncrementalParser,代码行数:5,代码来源:MyStatefulBean.java

示例7: activate

import javax.ejb.PostActivate; //导入依赖的package包/类
@PostActivate
public void activate(InvocationContext ctx) {
  System.out.println("[CountCallbacks] @PostActivate");
}
 
开发者ID:mbranko,项目名称:isa,代码行数:5,代码来源:CountCallbacks.java

示例8: activate

import javax.ejb.PostActivate; //导入依赖的package包/类
@PostActivate
public void activate() {
  System.out.println("[CountBean] @PostActivate");
}
 
开发者ID:mbranko,项目名称:isa,代码行数:5,代码来源:CountBean.java

示例9: onPostActivate

import javax.ejb.PostActivate; //导入依赖的package包/类
@PostActivate
public void onPostActivate() {
    // Session-Statistik aktualisieren
    BestellvorgangSessionStatistics.passivatedSessions--;
    BestellvorgangSessionStatistics.activeSessions++;
}
 
开发者ID:xladde,项目名称:hsw,代码行数:7,代码来源:BestellvorgangBean.java

示例10: nachAktivierung

import javax.ejb.PostActivate; //导入依赖的package包/类
@PostActivate
public void nachAktivierung()
{
    meinZustand = Zustand.AUFGEWACHT;
    
}
 
开发者ID:xladde,项目名称:hsw,代码行数:7,代码来源:LifeCycleTestBean.java

示例11: postActivate

import javax.ejb.PostActivate; //导入依赖的package包/类
@PostActivate
public void postActivate() {
    ExecutionChannel.getInstance().notifyObservers("postActivate");
}
 
开发者ID:apache,项目名称:tomee,代码行数:5,代码来源:CallbackCounter.java

示例12: PostActivate

import javax.ejb.PostActivate; //导入依赖的package包/类
public Method PostActivate() throws NoSuchMethodException {
    return this.getClass().getMethod("PostActivate");
}
 
开发者ID:apache,项目名称:tomee,代码行数:4,代码来源:StatsInterceptor.java

示例13: method

import javax.ejb.PostActivate; //导入依赖的package包/类
@PostActivate
public void method() {
}
 
开发者ID:apache,项目名称:tomee,代码行数:4,代码来源:PostActivateMetaTest.java

示例14: myActivate

import javax.ejb.PostActivate; //导入依赖的package包/类
@PostActivate
public void myActivate() {
}
 
开发者ID:apache,项目名称:tomee,代码行数:4,代码来源:CheckInvalidCallbacksTest.java

示例15: ejbActivate

import javax.ejb.PostActivate; //导入依赖的package包/类
@Override
@PostActivate
public void ejbActivate() throws EJBException, RemoteException {
}
 
开发者ID:apache,项目名称:tomee,代码行数:5,代码来源:CheckInvalidCallbacksTest.java


注:本文中的javax.ejb.PostActivate类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。