0 Replies Latest reply on Aug 1, 2014 4:10 AM by Jan Rosczak

    What is the correct JNDI entry for an ObjectFactory?

    Jan Rosczak Newbie



      in my code a JNDI lookup does look like: InitialContext.doLookup("java:comp/env/wm/WorkManager")


      Now for that entry I want to register an ObjectFactory in the WildFly configuration file under the subsystem "naming". What would be the correct JNDI name to that the above lookup works?


      I for instance tried:


      <subsystem xmlns="urn:jboss:domain:naming:2.0">
      <object-factory name="java:jboss/env/wm/WorkManager" module="hl.workmanager" class="com.hlag.fislocal.asyncbeans.WorkManager"/>


      java:/wm/WorkManager does not work and so does java:global. java:comp is not allowed.



      Jan R.