<?xml version="1.0" encoding="UTF-8"?>
<!--
  Automatically generated by DeploymentService
  ===================================================================
  TopicName          - $TopicName
  DestinationManager - $DestinationManager
  SecurityManager    - $SecurityManager
  SecurityRoles      - $SecurityRoles   
  ===================================================================
-->
<server>
  <mbean code="org.jboss.mq.server.jmx.Topic"
	 name="jboss.mq.destination:name=${TopicName},service=Topic">
         
    <depends optional-attribute-name="DestinationManager">${DestinationManager}</depends>
#if(${SecurityManager})
    <depends optional-attribute-name="SecurityManager">${SecurityManager}</depends>
#end
#if(${SecurityRoles})
    <attribute name="SecurityConf">
      <security>
#foreach($role in ${SecurityRoles})      
        <role name="#firstToken($role ':')" #ifDefReplace($role "read" 'read="true"') #ifDefReplace($role "write" 'write="true"') #ifDefReplace($role "create" 'create="true"')/>
#end        
      </security>
    </attribute>
#end
#if($helper.isDefined(${InMemory}))
    <attribute name="InMemory">${InMemory}</attribute>
#end
#if(${RedeliveryDelay})
    <attribute name="RedeliveryDelay">${RedeliveryDelay}</attribute>
#end
#if(${JNDIName})
    <attribute name="JNDIName">${JNDIName}</attribute>
#end
#if(${RedeliveryLimit})
    <attribute name="RedeliveryLimit">${RedeliveryLimit}</attribute>
#end
#if(${ReceiversImpl})
    <attribute name="ReceiversImpl">${ReceiversImpl}</attribute>
#end
#if(${MaxDepth})
    <attribute name="MaxDepth">${MaxDepth}</attribute>
#end
#if(${MessageCounterHistoryDayLimit})
    <attribute name="MessageCounterHistoryDayLimit">${MessageCounterHistoryDayLimit}</attribute>
#end
  </mbean>
</server>