• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Halting problem

 
Sai Swami
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You've got to send, commit, then receive, commit.

-Cameron McKenzie
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic