You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by fehm <Fe...@cern.ch> on 2009/07/31 17:43:48 UTC

New Broker plugin : Enforcing persistence mode

Hi,

I was wondering that one or the other might find the attached plugin useful.
It allows to enforce the persistence mode for incoming messages. 

This case comes handy, whenever the connecting clients are not respecting
(or forgetting) message policies. 

In our case, one client connected and sent persistent messages with TTL=0 to
a queue without having a consuming client. This caused the broker to pile up
the messages until it died due to missing space (disk & mem). 

Our general policy for the brokers, however, is to handle only
non-persistent messages. Therefore I wrote this little plugin to protect us
from "nasty" clients.

Please let me know what should be improved.


Regards,
Felix


http://www.nabble.com/file/p24758167/ForcePersistencyModeBroker.java
ForcePersistencyModeBroker.java &nbsp;
http://www.nabble.com/file/p24758167/ForcePersistencyModeBrokerPlugin.java
ForcePersistencyModeBrokerPlugin.java 
-- 
View this message in context: http://www.nabble.com/New-Broker-plugin-%3A-Enforcing-persistence-mode-tp24758167p24758167.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: New Broker plugin : Enforcing persistence mode

Posted by Rob Davies <ra...@gmail.com>.
Great! thank you Felix!

On 3 Aug 2009, at 08:26, fehm wrote:

>
> Hi Rob,
>
>
> Sure, here you go :
>
> https://issues.apache.org/activemq/browse/AMQ-2339
>
>
> Let me know, if you need  something else.
>
> Cheers,
> Felix
>
>
> rajdavies wrote:
>>
>> Hi Felix,
>>
>> looks handy! - do you want to contribute it too Apache ? - if you do
>> can you create an issue - attach your code and click the assign to
>> apache checkbox
>>
>> cheers,
>>
>> Rob
>>
>> On 31 Jul 2009, at 16:43, fehm wrote:
>>
>>>
>>> Hi,
>>>
>>> I was wondering that one or the other might find the attached plugin
>>> useful.
>>> It allows to enforce the persistence mode for incoming messages.
>>>
>>> This case comes handy, whenever the connecting clients are not
>>> respecting
>>> (or forgetting) message policies.
>>>
>>> In our case, one client connected and sent persistent messages with
>>> TTL=0 to
>>> a queue without having a consuming client. This caused the broker to
>>> pile up
>>> the messages until it died due to missing space (disk & mem).
>>>
>>> Our general policy for the brokers, however, is to handle only
>>> non-persistent messages. Therefore I wrote this little plugin to
>>> protect us
>>> from "nasty" clients.
>>>
>>> Please let me know what should be improved.
>>>
>>>
>>> Regards,
>>> Felix
>>>
>>>
>>> http://www.nabble.com/file/p24758167/ForcePersistencyModeBroker.java
>>> ForcePersistencyModeBroker.java &nbsp;
>>> http://www.nabble.com/file/p24758167/ForcePersistencyModeBrokerPlugin.java
>>> ForcePersistencyModeBrokerPlugin.java
>>> -- 
>>> View this message in context:
>>> http://www.nabble.com/New-Broker-plugin-%3A-Enforcing-persistence-mode-tp24758167p24758167.html
>>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>>
>>
>> Rob Davies
>> I work here: http://fusesource.com
>> My Blog: http://rajdavies.blogspot.com/
>> I'm writing this: http://www.manning.com/snyder/
>>
>>
>>
>>
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/New-Broker-plugin-%3A-Enforcing-persistence-mode-tp24758167p24786480.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Rob Davies
I work here: http://fusesource.com
My Blog: http://rajdavies.blogspot.com/
I'm writing this: http://www.manning.com/snyder/





Re: New Broker plugin : Enforcing persistence mode

Posted by fehm <Fe...@cern.ch>.
Hi Rob,


Sure, here you go :

https://issues.apache.org/activemq/browse/AMQ-2339


Let me know, if you need  something else.

Cheers,
Felix


rajdavies wrote:
> 
> Hi Felix,
> 
> looks handy! - do you want to contribute it too Apache ? - if you do  
> can you create an issue - attach your code and click the assign to  
> apache checkbox
> 
> cheers,
> 
> Rob
> 
> On 31 Jul 2009, at 16:43, fehm wrote:
> 
>>
>> Hi,
>>
>> I was wondering that one or the other might find the attached plugin  
>> useful.
>> It allows to enforce the persistence mode for incoming messages.
>>
>> This case comes handy, whenever the connecting clients are not  
>> respecting
>> (or forgetting) message policies.
>>
>> In our case, one client connected and sent persistent messages with  
>> TTL=0 to
>> a queue without having a consuming client. This caused the broker to  
>> pile up
>> the messages until it died due to missing space (disk & mem).
>>
>> Our general policy for the brokers, however, is to handle only
>> non-persistent messages. Therefore I wrote this little plugin to  
>> protect us
>> from "nasty" clients.
>>
>> Please let me know what should be improved.
>>
>>
>> Regards,
>> Felix
>>
>>
>> http://www.nabble.com/file/p24758167/ForcePersistencyModeBroker.java
>> ForcePersistencyModeBroker.java &nbsp;
>> http://www.nabble.com/file/p24758167/ForcePersistencyModeBrokerPlugin.java
>> ForcePersistencyModeBrokerPlugin.java
>> -- 
>> View this message in context:
>> http://www.nabble.com/New-Broker-plugin-%3A-Enforcing-persistence-mode-tp24758167p24758167.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
> 
> Rob Davies
> I work here: http://fusesource.com
> My Blog: http://rajdavies.blogspot.com/
> I'm writing this: http://www.manning.com/snyder/
> 
> 
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/New-Broker-plugin-%3A-Enforcing-persistence-mode-tp24758167p24786480.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: New Broker plugin : Enforcing persistence mode

Posted by Rob Davies <ra...@gmail.com>.
Hi Felix,

looks handy! - do you want to contribute it too Apache ? - if you do  
can you create an issue - attach your code and click the assign to  
apache checkbox

cheers,

Rob

On 31 Jul 2009, at 16:43, fehm wrote:

>
> Hi,
>
> I was wondering that one or the other might find the attached plugin  
> useful.
> It allows to enforce the persistence mode for incoming messages.
>
> This case comes handy, whenever the connecting clients are not  
> respecting
> (or forgetting) message policies.
>
> In our case, one client connected and sent persistent messages with  
> TTL=0 to
> a queue without having a consuming client. This caused the broker to  
> pile up
> the messages until it died due to missing space (disk & mem).
>
> Our general policy for the brokers, however, is to handle only
> non-persistent messages. Therefore I wrote this little plugin to  
> protect us
> from "nasty" clients.
>
> Please let me know what should be improved.
>
>
> Regards,
> Felix
>
>
> http://www.nabble.com/file/p24758167/ForcePersistencyModeBroker.java
> ForcePersistencyModeBroker.java &nbsp;
> http://www.nabble.com/file/p24758167/ForcePersistencyModeBrokerPlugin.java
> ForcePersistencyModeBrokerPlugin.java
> -- 
> View this message in context: http://www.nabble.com/New-Broker-plugin-%3A-Enforcing-persistence-mode-tp24758167p24758167.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Rob Davies
I work here: http://fusesource.com
My Blog: http://rajdavies.blogspot.com/
I'm writing this: http://www.manning.com/snyder/