3 Replies Latest reply on Nov 10, 2005 6:15 AM by alexserbul

    DoS problem with MDB

    alexserbul

      Good day!

      I have a such interesting problem:
      - MDB gets messages from queue and stores them in database;

      But what happens when database server was stopped? My MDB invokes context.setRollbackOnly() and MDB container tries to REDELIVER message N times and after it deliver message to dead queue (DLQ).

      This redelivery interval is very short and if we set big redelivery counts (for example 10000) JBoss MDB container can really consume a lot of memory.

      Really, I want that container try to redeliver with some pause until datasource would be working.

      I read all JBoss4 MDB config params and didn't find any param to set REDELIVERY pause.

      Please help.