<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 12pt; color: #000000'>Yep, I forgot about that one. In fact, I think the default configuration is to just create threads as needed, and then the go away. If you specify the thread pool parameter than it will pool and keep them around.<br><br>Andy<br><br><hr id="zwchr"><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px; color: rgb(0, 0, 0); font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"Brian Stansberry" <brian.stansberry@redhat.com><br><b>To: </b>jboss-as7-dev@lists.jboss.org<br><b>Sent: </b>Thursday, October 20, 2011 11:02:25 AM<br><b>Subject: </b>Re: [jboss-as7-dev] Two thread pools sections in management API<br><br>HornetQ has a similar situation. Looking at the internals, it seemed HQ <br>was using a pretty generic thread pool, so if there was a hook so the AS <br>could inject one we could use the AS standard configs in the messaging <br>subsystem.<br><br>On 10/20/11 11:15 AM, Andrig Miller wrote:<br>> One thing that I have found with playing around with the various<br>> subsystems, is JBoss Web. JBoss Web doesn't expose a thread pool<br>> configuration, just a single attribute called max-connections. It also<br>> then has an "executor" attribute, which just takes a thread pool name<br>> from the JBoss Threads configuration.<br>><br>> So, this one is inconsistent with the other subsystems, and I'm not sure<br>> if it should be changed to be consistent or not, since the default<br>> doesn't use JBoss Threads. This would also complicate any "global" view<br>> in the console.<br>><br>> Andy<br>><br>> ------------------------------------------------------------------------<br>><br>> *From: *"David M. Lloyd" <david.lloyd@redhat.com><br>> *To: *jboss-as7-dev@lists.jboss.org<br>> *Sent: *Thursday, October 20, 2011 9:18:12 AM<br>> *Subject: *Re: [jboss-as7-dev] Two thread pools sections in<br>> management API<br>><br>> The name issue wouldn't be quite so bad if we introduced some contract<br>> for each subsystem to introduce a unique name for their pools, and<br>> maybe<br>> another optional level of naming if they have more than one pool<br>> "namespace" in a subsystem. Then a centralized view could be pretty<br>> intuitive: "Thread Pools -> EJB -> ..."<br>><br>> On 10/20/2011 10:12 AM, Brian Stansberry wrote:<br>> > I struggled with that global view a bit over the last week.<br>> ><br>> > I was thinking about approaching it as having it be a set of<br>> resources<br>> > in the threads subsystem that are basically just views onto the real<br>> > resource, which would exist in JCA, EJB etc.<br>> ><br>> > That's not very satisfying. Leads to things like having to avoid<br>> > conflicts in pool names across subsystems. Plus it would be<br>> pretty hard<br>> > to implement.<br>> ><br>> > I was noodling a bit this morning about separating the UI issue<br>> from the<br>> > core model a bit. The core model (in the threads subsystem) could<br>> just<br>> > provide resources addresses (and maybe a bit more metadata) about<br>> pools<br>> > configured elsewhere. The resources for pools would be consistent<br>> > throughout the model (e.g. a bounded-queue-thread-pool that supports<br>> > blocking would have the same attributes, ops, etc everywhere). The<br>> > console could use the info from the threads subsystem to discover all<br>> > the pool configs and then build a nice UI.<br>> ><br>> > I suspect that's a problem for JON though. The CLI of course<br>> wouldn't be<br>> > able to produce a nice unified view, but IMHO that's not a<br>> critical problem.<br>> ><br>> > On 10/20/11 8:16 AM, Jason Greene wrote:<br>> >> Right. What happened is we found out that having thread pools be<br>> global<br>> >> promotes sharing, which is usually an error since each subsystem<br>> needs<br>> >> specific configurations. We were planning on adding a global<br>> view that<br>> >> would see all the subsystems' thread pools so the administrator can<br>> >> easily identify which were in use however I don't think it was<br>> completed<br>> >> yet. Even though we neat them in the subsystem we still want<br>> them to be<br>> >> consistent.<br>> >><br>> >> Sent from my iPhone<br>> >><br>> >> On Oct 20, 2011, at 5:58 AM, Heiko Braun<hbraun@redhat.com<br>> >> <mailto:hbraun@redhat.com>> wrote:<br>> >><br>> >>><br>> >>><br>> >>> no, but if possible they should rely on the default schema<br>> (xsd) for<br>> >>> defining inlined thread pool configurations.<br>> >>><br>> >>> On Oct 20, 2011, at 12:50 PM, David Bosschaert wrote:<br>> >>><br>> >>>> It seems that the latter defines pools that are used in<br>> >>>> /subsystem=ejb3/service=*<br>> >>>> Should they not be using thread pools defined in the threads<br>> subsystem<br>> >>>> instead?<br>> >>><br>> >>> _______________________________________________<br>> >>> jboss-as7-dev mailing list<br>> >>> jboss-as7-dev@lists.jboss.org<mailto:jboss-as7-dev@lists.jboss.org><br>> >>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev<br>> >><br>> >><br>> >> _______________________________________________<br>> >> jboss-as7-dev mailing list<br>> >> jboss-as7-dev@lists.jboss.org<br>> >> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev<br>> ><br>> ><br>><br>><br>> --<br>> - DML<br>> _______________________________________________<br>> jboss-as7-dev mailing list<br>> jboss-as7-dev@lists.jboss.org<br>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev<br>><br>><br>><br>><br>> _______________________________________________<br>> jboss-as7-dev mailing list<br>> jboss-as7-dev@lists.jboss.org<br>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev<br><br><br>-- <br>Brian Stansberry<br>Principal Software Engineer<br>JBoss by Red Hat<br>_______________________________________________<br>jboss-as7-dev mailing list<br>jboss-as7-dev@lists.jboss.org<br>https://lists.jboss.org/mailman/listinfo/jboss-as7-dev<br></blockquote><br></div></body></html>