Package flex.messaging.services

Examples of flex.messaging.services.RemotingService


      flex.messaging.io.TypeMarshallingContext.releaseThreadLocalObjects();
   }
  
  
   private RemotingService createRemotingService() {
            RemotingService remotingService = null;
          
      remotingService = new RemotingService();
      remotingService.setId("remoting-service");

      broker.addService(remotingService);
      log.info("Flex remotingservice not found- creating " + remotingService);
      return remotingService;
   }
View Full Code Here


         remotingService.registerAdapter(SeamAdapter.SEAM_ADAPTER_ID,SeamAdapter.class.getName());
      }
   }
  
   private Destination createDestination(String destinationName, String componentName) {          
      RemotingService remotingService = findRemotingService();
      if (remotingService==null) {
         remotingService = createRemotingService();
      }
     
      RemotingDestination destination =
         (RemotingDestination) remotingService.createDestination(destinationName);
     
      destination.setFactory(new FlexSeamFactory(destinationName, componentName));
           
      // configure adapter      
      registerSeamAdapter(remotingService);
View Full Code Here

{

    public void initialize(String id, ConfigMap properties)
    {
        //Create destination and add to the Service
        RemotingService service = (RemotingService) broker.getService("remoting-service");
        String dest = "RemotingDest_startup";
        createDestination(dest, service);
    }
View Full Code Here

        return remoteDest;
    }
   
    public void start()
    {
        RemotingService service = (RemotingService) broker.getService("remoting-service");
        String id = "RemotingDest_runtime";
        RemotingDestination destination = createDestination(id, service);
        destination.start();
       
    }
View Full Code Here

            dest_scope = scope;
        }

        String serviceId = "remoting-service";
               
        RemotingService service = (RemotingService)msgBroker.getService(serviceId);
        RemotingDestination destination = (RemotingDestination)service.createDestination(dest_id);
        destination.setSource(dest_src);
        destination.setScope(dest_scope);
        //destination.addChannel("my-http");
        destination.addChannel("qa-amf");
       
        if (service.isStarted())
            destination.start();
              
        return "Destination: "+ dest_id+ " source " + dest_src + " scope " + dest_scope + " created for Service: "+serviceId;  
    }
View Full Code Here

            Log.getLogger("QE.CODE_COVERAGE").debug("Destionation " + destination.getExtraProperty("extra-name") + " isCluster=" + destination.isClustered() " isBackendShared=" + destination.isBackendShared());
           
            destination.start();
           
            // add a runtime remote destination to run code coverage
            RemotingService rs = (RemotingService) broker.getService("remoting-service");
            String id = "RuntimeRemotingDest_JMS";
            RemotingDestination rsd = (RemotingDestination)rs.createDestination(id);
            rsd.setSource("runtimeconfig.components.RuntimeJMSDestination");
            rsd.start();
        }
    }
View Full Code Here

            MessageException me = new MessageException();
            me.setMessage(NO_MESSAGE_BROKER, new Object[] { serverId });
            throw me;
        }

        RemotingService rs = (RemotingService) broker.getServiceByType(REMOTING_SERVICE_CLASS);
        if (rs == null)
        {
            // MessageBroker with server id ''{0}'' does not contain a service with class flex.messaging.remoting.RemotingService
            MessageException me = new MessageException();
            me.setMessage(NO_REMOTING_SERVICE, new Object[] { serverId });
            throw me;
        }

        return (RemotingDestination) rs.getDestination(destinationName);
    }
View Full Code Here

     *
     * @param service
     */
    public void setService(Service service)
    {
        RemotingService remotingService = (RemotingService)service;
        super.setService(remotingService);
        setMethodMatcher(remotingService.getMethodMatcher());       
    }
View Full Code Here

            MessageException me = new MessageException();
            me.setMessage(NO_MESSAGE_BROKER, new Object[] { serverId });
            throw me;
        }

        RemotingService rs = (RemotingService) broker.getServiceByType(REMOTING_SERVICE_CLASS);
        if (rs == null)
        {
            // MessageBroker with server id ''{0}'' does not contain a service with class flex.messaging.remoting.RemotingService
            MessageException me = new MessageException();
            me.setMessage(NO_REMOTING_SERVICE, new Object[] { serverId });
            throw me;
        }

        return (RemotingDestination) rs.getDestination(destinationName);
    }
View Full Code Here

     *
     * @param service the <code>RemotingService</code> to associate with this destination.
     */
    public void setService(Service service)
    {
        RemotingService remotingService = (RemotingService)service;
        super.setService(remotingService);
        setMethodMatcher(remotingService.getMethodMatcher());       
    }
View Full Code Here

TOP

Related Classes of flex.messaging.services.RemotingService

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.