ctory;
 </pre>

 <p>Resource environment references in a deployment descriptor
 can similarly specify the <code>lookup-name</code>,</p>

 <pre>
 &lt;resource-env-ref&gt;
    &lt;resource-env-ref-name&gt;java:module/env/concurrent/MyThreadFactoryRef&lt;/resource-env-ref-name&gt;
    &lt;resource-env-ref-type&gt;jakarta.enterprise.concurrent.ManagedThreadFactory&lt;/resource-env-ref-type&gt;
    &lt;lookup-name&gt;java:global/concurrent/MyThreadFactory&lt;/lookup-name&gt;
 &lt;/resource-env-ref&gt;
 </pre>

 