Examples of MessageService


Examples of flex.messaging.services.MessageService

    public String createMessageDestinationWithJMSAdapter()
    {
        String serviceId = "message-service";
        String id = "messaging_AMF_Poll_JMS_Topic_Runtime";

        MessageService msgService = (MessageService)msgBroker.getService(serviceId);
        MessageDestination msgDestination = (MessageDestination)msgService.createDestination(id);
        msgDestination.addChannel("my-amf-poll");

        // Use JMSSettings object for the <jms> properties above
        JMSSettings js = new JMSSettings();
        js.setConnectionFactory("java:comp/env/jms/flex/TopicConnectionFactory");
        js.setDestinationType("Topic");       
        js.setMessageType("javax.jms.TextMessage");       
        js.setDestinationJNDIName("java:comp/env/jms/topic/flex/simpletopic");

        JMSAdapter adapter = new JMSAdapter();
        adapter.setId("jms");
        adapter.setJMSSettings(js);
        adapter.setDestination(msgDestination);

        if (msgService.isStarted())
            msgDestination.start();

        return "Destination: " + id + " created for Service: " + serviceId;
    }
View Full Code Here

Examples of flex.messaging.services.MessageService

   
    public void initialize(String id, ConfigMap properties)
    {
        if (broker != null)
        {
            MessageService service = (MessageService) broker.getService("message-service");       
            createDestination(dest_startup, service);
        }
    }
View Full Code Here

Examples of flex.messaging.services.MessageService

   
    public void start()
    {       
        if(broker != null)
        {
            MessageService service = (MessageService) broker.getService("message-service");
           
            MessageDestination destination = createDestination(dest_runtime, service);
                      
            // code coverage
            destination.addChannel("qa-polling-amf");       
View Full Code Here

Examples of flex.messaging.services.MessageService

    public void runCodeCoverage()
    {       
        Destination d = new Destination();
       
        MessageBroker mb = MessageBroker.getMessageBroker(null);
        MessageService service = (MessageService) mb.getService("message-service");
        MessageDestination destination = (MessageDestination)service.getDestination(dest_runtime);
       
        Log.getLogger("QE.CODE_COVERAGE").debug("Destination " + dest_runtime + " isCluster=" + destination.isClustered() +" isBackendShared=" + destination.isBackendShared());
       
        destination.removeChannel("qa-polling-amf");
        destination.addChannel("non-existing-channel");
View Full Code Here

Examples of flex.messaging.services.MessageService

    }
   
    // Create a new Message destination dynamically
    String serviceId = "message-service";
    MessageBroker broker = MessageBroker.getMessageBroker(null);
    MessageService service = (MessageService) broker.getService(serviceId);
    MessageDestination destination = (MessageDestination) service.createDestination(id);

    if (service.isStarted())
    {
      destination.start();
    }

    rooms.add(id);
View Full Code Here

Examples of flex.messaging.services.MessageService

    /**
     * Handle a data message intended for this adapter.
     */
    public Object invoke(Message message)
    {
        MessageService msgService = (MessageService)getDestination().getService();
        msgService.pushMessageToClients(message, true);
        msgService.sendPushMessageFromPeer(message, true);
        return null;
    }
View Full Code Here

Examples of flex.messaging.services.MessageService

     *
     * @param service The <code>Service</code> managing this <code>Destination</code>.
     */
    public void setService(Service service)
    {
        MessageService messageService = (MessageService)service;
        super.setService(messageService);
    }
View Full Code Here

Examples of interfaces.MessageService

  public static void main(String[] args) {
    InteractiveTestRunner.run(MessageIntegrationTest.class);
  }

  public void testIntegration() {
    MessageService service = Impala.getBean("messageService", MessageService.class);
    System.out.println(service.getMessage());
  }
View Full Code Here

Examples of interfaces.MessageService

  public static void main(String[] args) {
    InteractiveTestRunner.run(ProjectMessageIntegrationTest.class);
  }

  public void testIntegration() {
    MessageService service = Impala.getModuleBean("@module.project.name@", "messageService", MessageService.class);
    System.out.println(service.getMessage());
  }
View Full Code Here

Examples of interfaces.MessageService

  public static void main(String[] args) {
    InteractiveTestRunner.run(ProjectMessageIntegrationTest.class);
  }

  public void testIntegration() {
    MessageService service = Impala.getModuleBean("@module.project.name@", "messageService", MessageService.class);
    System.out.println(service.getMessage());
  }
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.