This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JBoss and the fly likes JBoss Basic ThreadPool Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "JBoss Basic ThreadPool" Watch "JBoss Basic ThreadPool" New topic
Author

JBoss Basic ThreadPool

Kumar Jaya
Ranch Hand

Joined: Jan 12, 2009
Posts: 45
I am using a .sar file in my JBoss that uses to create a bunch of threads. Will this thread pool that I have created use the threads from JBoss Basic ThreadPool defined as a service within jboss-service.xml file or its a seperate pool by itself?



If at all, how will I monitor the number of threads that are being used in my custom thread pool??

Thanks in advance
Alexey Saenko
Greenhorn

Joined: Aug 18, 2008
Posts: 25
Hi Kumar Jaya,

org.jboss.util.threadpool.BasicThreadPool implements ThreadPool from the same package, therefore, I think, any thread pool you want to use as a jboss service must implement ThreadPool interface.


SCJP 6, SCBCD 5, OCEWSD 6
My blog: http://darkleden.wordpress.com
Kumar Jaya
Ranch Hand

Joined: Jan 12, 2009
Posts: 45
Alexey Saenko wrote:Hi Kumar Jaya,

org.jboss.util.threadpool.BasicThreadPool implements ThreadPool from the same package, therefore, I think, any thread pool you want to use as a jboss service must implement ThreadPool interface.


I am not intending to use the jboss service, my sar file that has the custom threadpool that I have created is working fine, I just wanted to know if this custom thread pool uses seperate bunch of threads, or it uses the threads created by JBoss under BasicThreadPool.

Also in what package does the interface ThreadPool come from, is it JBoss dependant??

Is it a good practice to create thread pools within sar files to be deployed in JBOSS??

Regards.....
hari haran sethu raman
Greenhorn

Joined: Nov 10, 2008
Posts: 11
DId you get the solution?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: JBoss Basic ThreadPool
 
Similar Threads
Using ThreadPool
Thread not existing
How do you execute new code in an existing Thread?
Threads and servlet
Thread Pool with Min,Max. and other thread parameters