📄 beantestimpl.java
字号:
/**
* $Log: BeanTestImpl.java,v $
* Revision 1.1 2003/01/16 13:06:51 mwulff
* initial version
*
* Revision 1.2 2002/11/17 17:42:08 mwulff
* added a ejbCreate method, that takes a parameter
*
* Revision 1.1 2002/11/15 18:15:53 mwulff
* initial version
*
*/
package de.fhm.jkf.test.sv;
import java.rmi.RemoteException;
import java.rmi.server.UID;
import javax.ejb.EJBException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
/**
* @author marten wulff
*
* <br><br><center><table border="1" width="80%"><hr>
* <strong><a href="http://jkf.sourceforge.net">The JKF Project</a></strong>
* <p>
* Copyright (C) 2002 by Marten Wulff
* <p>
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* <p>
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* <p>
* You should have received a copy of the <a href="http://www.gnu.org/copyleft/lesser.html">
* GNU Lesser General Public License</a> along with this library; if not, write to
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
* <hr></table></center>
*/
public class BeanTestImpl implements SessionBean {
private SessionContext context = null;
private String uid = null;
private String user = null;
public void ejbCreate() {
}
public void ejbCreate(String user) {
this.user = user;
}
/* (non-Javadoc)
* @see javax.ejb.SessionBean#setSessionContext(SessionContext)
*/
public void setSessionContext(SessionContext arg0)
throws EJBException, RemoteException {
context = arg0;
}
/* (non-Javadoc)
* @see javax.ejb.SessionBean#ejbRemove()
*/
public void ejbRemove() throws EJBException, RemoteException {
}
/* (non-Javadoc)
* @see javax.ejb.SessionBean#ejbActivate()
*/
public void ejbActivate() throws EJBException, RemoteException {
}
/* (non-Javadoc)
* @see javax.ejb.SessionBean#ejbPassivate()
*/
public void ejbPassivate() throws EJBException, RemoteException {
}
public String getUniqueId() {
if(uid == null) {
uid = new UID().toString();
}
return uid;
}
public String getUser() {
return user;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -