title: Unable to perform JNDI lookup in WebLogic 12 server from JBoss Wildfly 8
body: <p>I am trying to put a message in JMS queue in WebLogic server. My application is running in Wildfly 8 AS. I have written the code for the JNDI lookup and then putting message in JMS queue. I am using the following code for initializing the InitialContext:</p>
  
  <pre><code>private static InitialContext getInitialContext(String url) throws NamingException {
          Hashtable&lt;String, String&gt; env = new Hashtable&lt;&gt;();
          env.put(Context.INITIAL_CONTEXT_FACTORY, JNDI_FACTORY);
          env.put(Context.PROVIDER_URL, url);
          return new InitialContext(env);
      }
  </code></pre>
  
  <p>I have added the following Maven dependencies for adding the WebLogic jar</p>
  
  <pre><code>&lt;dependency&gt;
          &lt;groupId&gt;weblogic&lt;/groupId&gt;
          &lt;artifactId&gt;weblogic&lt;/artifactId&gt;
          &lt;version&gt;12.2.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;weblogic&lt;/groupId&gt;
          &lt;artifactId&gt;webservices&lt;/artifactId&gt;
          &lt;version&gt;12.2.1&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>But the maven dependencies are not getting resolved. Do I need to add any maven repository?</p>
  
  <p>If anything else is required, can anyone please guide me on that?</p>
  
  <p>Regards,
  Anirban.</p>