Package com.opengamma.transport.jms

Examples of com.opengamma.transport.jms.JmsByteArrayRequestDispatcher


  }

  private void initReferenceData(ComponentRepository repo) {
    ReferenceDataProviderRequestReceiver receiver = new ReferenceDataProviderRequestReceiver(getReferenceDataProvider());
    FudgeRequestDispatcher dispatcher = new FudgeRequestDispatcher(receiver);
    JmsByteArrayRequestDispatcher jmsDispatcher = new JmsByteArrayRequestDispatcher(dispatcher);
    JmsTopicContainer jmsContainer = getJmsConnector().getTopicContainerFactory().create(getJmsReferenceDataTopic(), jmsDispatcher);
    repo.registerLifecycle(jmsContainer);
  }
View Full Code Here


    FudgeRequestDispatcher dispatcher = new FudgeRequestDispatcher(receiver);

    String topicName = getJmsSubscriptionTopic();

    if (topicName != null) {
      JmsByteArrayRequestDispatcher topicDispatcher = new JmsByteArrayRequestDispatcher(dispatcher);
      JmsTopicContainer topicContainer = getJmsConnector().getTopicContainerFactory().create(topicName, topicDispatcher);
      repo.registerLifecycle(topicContainer);
    }

    String queueName = getJmsSubscriptionQueue();
    if (queueName != null) {
      JmsByteArrayRequestDispatcher queueDispatcher = new JmsByteArrayRequestDispatcher(dispatcher);
      JmsQueueContainer queueContainer = getJmsConnector().getQueueContainerFactory().create(queueName,
                                                                                             queueDispatcher,
                                                                                             getJmsSubscriptionQueueConcurrentConsumers(),
                                                                                             getJmsSubscriptionQueueMaxConcurrentConsumers());
      repo.registerLifecycle(queueContainer);
View Full Code Here

   * @param server the server, not null
   */
  protected void publishJmsEntitlement(ComponentRepository repo, StandardLiveDataServer server) {
    EntitlementServer entitlementServer = new EntitlementServer(server.getEntitlementChecker());
    FudgeRequestDispatcher dispatcher = new FudgeRequestDispatcher(entitlementServer);
    JmsByteArrayRequestDispatcher jmsDispatcher = new JmsByteArrayRequestDispatcher(dispatcher);
    JmsTopicContainer jmsContainer = getJmsConnector().getTopicContainerFactory().create(getJmsEntitlementTopic(), jmsDispatcher);
    repo.registerLifecycle(jmsContainer);
  }
View Full Code Here

TOP

Related Classes of com.opengamma.transport.jms.JmsByteArrayRequestDispatcher

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.