Examples of XMLDispatcherStateReadOnly


Examples of org.xooof.xmldispatcher.servers.XMLDispatcherStateReadOnly

  }

  private String pGetBusinessInstanceState(XMLDispatcherContext xdCtx, Object entity)
      throws RemoteException
  {
    XMLDispatcherStateReadOnly xdsr = null;
    try
    {
        // local XMLDispatcherState interface
        xdsr = (XMLDispatcherStateReadOnly)entity;
    }
    catch(ClassCastException e1)
    {
        XMLDispatcherStateReadOnlyRemote xdsrr = null;
        try
        {
            // remote XMLDispatcherState interface
            xdsrr = (XMLDispatcherStateReadOnlyRemote)entity;
        }
        catch(ClassCastException e2)
        {
            // no fsm
            return null;
        }
        // with fsm (remote interface)
        return xdsrr.getState(xdCtx);
    }
    // with fsm (local interface)
    return xdsr.getState(xdCtx);
  }
View Full Code Here

Examples of org.xooof.xmldispatcher.servers.XMLDispatcherStateReadOnly

  private String getBusinessInstanceState(XMLDispatcherRequest request)
  {
    XMLDispatcherContext xdCtx = request.getXdCtx();
    Object instance = xdCtx.getBusinessInstance(request.getClassName(),request.getInstanceId());
   
    XMLDispatcherStateReadOnly xdsr = null;
    try
    {
      // local XMLDispatcherState interface
      xdsr = (XMLDispatcherStateReadOnly)instance;
    }
    catch (ClassCastException e1)
    {
      XMLDispatcherStateReadOnlyRemote xdsrr = null;
      try
      {
        // remote XMLDispatcherState interface
        xdsrr = (XMLDispatcherStateReadOnlyRemote)instance;
      }
      catch (ClassCastException e2)
      {
        // no fsm
        return null;
      }
      // with fsm (remote interface)
      try
      {
        return xdsrr.getState(xdCtx);
      }
      catch(RemoteException e)
      {
        throw new XMLDispatcherRuntimeException(e);
      }
    }
    // with fsm (local interface)
    return xdsr.getState(xdCtx);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.