Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>No, it is not possible. I have been working through the same issue, in the context of deploying an EJB 3.0 application on WebLogic 10.3.x.</p> <p>The application runs on Oracle Application Server 10.1.3 and GlassFish 3.x. </p> <ul> <li>Oracle AS (OC4J) has a proprietary mechanism for looking up the local interface of an EJB using JNDI.</li> <li>GlassFish 3.x implements EJB 3.1 with its portable JNDI name syntax.</li> </ul> <p>Our application uses a lookup mechanism for the current application server, which is determined at runtime.</p> <p>In WebLogic Server 10.3, the local interface of an EJB:</p> <ul> <li>can be injected into managed classes in the servlet container (servlets, filters etc.) and other EJBs using <code>@EJB</code> annotations</li> <li>is only available for lookup from JNDI when it has been declared in a <code>ejb-local-ref</code> element in <code>web.xml</code> or <code>ejb-jar.xml</code></li> </ul> <p>It is not practical for us to declare all EJBs that are looked up. We have 192 stateless EJBs, mostly injected but many looked up from JNDI because we need them available to unmanaged classes.</p> <p>My source for this information, apart from trial and error, is <a href="http://middlewaremagic.com/weblogic/?p=39">WebLogic 10.3 EJB3 Local Lookup Sample</a>. Almost everything else I found, including the Oracle documentation, describes the JNDI lookup syntax with <code>mappedName#fullInterface</code> but does not make it clear that only the remote interface name is in the JNDI tree.</p> <p><strong>Update:</strong> We went with declarations in <code>web.xml</code> and <code>ejb-jar.xml</code> (yes, there are EJBs that use utility classes that look up other EJBs in JNDI). Started with a script to generate them from sources then manually edited them until they were correct. Not nice but necessary.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload