Package com.caucho.ejb.protocol

Examples of com.caucho.ejb.protocol.EjbProtocolManager


    String name = (String) args[0];

    while (name.startsWith("/"))
      name = name.substring(1);
   
    EjbProtocolManager container = _protocol.getProtocolManager();
   
    AbstractEjbBeanManager server;

    server = container.getServerByServerId(name);

    if (server == null)
      server = container.getServerByEJBName(name);

    if (server != null) {
      /*
      EJBHome home = server.getEJBHome();
     
      out.startReply();

      if (home != null)
        out.writeObject(home);
      else // if (server instanceof
        out.writeObject(server.getRemoteObject(server.getRemoteHomeClass(), "hessian"));

      out.completeReply();
      */
      throw new UnsupportedOperationException(getClass().getName());
    }
    else if (container.getRemoteChildren(name) != null) {
      out.startReply();

      String serverId;

      if (_prefix.endsWith("/") || name.startsWith("/"))
View Full Code Here


  private void executeList(Object []args,
                           Hessian2Input in,
                           Hessian2Output out)
    throws Throwable
  {
    EjbProtocolManager container = _protocol.getProtocolManager();
   
    AbstractEjbBeanManager server = container.getServerByEJBName(_prefix);

    ArrayList children;

    if (server != null) {
      throw new UnsupportedOperationException(getClass().getName());
      /*
      EJBHome home = server.getEJBHome();
     
      out.startReply();
     
      out.writeNull();

      out.completeReply();
      */
    }
    else if ((children = container.getRemoteChildren(_prefix)) != null) {
      out.startReply();
     
      out.writeObject(children.toArray(new String[children.size()]));
     
      out.completeReply();
View Full Code Here

    if (_parentContainer != null)
      copyContainerDefaults(_parentContainer);

    // _ejbAdmin = new EJBAdmin(this);

    _protocolManager = new EjbProtocolManager(this);

    _configManager = new EjbConfigManager(this);

    // _workDir = WorkDir.getLocalWorkDir().lookup("ejb");
   
View Full Code Here

    if (_parentContainer != null)
      copyContainerDefaults(_parentContainer);

    // _ejbAdmin = new EJBAdmin(this);

    _protocolManager = new EjbProtocolManager(this);

    _configManager = new EjbConfigManager(this);

    _workDir = WorkDir.getLocalWorkDir().lookup("ejb");
View Full Code Here

    String name = (String) args[0];

    while (name.startsWith("/"))
      name = name.substring(1);
   
    EjbProtocolManager container = _protocol.getProtocolManager();
   
    AbstractServer server;

    server = container.getServerByServerId(name);

    if (server == null)
      server = container.getServerByEJBName(name);

    if (server != null) {
      /*
      EJBHome home = server.getEJBHome();
     
      out.startReply();

      if (home != null)
  out.writeObject(home);
      else // if (server instanceof
  out.writeObject(server.getRemoteObject(server.getRemoteHomeClass(), "hessian"));

      out.completeReply();
      */
      throw new UnsupportedOperationException(getClass().getName());
    }
    else if (container.getRemoteChildren(name) != null) {
      out.startReply();

      String serverId;

      if (_prefix.endsWith("/") || name.startsWith("/"))
View Full Code Here

  private void executeList(Object []args,
         Hessian2Input in,
         Hessian2Output out)
    throws Throwable
  {
    EjbProtocolManager container = _protocol.getProtocolManager();
   
    AbstractServer server = container.getServerByEJBName(_prefix);

    ArrayList children;

    if (server != null) {
      throw new UnsupportedOperationException(getClass().getName());
      /*
      EJBHome home = server.getEJBHome();
     
      out.startReply();
     
      out.writeNull();

      out.completeReply();
      */
    }
    else if ((children = container.getRemoteChildren(_prefix)) != null) {
      out.startReply();
     
      out.writeObject(children.toArray(new String[children.size()]));
     
      out.completeReply();
View Full Code Here

TOP

Related Classes of com.caucho.ejb.protocol.EjbProtocolManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.