📄 sbusinessexampleejb30.java
字号:
package test.ejb3;
import javax.ejb.CreateException;
import javax.ejb.Remote;
import javax.ejb.Stateless;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.ejb.support.AbstractStatelessSessionBean;
/**
*
* @author worldheart
*
*/
@Stateless
@Remote(IBusinessInterface.class)
public class SBusinessExampleEjb30 extends AbstractStatelessSessionBean
implements IBusinessInterface {
protected static final Log log = LogFactory
.getLog(SBusinessExampleEjb30.class);
private IBusinessInterface sbe;
protected void onEjbCreate() throws CreateException {
log.info("onEjbCreate()..............");
log.info(this.getBeanFactory());
sbe = (IBusinessInterface) getBeanFactory().getBean("bi");
}
public String getStr(String args) {
return sbe.getStr(args);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -