According to the specification, option (b) is the correct behavior. If you get option (a) and rely on it, the application will not be portable.
JMS Version 1.1 12 2002 .
, , , . , , , .
, , . , , . Ack . , ack , , ack.
"" API, . , , , . , :
- .
- TCP , - .
- GET .
- -.
- - TCP . , , JMS , . , , , .
- .
- .
- - .
6 8, TCP . JMS 5. . . 4.4.13, :
, , , . , PERSISTENT .
JMS. .
, - , .
, " customer.receive() 6 , . 3- " , 4 6 , , ) , ) .