Package com.opengamma.util.jms

Examples of com.opengamma.util.jms.JmsTopicContainer


  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


    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) {
View Full Code Here

   */
  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

   * @param server the server, not null
   */
  protected void publishJmsHeartbeat(ComponentRepository repo, StandardLiveDataServer server) {
    HeartbeatReceiver receiver = new HeartbeatReceiver(server.getExpirationManager());
    JmsByteArrayMessageDispatcher jmsDispatcher = new JmsByteArrayMessageDispatcher(receiver);
    JmsTopicContainer jmsContainer = getJmsConnector().getTopicContainerFactory().create(getJmsHeartbeatTopic(), jmsDispatcher);
    repo.registerLifecycle(jmsContainer);
  }
View Full Code Here

TOP

Related Classes of com.opengamma.util.jms.JmsTopicContainer

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.