📄 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 + -