Package org.jboss.messaging.core.impl.postoffice

Examples of org.jboss.messaging.core.impl.postoffice.MessagingPostOffice


           // http://jira.jboss.org/jira/browse/JBMESSAGING-1244
           // if the channelPartitionName is set, we use it to identify the control and
           // data channels. Otherwise, we fall back to use groupName
           String channelName = (channelPartitionName == null)? channelPartitionName : groupName;
          
           postOffice =  new MessagingPostOffice(ds, tm, sqlProperties,
                                                 createTablesOnStartup,
                                                 nodeId, officeName, ms,
                                                 pm,
                                                 tr, ff, cf, idManager,
                                                 clusterNotifier,
                                                 channelName,
                                                 jChannelFactory,
                                                 stateTimeout, castTimeout,
                                                  serverPeer.isSupportsFailover(),
                                                  maxConcurrentReplications,
                                                  failoverOnNodeLeave);
         }
         else
         {
           postOffice =  new MessagingPostOffice(ds, tm, sqlProperties,
                                       createTablesOnStartup,
                                       nodeId, officeName, ms,
                                       pm,
                                       tr, ff, cf, idManager,
                                       clusterNotifier);
View Full Code Here


            {
               log.debug(this + " uses XMLJChannelFactory");
               jChannelFactory = new XMLChannelFactory(controlChannelConfig, dataChannelConfig);
            }
          
           postOffice =  new MessagingPostOffice(ds, tm, sqlProperties,
                                                 createTablesOnStartup,
                                                 nodeId, officeName, ms,
                                                 pm,
                                                 tr, ff, cf, idManager,
                                                 clusterNotifier,
                                                 groupName,
                                                 jChannelFactory,
                                                 stateTimeout, castTimeout,
                                                  serverPeer.isSupportsFailover(),
                                                  maxConcurrentReplications);
         }
         else
         {
           postOffice =  new MessagingPostOffice(ds, tm, sqlProperties,
                                       createTablesOnStartup,
                                       nodeId, officeName, ms,
                                       pm,
                                       tr, ff, cf, idManager,
                                       clusterNotifier);
View Full Code Here

      //starat post office
      ObjectName poName = new ObjectName(postOffice);
      startService(poName);
     
      //wait for jgroups back
      MessagingPostOffice pm = (MessagingPostOffice)JMXAccessor.getJMXAttributeOverSecurity(server, poName, "Instance");
      while (!pm.waitForJGroups())
      {
         log.info("Failed to start post office due to JGroups failure, retrying...");
         this.stopService(poName);
         makeSureDelay();
         this.startService(poName);
View Full Code Here

           // http://jira.jboss.org/jira/browse/JBMESSAGING-1244
           // if the channelPartitionName is set, we use it to identify the control and
           // data channels. Otherwise, we fall back to use groupName
           String channelName = (channelPartitionName != null)? channelPartitionName : groupName;
          
           postOffice =  new MessagingPostOffice(ds, tm, sqlProperties,
                                                 createTablesOnStartup,
                                                 nodeId, officeName, ms,
                                                 pm,
                                                 tr, ff, cf, idManager,
                                                 clusterNotifier,
                                                 channelName,
                                                 jChannelFactory,
                                                 stateTimeout, castTimeout,
                                                  serverPeer.isSupportsFailover(),
                                                  maxConcurrentReplications,
                                                  failoverOnNodeLeave,
                                                  maxRetry,
                                                  retryInterval,
                                                  retryOnConnectionFailure,
                                                  keepOldFailoverModel,
                                                  nodeStateRefreshInterval);
         }
         else
         {
           postOffice =  new MessagingPostOffice(ds, tm, sqlProperties,
                                       createTablesOnStartup,
                                       nodeId, officeName, ms,
                                       pm,
                                       tr, ff, cf, idManager,
                                       clusterNotifier,
View Full Code Here


      ChannelFactory jChannelFactory =
         new ClusteredPersistenceServiceConfigFileJChannelFactory(configFilePath, sc.getMBeanServer(), nodeID);

      MessagingPostOffice postOffice =
         new MessagingPostOffice(sc.getDataSource(), sc.getTransactionManager(),
                                 sc.getPostOfficeSQLProperties(), true, nodeID,
                                 "Clustered", ms, pm, tr, ff, cf, idm, cn,
                                 groupName, jChannelFactory,
                                 stateTimeout, castTimeout, true, 100, false, 25, 1000, false, true, 30000);

      postOffice.start();

      return postOffice;
   }
View Full Code Here

      //starat post office
      ObjectName poName = new ObjectName(postOffice);
      startService(poName);
     
      //wait for jgroups back
      MessagingPostOffice pm = (MessagingPostOffice)JMXAccessor.getJMXAttributeOverSecurity(server, poName, "Instance");
      while (!pm.waitForJGroups())
      {
         log.info("Failed to start post office due to JGroups failure, retrying...");
         this.stopService(poName);
         makeSureDelay();
         this.startService(poName);
View Full Code Here

      FilterFactory ff = new SimpleFilterFactory();
      ConditionFactory cf = new SimpleConditionFactory();
      IDManager idm = new IDManager("channel_id", 10, pm);
      ClusterNotifier cn = new DefaultClusterNotifier();

      MessagingPostOffice postOffice =
         new MessagingPostOffice(sc.getDataSource(), sc.getTransactionManager(),
                                 sc.getPostOfficeSQLProperties(),
                                 true, 1, "NonClustered", ms, pm, tr, ff, cf, idm, cn, 25, 1000, false);

      postOffice.start();

      return postOffice;
   }
View Full Code Here

      ServerManagement.stop();
      System.setProperty("test.clustered", "true");
      ServerManagement.start(0, "all");
     
      ObjectName poName = ServerManagement.getServer(0).getPostOfficeObjectName();
      MessagingPostOffice office = (MessagingPostOffice)ServerManagement.getAttribute(poName, "Instance");
     
      String partitionName = (String)ServerManagement.getAttribute(poName, "ChannelPartitionName");
     
      String groupName = office.getGroupMember().getGroupName();
     
      //if the channelPartitionName is defined, the group name should be set with it.
      if (partitionName != null)
      {
         assertEquals(partitionName, groupName);
View Full Code Here


      ChannelFactory jChannelFactory =
         new ClusteredPersistenceServiceConfigFileJChannelFactory(configFilePath, sc.getMBeanServer(), nodeID);

      MessagingPostOffice postOffice =
         new MessagingPostOffice(sc.getDataSource(), sc.getTransactionManager(),
                                 sc.getPostOfficeSQLProperties(), true, nodeID,
                                 "Clustered", ms, pm, tr, ff, cf, idm, cn,
                                 groupName, jChannelFactory,
                                 stateTimeout, castTimeout, true, 100, false, 25, 1000, false, true, 30000);

      postOffice.start();

      return postOffice;
   }
View Full Code Here

      FilterFactory ff = new SimpleFilterFactory();
      ConditionFactory cf = new SimpleConditionFactory();
      IDManager idm = new IDManager("channel_id", 10, pm);
      ClusterNotifier cn = new DefaultClusterNotifier();

      MessagingPostOffice postOffice =
         new MessagingPostOffice(sc.getDataSource(), sc.getTransactionManager(),
                                 sc.getPostOfficeSQLProperties(),
                                 true, 1, "NonClustered", ms, pm, tr, ff, cf, idm, cn, 25, 1000, false);

      postOffice.start();

      return postOffice;
   }
View Full Code Here

TOP

Related Classes of org.jboss.messaging.core.impl.postoffice.MessagingPostOffice

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.