Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in running session beans

 
Rituparna Duttagupta
Ranch Hand
Posts: 55
Firefox Browser Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends !!

I am facing a verry strange problem, it goes like this.....

I have created this bean...



and call it through this code in a servlet/.jsp file(I have tried both)......



it is compiling alright but while executing it hang up my machine!!
but when i am coding it in a servlet like this...

... it's compiling and executing alright giving the required result!!!

Now, why is this happening?? where am i going wrong??
somewhere in the bean code??? or is it that i am creating a blunder in calling it??
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have a while loop that never ends. Why are you using a loop at all?
 
Rituparna Duttagupta
Ranch Hand
Posts: 55
Firefox Browser Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
THANKS Paul, it's working now. actually i wanted to do something at first, then changed my mind.
thanks again.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are welcome
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic