Skip to Content
avatar image
Former Member

how delete a register from a queue

I all,

I have a queue, that keep object messages sended from a MDB. Now, i need to delete a register from my queue, like:

DUMMY EXAMPLE:

for (int i=0; i<10;i++)

{

"delete from my_queue where id_message = i"

}

I don't know if that is posible, if some could help me...

Thanks in advance,

Jorge

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 02, 2007 at 04:33 AM

    you cant delete a message programatically. it would be done by the JMS provider(JMS server ) when the message is consumed. there could be tools at the JMS server administration level but definately not programatically.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 02, 2007 at 10:56 AM

    Hi Jorge,

    There are not any tools to delete messages from a queue. You can only monitor them. To remove messages from a destination, they just have to be consumed.

    Regards,

    Ekaterina

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 02, 2007 at 12:10 PM

    Ok thanks both, i was need to know first that, if is posible, without another object like a MDB, thanks, problem solve

    Add comment
    10|10000 characters needed characters exceeded