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


      ChannelFactory jChannelFactory =
         new ClusteredPersistenceServiceConfigFileJChannelFactory(configFilePath,
                                                                  ignoreMultiplexer,
                                                                  sc.getMBeanServer());
     
      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);
     
      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);

     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 groupName = office.getGroupMember().getGroupName();
     
      assertEquals("MessagingPostOffice", groupName);

      ServerManagement.stop(0);
      System.setProperty("test.clustered", "false");
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,
                                                  failoverOnNodeLeave);
         }
         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,
                                                                  ignoreMultiplexer,
                                                                  sc.getMBeanServer());

      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);

      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);

     postOffice.start();

     return postOffice;
   }
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);
         }
         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);

      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);

      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.