title: How to call jboss default work manager in java code?
body: <p>Can any one tell me how to call default jboss work manager in java code?
  I am migrating my code from websphere to jboss , so jndi name is not taking..</p>
  <hr />
  <p>{
  InitialContext ctx = new InitialContext();</p>
  <pre><code>        workManager = (javax.resource.spi.work.WorkManager)ctx.lookup(&quot;wm\default&quot;);
  </code></pre>
  <hr />
  <p>getting below error
  javax.naming.NameNotFoundException: wm/default -- service jboss.naming.context.java.global.wm.default</p>