Package java.rmi

Examples of java.rmi.MarshalledObject$MarshalledObjectOutputStream


          "ProxyAccessor.getProxy returned null");
        }
    } else {
        proxy = impl;
    }
    this.mobj = new MarshalledObject(proxy);
      } catch (IOException e) {
    throw new ActivationException(
        "failed to marshal remote object", e);
      }
  }
View Full Code Here


        {
            className = object.getClass().getName();

            try
            {
                object = new MarshalledObject( object );
            }
            catch( final IOException ioe )
            {
                throw new NamingException( "Only Reference, Referenceables and " +
                                           "Serializable objects can be bound " +
View Full Code Here

            final BufferedInputStream buffered =
                new BufferedInputStream( socket.getInputStream() );
            final ObjectInputStream input = new ObjectInputStream( buffered );

            final MarshalledObject object =
                (MarshalledObject)input.readObject();
            final NamingProvider provider =(NamingProvider)object.get();

            socket.close();
            socket = null;

            return provider;
View Full Code Here

        {
            // Export server
            debug( "Exporting RMI object." );
            final Remote remote =
                UnicastRemoteObject.exportObject( m_server );
            m_serverStub = new MarshalledObject( remote );
        }
        catch( final IOException ioe )
        {
            debug( "Failed exporting object" );
            ioe.printStackTrace();
View Full Code Here

    sTmpl[i][j] = new ServiceTemplate(null,sClassType,
              tmplAttrs[j]);
    proxy.notify(tmpl[i][j],
           transitionMask,
           listener,
           new MarshalledObject
         (new QATestUtils.SrvcAttrTuple
             (srvcItems[nSrvcsPerClass*i].service,
              tmplAttrs[j][0])),
           Long.MAX_VALUE);
      }
View Full Code Here

  evntRegs = new EventRegistration[srvcRegs.length];
        for (i=0;i<srvcRegs.length;i++) {
            curSrvcID = srvcRegs[i].getServiceID();
      evntRegs[i] =
    proxy.notify(srvcIDTmpl[i],regTransitions,listener,
           new MarshalledObject(curSrvcID),
           Long.MAX_VALUE);
      evntRegs[i] = prepareEventRegistration(evntRegs[i]);
  }
    }
View Full Code Here

           throws InstanceNotFoundException, IOException
   {
      NotificationTuple tuple = new NotificationTuple(observed, listener, filter, handback);
      if (notificationHandler.contains(tuple)) return;

      MarshalledObject f = null;
      try
      {
         f = RMIMarshaller.marshal(filter);
      }
      catch (NotSerializableException x)
View Full Code Here

   }

   public void addNotificationListener(ObjectName observed, ObjectName listener, NotificationFilter filter, Object handback)
           throws InstanceNotFoundException, IOException
   {
      MarshalledObject f = RMIMarshaller.marshal(filter);
      MarshalledObject h = RMIMarshaller.marshal(handback);
      connection.addNotificationListener(observed, listener, f, h, delegate);
   }
View Full Code Here

   }

   public void removeNotificationListener(ObjectName observed, ObjectName listener, NotificationFilter filter, Object handback)
           throws InstanceNotFoundException, ListenerNotFoundException, IOException
   {
      MarshalledObject f = RMIMarshaller.marshal(filter);
      MarshalledObject h = RMIMarshaller.marshal(handback);
      connection.removeNotificationListener(observed, listener, f, h, delegate);
   }
View Full Code Here

   }

   public ObjectInstance createMBean(String className, ObjectName objectName, Object[] args, String[] parameters)
           throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, IOException
   {
      MarshalledObject arguments = RMIMarshaller.marshal(args);
      return connection.createMBean(className, objectName, arguments, parameters, delegate);
   }
View Full Code Here

TOP

Related Classes of java.rmi.MarshalledObject$MarshalledObjectOutputStream

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.