Discussion:
[jboss-user] [JNDI and Naming] - Aboaut JBoss thread pool of issues
Michael Owen
2013-05-21 10:10:19 UTC
Permalink
Michael Owen [https://community.jboss.org/people/liverpoolilove] created the discussion

"Aboaut JBoss thread pool of issues"

To view the discussion, visit: https://community.jboss.org/message/818600#818600

--------------------------------------------------------------
      I want to use the the JBoss's thread pool, this configuration you?
  <subsystem xmlns="urn:jboss:domain:threads:1.1">
                      <bounded-queue-thread-pool name="test" allow-core-timeout="false">
                <core-threads count="5"/>
                <queue-length count="1"/>
                <max-threads count="20"/>
                <keepalive-time time="10" unit="seconds"/>
            </bounded-queue-thread-pool>
                    </subsystem>
How do I access the thread pool in code?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/818600#818600]

Start a new discussion in JNDI and Naming at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]
Wolf-Dieter Fink
2013-05-21 15:44:31 UTC
Permalink
Wolf-Dieter Fink [https://community.jboss.org/people/wdfink] created the discussion

"Re: Aboaut JBoss thread pool of issues"

To view the discussion, visit: https://community.jboss.org/message/818687#818687

--------------------------------------------------------------
Thread pools can be configured for different use (i.e. EJB, timer, web ...).
A direct access is not recommended as you should not controll threads in the application code, this is the responsibility of the container.

Or do I missunderstand your question?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/818687#818687]

Start a new discussion in JNDI and Naming at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]
Michael Owen
2013-05-22 01:47:06 UTC
Permalink
Michael Owen [https://community.jboss.org/people/liverpoolilove] created the discussion

"Re: Aboaut JBoss thread pool of issues"

To view the discussion, visit: https://community.jboss.org/message/818736#818736

--------------------------------------------------------------
First, thank you for your reply !
I do not want to control these threads, but want to use them to do something.
Thread pools can be configured for different use (i.e. EJB, timer, web ...).?
timer?  standalone-ha.xml have configured timer thread pool?
I'm using jboss7.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/818736#818736]

Start a new discussion in JNDI and Naming at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]
Wolf-Dieter Fink
2013-05-22 10:53:36 UTC
Permalink
Wolf-Dieter Fink [https://community.jboss.org/people/wdfink] created the discussion

"Re: Aboaut JBoss thread pool of issues"

To view the discussion, visit: https://community.jboss.org/message/818812#818812

--------------------------------------------------------------
MIchael,
I move the thread to the appropriate forum.

I did not understand your needs, from the EJB spec you should not deal with threads.

Do +do something+ you might use timers (i.e. @Schedule annotations for EJB) to start a action by specifying a time.
So please explain what you want to achieve, in that case we might able to give you some hints how to do.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/818812#818812]

Start a new discussion in JNDI and Naming at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]
Loading...