本文整理汇总了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();
}
}
示例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();
}
示例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);
}
}
示例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");
}
示例6: postActivate
import javax.ejb.PostActivate; //导入依赖的package包/类
@PostActivate
private void postActivate(InvocationContext context) {
System.out.println("MyStatefulBean.postActivate");
}
示例7: activate
import javax.ejb.PostActivate; //导入依赖的package包/类
@PostActivate
public void activate(InvocationContext ctx) {
System.out.println("[CountCallbacks] @PostActivate");
}
示例8: activate
import javax.ejb.PostActivate; //导入依赖的package包/类
@PostActivate
public void activate() {
System.out.println("[CountBean] @PostActivate");
}
示例9: onPostActivate
import javax.ejb.PostActivate; //导入依赖的package包/类
@PostActivate
public void onPostActivate() {
// Session-Statistik aktualisieren
BestellvorgangSessionStatistics.passivatedSessions--;
BestellvorgangSessionStatistics.activeSessions++;
}
示例10: nachAktivierung
import javax.ejb.PostActivate; //导入依赖的package包/类
@PostActivate
public void nachAktivierung()
{
meinZustand = Zustand.AUFGEWACHT;
}
示例11: postActivate
import javax.ejb.PostActivate; //导入依赖的package包/类
@PostActivate
public void postActivate() {
ExecutionChannel.getInstance().notifyObservers("postActivate");
}
示例12: PostActivate
import javax.ejb.PostActivate; //导入依赖的package包/类
public Method PostActivate() throws NoSuchMethodException {
return this.getClass().getMethod("PostActivate");
}
示例13: method
import javax.ejb.PostActivate; //导入依赖的package包/类
@PostActivate
public void method() {
}
示例14: myActivate
import javax.ejb.PostActivate; //导入依赖的package包/类
@PostActivate
public void myActivate() {
}
示例15: ejbActivate
import javax.ejb.PostActivate; //导入依赖的package包/类
@Override
@PostActivate
public void ejbActivate() throws EJBException, RemoteException {
}