?? sessionsupport.java
字號:
/* * 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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -