Package flex.messaging.services.remoting

Examples of flex.messaging.services.remoting.RemotingDestination


         </destination>
    */

    private RemotingDestination createDestination(String id, RemotingService messageService)
    {
        RemotingDestination remoteDest = (RemotingDestination)messageService.createDestination(id);
        remoteDest.setSource("dev.weather.WeatherService");
       
        return remoteDest;
    }
View Full Code Here


   
    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

        }

        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

    </destination>
     */
    private void createDestination1(Service service)
    {
        String destinationId = "sample";
        RemotingDestination destination = (RemotingDestination)service.createDestination(destinationId);
        destination.setSource("my.company.SampleService");
    }
View Full Code Here

    </destination>
     */
    private void createDestination2(Service service)
    {
        String destinationId = "sampleByFactoryAndSecure";
        RemotingDestination destination = (RemotingDestination)service.createDestination(destinationId);
        destination.setSecurityConstraint("sample-users");
        destination.setFactory("myJavaFactory");
        destination.setSource("my.company.SampleService");
        destination.setScope("session");
    }
View Full Code Here

    </destination>
     */
    private void createDestination3(Service service)
    {
        String destinationId = "sampleVerbose";
        RemotingDestination destination = (RemotingDestination)service.createDestination(destinationId);
        destination.addChannel("my-secure-amf");
        destination.addChannel("my-secure-http");
       
        String adapterId = "java-object";
        destination.createAdapter(adapterId);
       
        destination.setSecurityConstraint("sample-users");
        destination.setSource("my.company.SampleService");
        destination.setScope("session");
        destination.setFactory("myJavaFactory");
    }
View Full Code Here

            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

     * This method is called by FDS when FDS has been initialized but not started.
     */   
    public void initialize(String id, ConfigMap properties)
    {
        remotingService = (RemotingService) getMessageBroker().getService("remoting-service");
        RemotingDestination destination = (RemotingDestination) remotingService.createDestination(id);
        destination.setSource("flex.samples.crm.employee.EmployeeDAO");
    }
View Full Code Here

        if (methodsToExclude != null)
        {
            // Warn that <exclude-properties> will be ignored.
            if (includeMethods != null)
            {
                RemotingDestination dest = (RemotingDestination)getDestination();
                if (Log.isWarn())
                    Log.getLogger(LogCategories.CONFIGURATION).warn("The remoting destination '" + dest.getId() + "' contains both <include-methods/> and <exclude-methods/> configuration. The <exclude-methods/> block will be ignored.");
            }
            // Excludes must be processed regardless of whether we add them or not to avoid 'Unused tags in <properties>' exceptions.
            List methods = methodsToExclude.getPropertyAsList(METHOD_ELEMENT, null);
            if ((methods != null) && !methods.isEmpty())
            {
                int n = methods.size();
                for (int i = 0; i < n; i++)
                {
                    ConfigMap methodSettings = (ConfigMap)methods.get(i);
                    String name = methodSettings.getPropertyAsString(NAME_ELEMENT, null);
                    RemotingMethod method = new RemotingMethod();
                    method.setName(name);
                    // Check for security constraint.
                    String constraintRef = methodSettings.getPropertyAsString(ConfigurationConstants.SECURITY_CONSTRAINT_ELEMENT, null);
                    // Conditionally add, only if include methods are not defined.
                    if (includeMethods == null)
                    {
                        if (constraintRef != null)
                        {
                            RemotingDestination dest = (RemotingDestination)getDestination();
                            if (Log.isWarn())
                                Log.getLogger(LogCategories.CONFIGURATION).warn("The method '" + name + "' for remoting destination '" + dest.getId() + "' is configured to use a security constraint, but security constraints are not applicable for excluded methods.");
                        }
                        addExcludeMethod(method);
                    }
                }
            }
View Full Code Here

            return;
        }
        super.start();
        validateInstanceSettings();

        RemotingDestination remotingDestination = (RemotingDestination) getDestination();
        if (FlexFactory.SCOPE_APPLICATION.equals(remotingDestination.getScope()))
        {
            FactoryInstance factoryInstance = remotingDestination.getFactoryInstance();
            createInstance(factoryInstance.getInstanceClass());
        }
    }
View Full Code Here

TOP

Related Classes of flex.messaging.services.remoting.RemotingDestination

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.