File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes Manage Threads Websphere Application Servers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Manage Threads Websphere Application Servers" Watch "Manage Threads Websphere Application Servers" New topic
Author

Manage Threads Websphere Application Servers

catrine ohm
Greenhorn

Joined: Mar 07, 2012
Posts: 13

Hi,
I have webSphere application and three webSphere application server. Scheduler service run a SchedulerServlet of this application one time every day. I have created three thread in SchedulerServlet.I want to that first thread start and run one server,second thread start and run one server, third thread start and run one server.But in my code three thread start and run only one server.How can I allocate three threads on three servers?Please help.
Jim Pouwels
Ranch Hand

Joined: Feb 22, 2012
Posts: 61
My god, not even gonna start on this one!
Brian Hennessy
Ranch Hand

Joined: Oct 24, 2005
Posts: 57
Hi Catrine,
I think your post will generate more questions than answers. Can you advise on why you need 3 threads to run on 3 different servers, are the 3 threads doing different jobs whats the problem with them running on one server.

Also some other things you should be aware of. If you are creating threads like


this is not recommended. In ejb specs its not allowed and while not explicit in the servlet spec I don't think its advised. In websphere unmanaged threads don't have access to context info so jndi looks using an InitialContext may give you null pointers. For scheduling take a look at the scheduling section in this article

I think post some more details on what type of work you need to do with these 3 threads and why they need to execute on different servers and we'll see if there are alternative ways to doing what you want.



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Manage Threads Websphere Application Servers