Examples of IMarshalledValue


Examples of org.jboss.remoting.serialization.IMarshalledValue

            
   /** This method is for local calls when using pass-by-value*/
   protected Object invokeLocalMarshalled(Invocation invocation) throws Exception
   {

       IMarshalledValue value = createMarshalledValueForCallByValue(invocation.getArguments());
       MarshalledInvocation invocationCopy = createInvocationCopy(invocation, value);

      // copy the Tx
      Transaction tx = invocation.getTransaction();
      invocationCopy.setTransaction(tx);

      try
      {
         Object rtnValue = localInvoker.invoke(invocationCopy);
         IMarshalledValue mv = createMarshalledValueForCallByValue(rtnValue);
         return mv.get();
      }
      catch(Throwable t)
      {
         IMarshalledValue mv = SerializationStreamFactory.getManagerInstance().createdMarshalledValue(t);
         Throwable t2 = (Throwable) mv.get();
         if( t2 instanceof Exception )
            throw (Exception) t2;
         else
            throw new UndeclaredThrowableException(t2);
      }
View Full Code Here

Examples of org.jboss.remoting.serialization.IMarshalledValue

      // The map may contain serialized values of the fields
      if (value instanceof IMarshalledValue)
      {
         try
         {
            IMarshalledValue mv = (IMarshalledValue) value;
            value = mv.get();
         }
         catch (Exception e)
         {
            JBossLazyUnmarshallingException ise = new JBossLazyUnmarshallingException("getValue failed");
            ise.initCause(e);
View Full Code Here

Examples of org.jboss.remoting.serialization.IMarshalledValue

       else
       if (value instanceof IMarshalledValue)
       {
           try
           {
              IMarshalledValue mv = (IMarshalledValue) value;
              value = mv.get();
           }
           catch (Exception e)
           {
              JBossLazyUnmarshallingException ise = new JBossLazyUnmarshallingException("getPayloadValue failed");
              ise.initCause(e);
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.