title: How to expose an EJB3.0 session ejb for a desktop app in Weblogic 11g
body: <p>Since:</p>
  
  <ul>
  <li>the <code>@EJB</code> doesn't work on desktop apps, because there's no container,  </li>
  <li>Weblogic doesn't expose through JNDI the names of the EJB's (3.0),</li>
  <li>I didn't find anything about it in the official documentation for a few days now,</li>
  </ul>
  
  <p>does anyone know how I could consume an EJB from a desktop app?</p>
  
  <p>I got hints that i have to modify <code>web.xml</code>... but then what <code>web.xml</code>, there's more of them and at least some of them break my app.</p>
  
  <p><strong>Clarification:</strong>
  I have a WebLogic server running, NOT exposing some EJB's inside an EAR hosted on that server. Specifically, the server is not exposing the names of EJB3.0 Session beans, while it DOES expose the names of some other EJB2.1 names.
  <strong>How do i get a reference to the EJB3.0 objects, hosted on my server, from my desktop app?</strong></p>
  
  <p><strong>FURTHER Clarification:</strong>
  Weblogic Specifically does not expose the names of EJB3.0 within the JNDI, because the specifications of EJB3.0 don't require it.</p>