File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Thread Handling in Websphere Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Thread Handling in Websphere" Watch "Thread Handling in Websphere" New topic
Author

Thread Handling in Websphere

Terry Schulting
Greenhorn

Joined: Oct 26, 2007
Posts: 6
We ran into an issue a few days ago with one of our applications where a thread has been making the same call over and over again for almost 2 days now (yes, this part is a bug and we are fixing it ). The question that one of our developers has though is this. Shouldn't that thread have been handled by the Websphere container and eventually been garbage collected or atleast timed-out? I think to give you a better idea of what our application is, here is the design... We have an MDB running that pulls a message from a queue. The MDB then turns around and makes a call to a stateless session bean. The stateless session bean then makes calls to non-bean code in the same jvm to perform our business logic. The code in the business logic is where our infinite loop is occurring. So, besides the fact that we need to fix that code, can somebody explain where the thread handling lays and why this thread is allowed to continue on?
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3704
    
    5

Definitely need code samples to figure it out. Sounds like you need to debug more.


My Blog: Down Home Country Coding with Scott Selikoff
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Thread Handling in Websphere