sessionsupport.java
来自「Jboss s J2EE Sample」· Java 代码 · 共 65 行
JAVA
65 行
/* * JBoss, the OpenSource J2EE webOS * * Distributable under LGPL license. * See terms of license at gnu.org. */package transaction.session;import javax.ejb.CreateException;import javax.ejb.SessionBean;import javax.ejb.SessionContext;import org.apache.log4j.Category;import transaction.EnterpriseSupport;/** * * @see <related> * @version $Revision: 1.1 $ */public abstract class SessionSupport extends EnterpriseSupport implements SessionBean{ protected transient Category log = Category.getInstance(getClass()); protected SessionContext sessionCtx; public void ejbCreate() throws CreateException { } public void setSessionContext(SessionContext ctx) { sessionCtx = ctx; } public void ejbActivate() { } public void ejbPassivate() { } public void ejbRemove() { } private void writeObject(java.io.ObjectOutputStream stream) throws java.io.IOException { // nothing } private void readObject(java.io.ObjectInputStream stream) throws java.io.IOException, ClassNotFoundException { // reset logging log = Category.getInstance(getClass()); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?