Version 3

    How to disable the automatic contruction of temporary destination?

     

    During loading if the JMSContainerInvoker can't find the destinations configured in the mdb descriptor, they will be created automatically as temporary queues or topics

    .

     

    
    19:16:38,949 WARN  [JMSContainerInvoker] Could not find the queue destination-jndi-name=PaymentNotificationQueue
    19:16:38,949 WARN  [JMSContainerInvoker] destination not found: queue/PaymentNotificationQueue reason: javax.naming.NameNotFoundExceptionPaymentNotificationQueuenot bound
    19:16:38,949 WARN  [JMSContainerInvoker] creating a new temporary destination: queue/PaymentNotificationQueue
    19:16:38,949 INFO  [ExternalNotificationQueue] Bound to JNDI name: queue/PaymentNotificationQueue
    
    

     

     

    You may turn it off using the CreateJBossMQDestination attribute in the proxy factory configuration

     

     

    
    conf/standardjboss.xml
    
        <invoker-proxy-binding>
          <name>message-driven-bean</name>
          <invoker-mbean>default</invoker-mbean>
          <proxy-factory>org.jboss.ejb.plugins.jms.JMSContainerInvoker</proxy-factory>
          <proxy-factory-config>
            <JMSProviderAdapterJNDI>DefaultJMSProvider</JMSProviderAdapterJNDI>
            <ServerSessionPoolFactoryJNDI>StdJMSPool</ServerSessionPoolFactoryJNDI>
            <CreateJBossMQDestination>false</CreateJBossMQDestination>
           ....
    

     

    References

    http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigJBossMDB