you need a little enhancement to add some logging to the choice of
adapter on a per destination basis. The choice is made when the
destination is created. A mod to
org.apache.activemq.store.kahadb.MultiKahaDBPersistenceAdapter#getMatchingPersistenceAdapter
something like:

git diff 
activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/MultiKahaDBPersistenceAdapter.java

diff --git 
a/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/MultiKahaDBPersistenceAdapter.java
b/activ

index c8fe75b..d10c4eb 100644

--- 
a/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/MultiKahaDBPersistenceAdapter.java

+++ 
b/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/MultiKahaDBPersistenceAdapter.java

@@ -171,6 +171,7 @@ public class MultiKahaDBPersistenceAdapter extends
LockableServiceSupport implem

             }

         }

         startAdapter(filteredAdapter.getPersistenceAdapter(),
destination.getQualifiedName());

+        LOG.debug("destination {} matched persistence adapter {}",
new Object[]{destination.getQualifiedName(), filteredAda

         return filteredAdapter.getPersistenceAdapter();

     }



On 15 November 2013 08:53, Sophia Wright <sophiawrigh...@gmail.com> wrote:
> I tried enabling DEBUG level logging but it is not logging for destinations
> in persistence store. I want to log for messages, which persistence store
> they are going into.
>
>
>
> --
> View this message in context: 
> http://activemq.2283324.n4.nabble.com/Logging-a-message-for-Multi-kahaDB-tp4674011p4674524.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
http://redhat.com
http://blog.garytully.com

Reply via email to