You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ch...@apache.org on 2011/08/16 20:38:37 UTC

svn commit: r1158412 - /activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Router.scala

Author: chirino
Date: Tue Aug 16 18:38:37 2011
New Revision: 1158412

URL: http://svn.apache.org/viewvc?rev=1158412&view=rev
Log:
Don't try to create a UOW if the virtual host does not have a store configured.

Modified:
    activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Router.scala

Modified: activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Router.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Router.scala?rev=1158412&r1=1158411&r2=1158412&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Router.scala (original)
+++ activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Router.scala Tue Aug 16 18:38:37 2011
@@ -151,7 +151,7 @@ abstract class DeliveryProducerRoute(val
         // only deliver to matching consumers
         if( target.consumer.matches(copy) ) {
 
-          if( copy.storeKey == -1L && target.consumer.is_persistent && copy.message.persistent ) {
+          if( router.virtual_host.store !=null && copy.storeKey == -1L && target.consumer.is_persistent && copy.message.persistent ) {
             if( copy.uow==null ) {
               copy.uow = router.virtual_host.store.create_uow
             } else {