This content has been marked as final.
Show 2 replies
-
1. Re: Accessing ManagedThreadFactory via @Resource
zeus3324 Oct 8, 2013 5:15 AM (in response to zeus3324)Just to add further, I can confirm that this below correctly injects the default ManagedThreadFactory.
@Resource(lookup="java:comp/DefaultManagedThreadFactory")
private ManagedThreadFactory threadFactory;
Also, in GlassFish you can specify the JNDI name for any concurrent resource as follows.
<managed-thread-factory jndi-name="MyManagedThreadFactory" thread-priority="1"></managed-thread-factory>
Surely we can also do this in Wildfly, or is this still to be developed?
-
2. Re: Accessing ManagedThreadFactory via @Resource and JNDI
zeus3324 Oct 9, 2013 11:23 AM (in response to zeus3324)Awesome, just pulled the latest code, and jndi-name attribute has been added.