Skip to content

Commit

Permalink
lookup java:comp in component context
Browse files Browse the repository at this point in the history
  • Loading branch information
aubi committed Apr 26, 2022
1 parent a66ca8d commit 595be6e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public void testManagedThreadFactoryDefinitionDefaultsEJB() throws Throwable {
try {
allThreadsRunning.countDown();
blocker.await(MAX_WAIT_SECONDS * 5, TimeUnit.SECONDS);
lookupTaskResult.complete(InitialContext.doLookup("java:comp/concurrent/EJBThreadFactoryB"));
lookupTaskResult.complete((ManagedThreadFactory) managedThreadFactoryDefinitionBean.doLookup("java:comp/concurrent/EJBThreadFactoryB"));
} catch (Throwable x) {
lookupTaskResult.completeExceptionally(x);
}
Expand Down

0 comments on commit 595be6e

Please sign in to comment.