Hi you can go at the end here https://git-wip-us.apache.org/repos/asf?p=tomee.git;a=blob;f=container/openejb-core/src/main/resources/META-INF/org.apache.openejb/service-jar.xml;h=a9148548490817f41377ec8a85438bedf21d1b30;hb=ae8f512c5655dfd9024353c5a46340c6de07edf3 then you can just check classes and setters: https://git-wip-us.apache.org/repos/asf?p=tomee.git;a=blob;f=container/openejb-core/src/main/java/org/apache/openejb/resource/thread/ManagedExecutorServiceImplFactory.java;h=198bcb293d4cc18f511cfd3552714fbb033eafb2;hb=HEAD or https://git-wip-us.apache.org/repos/asf?p=tomee.git;a=blob;f=container/openejb-core/src/main/java/org/apache/openejb/resource/thread/ManagedScheduledExecutorServiceImplFactory.java;h=05f4597dd24dd252a64eb82178f4fc8700c6a41c;hb=HEAD
Romain Manni-Bucau @rmannibucau http://www.tomitribe.com http://rmannibucau.wordpress.com https://github.com/rmannibucau 2014-12-06 13:52 GMT+01:00 Brian Teggart <[email protected]>: > In order to use the CommonJ workManagers and TimerManagers, I had to rework > the factory methods for the class > de.myfoo.commonj.work.FooWorkManagerFactory to fit with TomEE. > I was going down a road that wasn't very appealing. > > I want to use the ManagedThreadFactory and ManagedExecutorService to create > my threads/ timer jobs instead. In the version of Tomee that I am > using(1.7.1), I can reference the classes like you say, by adding the > openejb-concurrency-utilities and api jar files to my lib folder. The > following references work. > > <Resource id="mtf/Transformer" > type="javax.enterprise.concurrent.ManagedThreadFactory"/> > Resource id="mses/ManagedScheduledExecutorService" > type="javax.enterprise.concurrent.ManagedScheduledExecutorService"/> > > > However, I cant find any info on how to tune the ManagedThreadFactory to run > x concurrent threads. Do you have an example as to how tune the > ManagedThreadFactory , to say run 4 concurrent threads? > > > > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/TimerManagers-and-WorkManagers-in-JEE-tp4672678p4673173.html > Sent from the TomEE Dev mailing list archive at Nabble.com.
