• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JBoss Basic ThreadPool

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 30
Eclipse IDE Spring Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Kumar Jaya
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.....
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
DId you get the solution?
 
reply
    Bookmark Topic Watch Topic
  • New Topic