You can do the same in EE. Doing NamingContext lookup in each ForkJoinPool thread doesn't make much sense to me. If I understand it correctly this would mean to share BeanManager across ForkJoinPool threads (not sure if doable).