View Javadoc

    1   /***
    2    * JFoxSOAF, Service-Oriented Application Framework
    3    *
    4    * Copyright (C) www.huihoo.org
    5    *
    6    * Distributable under GNU LGPL
    7    *
    8    * For more information, please visit: http://www.huihoo.org/jfox/jfoxsoaf
    9    */
    10
    11  package org.huihoo.jfox.soaf.services.ejb;
    12
    13  import javax.ejb.EJBException;
    14
    15  /***
    16   * <p>
    17   * Invokes any EJB without knowing anything more than the EJB's JNDI lookup name.
    18   * </p>
    19   *
    20   * @author <a href="mailto:founder_chen@yahoo.com.cn">Peter Cheng </a>
    21   * @version $Revision: 1.2 $ $Date: 2004/11/22 15:20:32 $
    22   * @version Revision: 1.0
    23   */
    24
    25  public interface EJBProxyService {
    26
    27      /***
    28       * Retrieve remote EJB object.
    29       *
    30       * @param jndiName
    31       * @return Object
    32       * @throws EJBException
    33       */
    34      public Object getRemoteObject(String jndiName) throws EJBException;
    35
    36      /***
    37       * Retrieve local EJB object.
    38       *
    39       * @param jndiName
    40       * @return Object
    41       * @throws EJBException
    42       */
    43      public Object getLocalObject(String jndiName) throws EJBException;
    44
    45  }