<?xml version="1.0" encoding="UTF-8"?>
<!--
  ===================================================================
  JBoss messaging queue configuration,  
  automatically generated by DeploymentService
  ===================================================================
-->
<server>
  <loader-repository>jboss.messaging:loader=ScopedLoaderRepository
    <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
  </loader-repository>
   
  <mbean code="org.jboss.jms.server.destination.TopicService"
	 name="jboss.messaging.destination:name=${Name},service=Topic"
	 xmbean-dd="xmdesc/Topic-xmbean.xml">
	 
    <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
    <depends>jboss.messaging:service=PostOffice</depends>
         
#if(${JNDIName})
    <attribute name="JNDIName">${JNDIName}</attribute>
#end

#if(${DLQ})
    <attribute name="DLQ">${DLQ}</attribute>
#end

#if(${ExpiryQueue})
    <attribute name="ExpiryQueue">${ExpiryQueue}</attribute>
#end

#if(${RedeliveryDelay})
    <attribute name="RedeliveryDelay">${RedeliveryDelay}</attribute>
#end

#if(${MaxSize})
    <attribute name="MaxSize">${MaxSize}</attribute>
#end

#if(${FullSize})
    <attribute name="FullSize">${FullSize}</attribute>
#end

#if(${PageSize})
    <attribute name="PageSize">${PageSize}</attribute>
#end

#if(${DownCacheSize})
    <attribute name="DownCacheSize">${DownCacheSize}</attribute>
#end

#if(${Clustered})
    <attribute name="Clustered">${Clustered}</attribute>
#end

#if(${MessageCounterHistoryDayLimit})
    <attribute name="MessageCounterHistoryDayLimit">${MessageCounterHistoryDayLimit}</attribute>
#end

#if(${SecurityRoles})
    <attribute name="SecurityConfig">
      <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
  </mbean>
</server>