activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1158412 - /activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Router.scala
Date Tue, 16 Aug 2011 18:38:37 GMT
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 {



Mime
View raw message