You can also define a <code>ManagedThreadFactory</code> with the
 <code>&lt;managed-thread-factory&gt;</code> deployment descriptor element.
 For example,

 <pre>
 &lt;managed-thread-factory&gt;
    &lt;name&gt;java:global/concurrent/MyThreadFactory&lt;/name&gt;
    &lt;context-service-ref&gt;java:global/concurrent/MyThreadFactoryContext&lt;/context-service-ref&gt;
    &lt;priority&gt;4&lt;/priority&gt;
 &lt;/managed-thread-factory&gt;
 </pre>

 If a <code>managed-thread-factory</code> and <code>ManagedThre