HolidayCalendar_gmxjhs_ELOImpl.java
资源名称:某公司的java培训教材 [点击查看]
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:3k
源码类别:
Java编程
开发平台:
Java
- /**
- * This code was automatically generated at 11:58:59 on 2003-9-2
- * by weblogic.ejb20.ejbc.Ejb2Rmi -- do not edit.
- *
- * @version WebLogic Server 8.1 Fri Jun 20 23:06:40 PDT 2003 271009
- * @author Copyright (c) 2003 by BEA Systems, Inc. All Rights Reserved.
- */
- package com.cwj.meetings;
- import weblogic.ejb20.interfaces.WLEnterpriseBean;
- public final class HolidayCalendar_gmxjhs_ELOImpl
- extends weblogic.ejb20.internal.StatelessEJBLocalObject
- implements com.cwj.meetings.HolidayCalendarLocal, weblogic.utils.PlatformConstants, java.io.Serializable
- {
- public HolidayCalendar_gmxjhs_ELOImpl() {}
- public boolean isCompanyHoliday(java.util.Date arg0)
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((HolidayCalendar_gmxjhs_LocalHomeImpl)getEJBLocalHome()).md_eo_isCompanyHoliday_java_util_Date;
- try {
- __wrap = super.preInvoke(
- __md, weblogic.ejb20.internal.DummyContextHandler.THE_ONE);
- } catch (weblogic.ejb20.internal.NeedRealContextHandlerError e) {
- __wrap = super.preInvoke(
- __md, new weblogic.ejb20.internal.EJBContextHandler(
- __md, new Object [] { arg0}));
- }
- HolidayCalendar_gmxjhs_Intf __bean = (HolidayCalendar_gmxjhs_Intf) __wrap.getBean();
- boolean result = false;
- int __oldState = __bean.__WL_getMethodState();
- try {
- __bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
- result = __bean.isCompanyHoliday(
- arg0);
- } catch (java.lang.Throwable t) {
- __ee = t;
- }
- finally {
- __bean.__WL_setMethodState(__oldState);
- }
- try {
- super.postInvoke(__wrap, __ee);
- } catch (java.lang.Exception e) {
- if (e instanceof javax.ejb.EJBException) {
- throw (javax.ejb.EJBException) e;
- }
- else {
- throw new javax.ejb.EJBException("Unexpected exception in " +
- "com.cwj.meetings.HolidayCalendarBean.isCompanyHoliday():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- return result;
- }
- public void remove()
- throws javax.ejb.RemoveException
- {
- super.remove(((HolidayCalendar_gmxjhs_LocalHomeImpl)getEJBLocalHome()).md_eo_remove);
- }
- private void writeObject(java.io.ObjectOutputStream out)
- throws java.io.IOException
- {
- throw new javax.ejb.EJBException(
- "Attempt to pass a reference to an EJBLocalObject to a remote " +
- "client. A local EJB component may only be accessed by clients " +
- "co-located in the same ear or standalone jar file.");
- }
- private void readObject(java.io.ObjectInputStream in)
- throws java.io.IOException, java.lang.ClassNotFoundException
- {
- // this method is never called
- throw new javax.ejb.EJBException(
- "Attempt to pass a reference to an EJBLocalObject to a remote " +
- "client. A local EJB component may only be accessed by clients " +
- "co-located in the same ear or standalone jar file.");
- }
- }