[ 
https://issues.apache.org/activemq/browse/AMQ-1794?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gary Tully resolved AMQ-1794.
-----------------------------

      Assignee: Gary Tully
    Resolution: Working as Designed

[order is important to a 
sequence|http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/structures.html#element-sequence],
 leave the transportConnectors last and it will work.

{code}
<amq:broker brokerName="myBroker" persistent="true"
   useShutdownHook="false" deleteAllMessagesOnStartup="true" useJmx="true" 
   populateJMSXUserID="true" >

   <amq:persistenceAdapter>
      <amq:kahaPersistenceAdapter directory="activemq-data" 
maxDataFileLength="33554432"/>
   </amq:persistenceAdapter>

   <amq:plugins>
      <!-- lets enable detailed logging in the broker -->
      <amq:loggingBrokerPlugin/>
   </amq:plugins>

   <amq:transportConnectors>
      <amq:transportConnector uri="${brokerUri}" />
   </amq:transportConnectors>
</amq:broker>
{code}

btw: I don't understand why your patch (adding unbounded to the sequence) 
allows the order to be insignificant and the out of order elements to be 
parsed. Any idea?


> Fix activemq.xsd to allow configuration of more than one element in the broker
> ------------------------------------------------------------------------------
>
>                 Key: AMQ-1794
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1794
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.1.0
>         Environment: JDK6, Spring, WinXP
>            Reporter: Andreas Kuhtz
>            Assignee: Gary Tully
>             Fix For: 5.3.0
>
>         Attachments: amq-1794.patch
>
>
> The current activemq.xsd does not allow to configure more than one 
> subelement, e.g. the transportConnnectors and the persistenceAdapter. 
> Therefore the following correct configuration is currently not validated.
> {code:xml} 
> <amq:broker brokerName="myBroker" persistent="true"
>    useShutdownHook="false" deleteAllMessagesOnStartup="true" useJmx="true" 
>    populateJMSXUserID="true" >
>    <amq:transportConnectors>
>       <amq:transportConnector uri="${brokerUri}" />
>    </amq:transportConnectors>
>    <amq:persistenceAdapter>
>       <amq:kahaPersistenceAdapter directory="activemq-data" 
> maxDataFileLength="33554432"/>
>    </amq:persistenceAdapter>
>    <amq:plugins>
>       <!-- lets enable detailed logging in the broker -->
>       <amq:loggingBrokerPlugin/>
>    </amq:plugins>
> </amq:broker>
> {code} 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to