activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Hofstaedter" <>
Subject Possible to Trade an In-Memory Queue between producer instances with embedded brokers?
Date Wed, 09 May 2007 12:51:53 GMT
I'm using 4.0.2 on various Windows machines.


I've got a producer with an embedded broker with a
MemoryPersistenceAdapter wrapped in a Log4J appender.  At times, the
log4j.xml file may change in ways that affect the way the
producer/embedded broker are configured.  When the change is detected,
Log4J will destroy and recreate the appender instance.  This results in
all of my in-queue messages being lost.


Unfortunately, making the embedded broker actually persist to disk not
an option for me.


I'd like to find a way to swap the local memory queue from the embedded
broker associated with the old producer instance to the one associated
with the new (after config change) producer instance.


I've tried simply calling setPersistenceAdapter() on the new broker with
the old broker's PersistenceAdapter and then resetting the old broker's
PersistenceAdapter to a new instance, but this didn't seem to work for


Is what I am doing possible the way I am trying to do it?  Should I
instead be trying to leave the old broker intact and update its
configuration in place (i.e. by removing the old
DiscoveryNetworkConnector and assigning a new one, etc).


I'm just looking for some general guidance or a pointer to somewhere in
the docs where this is covered.


-- Chris



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message