How to Lookup an EJB3 Local Interface from a Plain Java Object Packaged in the Same EAR but Not the Same JAR/WAR (Doc ID 1175123.1)

Last updated on AUGUST 07, 2017

Applies to:

Oracle WebLogic Server - Version 10.3.2 and later
Information in this document applies to any platform.

Goal

An EJB application that has a utility class it uses that makes a call to the local interface of another EJB. Both EJB's are in different jars but are packaged within the same EAR file.

How does one access an EJB local business interface from a utility class (non-EJB) that resides inside the application EAR file (not the same JAR or WAR). How is the JNDI lookup done since local business interfaces are not injected in the JNDI registry?





Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms