Buggy code:
settings . setAddressFullMessagePolicy ( addressSpec . getAddressFullMessagePolicy ( ) ) ; settings . setDeadLetterAddress ( addressSpec . getDeadLetterAddress ( ) ) ; settings . setExpiryAddress ( addressSpec . getExpiryAddress ( ) ) ; if ( ( addressSpec . isLastValueQueue ( ) ) != null ) { settings . setLastValueQueue ( addressSpec . isLastValueQueue ( ) ) ; } if ( ( addressSpec . getMaxDeliveryAttempts ( ) ) != null ) { settings . setMaxDeliveryAttempts ( addressSpec . getMaxDeliveryAttempts ( ) ) ; } if ( ( addressSpec . getMaxSizeBytes ( ) ) != null ) { settings . setMaxSizeBytes ( addressSpec . getMaxSizeBytes ( ) ) ; } if ( ( addressSpec . getMessageCounterHistoryDayLimit ( ) ) != null ) { settings . setMessageCounterHistoryDayLimit ( addressSpec . getMessageCounterHistoryDayLimit ( ) ) ; } if ( ( addressSpec . getPageSizeBytes ( ) ) != null ) { settings . setPageSizeBytes ( addressSpec . getPageSizeBytes ( ) ) ; } if ( ( addressSpec . getRedeliveryDelay ( ) ) != null ) { settings . setRedeliveryDelay ( addressSpec . getRedeliveryDelay ( ) ) ; } if ( ( addressSpec . getRedistributionDelay ( ) ) != null ) { settings . setRedistributionDelay ( addressSpec . getRedistributionDelay ( ) ) ; } if ( ( addressSpec . isSendToDLAOnNoRoute ( ) ) != null ) { settings . setSendToDLAOnNoRoute ( addressSpec . isSendToDLAOnNoRoute ( ) ) ; } configAddressSettings . put ( addressSpec . getMatch ( ) , settings ) ; } final Map < String , Set < Role > > hqSecurityRoles = hqConfig . getSecurityRoles ( ) ; for ( SecuritySettingsElement securitySetting : securitySettings ) { hqSecurityRoles . put ( securitySetting . getMatch ( ) , securitySetting . getRoles ( ) ) ; } for ( final QueueElement queue : queues ) { hqConfig . getQueueConfigurations ( ) . add ( new org . hornetq . core . config . CoreQueueConfiguration ( queue . getAddress ( ) , queue . getName ( ) , queue . getFilter ( ) , queue . isDurable ( ) ) ) ; } hqservice . setConfiguration ( hqConfig ) ; final BatchBuilder batchBuilder = updateContext . getBatchBuilder ( ) ; final BatchServiceBuilder < HornetQServer > serviceBuilder = batchBuilder . addService ( JBOSS_MESSAGING , hqservice ) . addOptionalDependency ( JBOSS . append ( "mbean" , "server" ) , MBeanServer . class , hqservice . getMBeanServer ( ) ) ; JMSService . addService ( batchBuilder ) ; MessagingSubsystemAdd . createRelativePathService ( "bindings" , bindingsDirectory , batchBuilder ) ; MessagingSubsystemAdd . addPathDependency ( "bindings" , hqservice , serviceBuilder ) ; MessagingSubsystemAdd . createRelativePathService ( "journal" , journalDirectory , batchBuilder ) ; MessagingSubsystemAdd . addPathDependency ( "journal" , hqservice , serviceBuilder ) ; MessagingSubsystemAdd . createRelativePathService ( "largemessages" , largeMessagesDirectory , batchBuilder ) ; MessagingSubsystemAdd . addPathDependency ( "largemessages" , hqservice , serviceBuilder ) ; MessagingSubsystemAdd . createRelativePathService ( "paging" , pagingDirectory , batchBuilder ) ; MessagingSubsystemAdd . addPathDependency ( "paging" , hqservice , serviceBuilder ) ; final Map < String , TransportConfiguration > connectors = hqConfig . getConnectorConfigurations ( ) ; for ( AbstractTransportElement < ? > connectorSpec : this . connectors ) { final TransportConfiguration transport = new TransportConfiguration ( connectorSpec . getFactoryClassName ( ) , new HashMap < String , Object > ( ) , connectorSpec . getName ( ) ) ; connectorSpec . processHQConfig ( transport ) ; connectors . put ( connectorSpec . getName ( ) , transport ) ; final String socketRef = connectorSpec . getSocketBindingRef ( ) ; if ( socketRef != null ) { final ServiceName socketName = JBOSS_BINDING_NAME . append ( socketRef ) ; serviceBuilder . addDependency ( socketName , SocketBinding . class , hqservice . getSocketBindingInjector ( socketRef ) ) ; } } final Collection < TransportConfiguration > acceptors = hqConfig . getAcceptorConfigurations ( ) ; for ( AbstractTransportElement < ? > acceptorSpec : this . acceptors ) { final TransportConfiguration transport = new TransportConfiguration ( acceptorSpec . getFactoryClassName ( ) , new HashMap < String , Object > ( ) , acceptorSpec . getName ( ) ) ; acceptorSpec . processHQConfig ( transport ) ; acceptors . add ( transport ) ; final String socketRef = acceptorSpec . getSocketBindingRef ( ) ; if ( socketRef != null ) { final ServiceName socketName = JBOSS_BINDING_NAME . append ( socketRef ) ; serviceBuilder . addDependency ( socketName , SocketBinding . class , hqservice . getSocketBindingInjector ( socketRef ) ) ; } } <START_BUG> serviceBuilder . setInitialMode ( IMMEDIATE ) ; <END_BUG> } @ Override protected MessagingSubsystemElement createSubsystemElement ( ) { } public DirectoryElement getBindingsDirectory ( ) { } public void setBindingsDirectory ( DirectoryElement bindingsDirectory ) { } public DirectoryElement getJournalDirectory ( ) { } public void setJournalDirectory ( DirectoryElement journalDirectory ) { } public DirectoryElement getLargeMessagesDirectory ( ) { } public void setLargeMessagesDirectory ( DirectoryElement largeMessagesDirectory ) { } public DirectoryElement getPagingDirectory ( ) { } public void setPagingDirectory ( DirectoryElement pagingDirectory ) { } public Boolean isClustered ( ) { } public void setClustered ( boolean clustered ) { } public Integer getJournalMinFiles ( ) { } public void setJournalMinFiles ( int journalMinFiles ) { } public Integer getJournalFileSize ( ) { } public void setJournalFileSize ( int journalFileSize ) { } public JournalType getJournalType ( ) { } public void setJournalType ( JournalType journalType ) { } public void setPersistenceEnabled ( Boolean enabled ) { } void addAcceptor ( final AbstractTransportElement < ? > transportSpecification ) { } void addConnector ( final AbstractTransportElement < ? > transportSpecification ) { } void addAddressSettings ( final AddressSettingsElement addressSettingsSpecification ) { } void addSecuritySettings ( final SecuritySettingsElement securitySettingsSpecification ) { } void addQueue ( final QueueElement queue ) { } static void addPathDependency ( String name , HornetQService hqService , BatchServiceBuilder < ? > serviceBuilder ) { } static void createRelativePathService ( String name , DirectoryElement dir , BatchBuilder builder ) { } static void createRelativePathService ( String name , String relativeTo , String relativePath , BatchBuilder builder ) { } }

Fix:
serviceBuilder . setInitialMode ( ACTIVE ) ;