This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Problem in running session beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Problem in running session beans" Watch "Problem in running session beans" New topic
Author

Problem in running session beans

Rituparna Duttagupta
Ranch Hand

Joined: Feb 08, 2011
Posts: 55

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??


With regards,
rituparna
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

You have a while loop that never ends. Why are you using a loop at all?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Rituparna Duttagupta
Ranch Hand

Joined: Feb 08, 2011
Posts: 55

THANKS Paul, it's working now. actually i wanted to do something at first, then changed my mind.
thanks again.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

You are welcome
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in running session beans