Hi Fellow Ranchers,
I have a question on infinite block problem or halting problem.
Following is the excerpt from the book Mastering
EJB ( 3rd ed), pg 316, Chapter 12:
" TRANSACTIONS AND JMS MESSAGE-DRIVEN BEANS
---------------------------------------------------------------------
....
.....
Let's say you have an EJB component (any type of component) that sends and then receive a message all within one big container-managed transactions. In this case, the send operation will never get its message on the queue, because the transaction doesn't commit until after the receive operation ends. Thus you'll be waiting for the receive operation to complete forever. This is called the infinite block problem or halting problem.
"
What I cannot understand is why will I wait forever for receive operation to complete ?
Can any one explain please?
Thanks for you valuable feedback
-sai