sbusinessexampleejb30.java

来自「随书光盘:精通Sping 2.0 的随书源代码」· Java 代码 · 共 36 行

JAVA
36
字号
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 + =
减小字号Ctrl + -
显示快捷键?