Where are you trying to use these?<div><br></div><div>Stuart<br><br><div class="gmail_quote"><div dir="ltr">On Wed, 23 Mar 2016, 00:18 Ingo Weiss &lt;<a href="mailto:ingo@redhat.com">ingo@redhat.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I was testing injecting the default ManagedExecutorService on WF10 and<br>
it returns a NullPointerException if I don&#39;t do a lookup.<br>
<br>
These result in a NPE:<br>
<br>
@Resource<br>
private ManagedExecutorService executorService;<br>
<br>
@Resource(lookup = &quot;java:jboss/ee/concurrency/executor/default&quot;)<br>
private ManagedExecutorService executorService;<br>
<br>
But this works:<br>
<br>
private ManagedExecutorService executorService =<br>
InitialContext.doLookup(&quot;java:jboss/ee/concurrency/executor/default&quot;);<br>
<br>
I didn&#39;t change any configurations on WF so far. Ideas?<br>
<br>
Cheers<br>
--<br>
Ingo Weiss<br>
<br>
_______________________________________________<br>
wildfly-dev mailing list<br>
<a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a></blockquote></div></div>