• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Halting problem

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You've got to send, commit, then receive, commit.

-Cameron McKenzie
 
They worship nothing. They say it's because nothing lasts forever. Like this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic