Glassfish + ActiveMQ MDB processes a message with a delay of 120 seconds

I configured MDB to listen on the queue on an external ActiveMQ broker. It works fine, but the MDB receives a message from the queue and starts processing only after a 2-minute delay. I have not configured any timeouts, but it seems that there is some property that delays processing. Can someone tell me how I can adjust this delay and switch to immediate processing?

+4
source share
1 answer

This is an old mistake in Glassfish for a long time.

, . http://java.net/jira/browse/GLASSFISH-1429

System.exit(0) ( finally), .

try{
code ...

}finally{
 System.exit(0) ;
}

:

1) jstack, , mdb-thread .

2) - : http://download.oracle.com/docs/cd/E19879-01/820-4335/6nfqc3qp8/index.html

+2

Source: https://habr.com/ru/post/1656733/


All Articles