⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ejsremotestatelesssalesfacade_08ce4a61.java

📁 一个简单的EJB实例.用DB2连接.JSP页面.很好用.供大家学习
💻 JAVA
字号:
package com.xyz.ejb;import com.ibm.ejs.container.*;/** * EJSRemoteStatelessSalesFacade_08ce4a61 */public class EJSRemoteStatelessSalesFacade_08ce4a61 extends EJSWrapper implements SalesFacade {	/**	 * EJSRemoteStatelessSalesFacade_08ce4a61	 */	public EJSRemoteStatelessSalesFacade_08ce4a61() throws java.rmi.RemoteException {		super();	}	/**	 * makePurchase	 */	public boolean makePurchase(java.lang.String zipCode, java.lang.Long[] items) throws java.rmi.RemoteException {		EJSDeployedSupport _EJS_s = container.getEJSDeployedSupport(this);		boolean _EJS_result = false;		try {			com.xyz.ejb.SalesFacadeBean _EJS_beanRef = (com.xyz.ejb.SalesFacadeBean)container.preInvoke(this, 0, _EJS_s);			_EJS_result = _EJS_beanRef.makePurchase(zipCode, items);		}		catch (java.rmi.RemoteException ex) {			_EJS_s.setUncheckedException(ex);		}		catch (Throwable ex) {			_EJS_s.setUncheckedException(ex);			throw new java.rmi.RemoteException("bean method raised unchecked exception", ex);		}		finally {			try {				container.postInvoke(this, 0, _EJS_s);			} finally {				container.putEJSDeployedSupport(_EJS_s);			}		}		return _EJS_result;	}	/**	 * getAllItems	 */	public com.xyz.data.ItemVO[] getAllItems() throws java.rmi.RemoteException {		EJSDeployedSupport _EJS_s = container.getEJSDeployedSupport(this);		com.xyz.data.ItemVO[] _EJS_result = null;		try {			com.xyz.ejb.SalesFacadeBean _EJS_beanRef = (com.xyz.ejb.SalesFacadeBean)container.preInvoke(this, 1, _EJS_s);			_EJS_result = _EJS_beanRef.getAllItems();		}		catch (java.rmi.RemoteException ex) {			_EJS_s.setUncheckedException(ex);		}		catch (Throwable ex) {			_EJS_s.setUncheckedException(ex);			throw new java.rmi.RemoteException("bean method raised unchecked exception", ex);		}		finally {			try {				container.postInvoke(this, 1, _EJS_s);			} finally {				container.putEJSDeployedSupport(_EJS_s);			}		}		return _EJS_result;	}	/**	 * getLocation	 */	public com.xyz.data.LocationVO getLocation(java.lang.String zipCode) throws java.rmi.RemoteException {		EJSDeployedSupport _EJS_s = container.getEJSDeployedSupport(this);		com.xyz.data.LocationVO _EJS_result = null;		try {			com.xyz.ejb.SalesFacadeBean _EJS_beanRef = (com.xyz.ejb.SalesFacadeBean)container.preInvoke(this, 2, _EJS_s);			_EJS_result = _EJS_beanRef.getLocation(zipCode);		}		catch (java.rmi.RemoteException ex) {			_EJS_s.setUncheckedException(ex);		}		catch (Throwable ex) {			_EJS_s.setUncheckedException(ex);			throw new java.rmi.RemoteException("bean method raised unchecked exception", ex);		}		finally {			try {				container.postInvoke(this, 2, _EJS_s);			} finally {				container.putEJSDeployedSupport(_EJS_s);			}		}		return _EJS_result;	}	/**	 * echo	 */	public java.lang.String echo(java.lang.String s) throws java.rmi.RemoteException {		EJSDeployedSupport _EJS_s = container.getEJSDeployedSupport(this);		java.lang.String _EJS_result = null;		try {			com.xyz.ejb.SalesFacadeBean _EJS_beanRef = (com.xyz.ejb.SalesFacadeBean)container.preInvoke(this, 3, _EJS_s);			_EJS_result = _EJS_beanRef.echo(s);		}		catch (java.rmi.RemoteException ex) {			_EJS_s.setUncheckedException(ex);		}		catch (Throwable ex) {			_EJS_s.setUncheckedException(ex);			throw new java.rmi.RemoteException("bean method raised unchecked exception", ex);		}		finally {			try {				container.postInvoke(this, 3, _EJS_s);			} finally {				container.putEJSDeployedSupport(_EJS_s);			}		}		return _EJS_result;	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -