HOWTO
- Developing JNDI Applications for Oracle WebLogic Server https://docs.oracle.com/en/middleware/standalone/weblogic-server/14.1.1.0/wjndi/jndi.html
- Using Java EE Annotations and Dependency Injection
- https://javaee.github.io/javaee-spec/javadocs/
- JNDI https://javaee.github.io/tutorial/overview009.html
- Weblogic annotation reference https://docs.oracle.com/en/middleware/standalone/weblogic-server/14.1.1.0/ejbad/annotations.html#GUID-EE8C40D0-167F-478A-B237-0E3F060AB27B
- Weblogic EJB tutorial https://docs.oracle.com/en/middleware/standalone/weblogic-server/14.1.1.0/ejbad/understanding.html#GUID-18DBCF2E-013D-4DC4-98B2-5C3C5AEE22EA
See also
- https://danielveselka.blogspot.com/2010/05/foreign-jndi-provider-call-remote-ejb.html
- https://danielveselka.blogspot.com/2022/01/using-maven-with-weblogic-1411.html
- https://danielveselka.blogspot.com/2016/01/using-maven-on-weblogic-1221-with-java.html
GitHub
Java Naming and Directory Interface API
The naming environment provides four logical namespaces: java:comp
,
java:module
, java:app
, and java:global
for objects available to
components, modules, or applications or shared by all deployed
applications. A Java EE component can access named system-provided and
user-defined objects. The names of some system-provided objects, such as
a default JDBC DataSource
object, a default JMS connection factory,
and a JTA UserTransaction
object, are stored in the java:comp
namespace. The Java EE platform allows a component to name user-defined
objects, such as enterprise beans, environment entries, JDBC
DataSource
objects, and messaging destinations.
A Java EE component can also locate its environment naming context by
using JNDI interfaces. A component can create a
javax.naming.InitialContext
object and look up the environment naming
context in InitialContext
under the name java:comp/env
. A
component’s naming environment is stored directly in the environment
naming context or in any of its direct or indirect subcontexts.
JNDI names in deploy log
java:app/basicWebappEjb/AccountManagerImpl!dave.service.AccountManager.
java:module/AccountManagerImpl
java:module/AccountManagerImpl!dave.service.AccountManager
java:global/basicWebappEjb/AccountManagerImpl!dave.service.AccountManager
java:app/basicWebappEjb/AccountManagerImpl
java:global/basicWebappEjb/AccountManagerImpl
<Creating application-scoped data source connection pool java:module/env/mavenArchetypeDataSource for Application basicWebappEjb, Module basicWebappEjb, URL = xxxxxx, Properties = xxxxxx.>
Complete log
####<May 12, 2024, 5:09:42,007 PM Central European Summer Time> <Info> <EJB> <fedora> <AdminServer> <[ACTIVE] ExecuteThread: '13' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <15110b61-5602-4852-9ea1-778bb0a83817-000008dc> <1715526582007> <[severity-value: 64] [rid: 0] > <BEA-014021> <The EJB BankManagerImpl(Application: basicWebappEjb, EJBComponent: basicWebappEjb.war) has been successfully deployed. The following remote interfaces have been bound into JNDI with the specified JNDI names:>
####<May 12, 2024, 5:09:42,008 PM Central European Summer Time> <Info> <EJB> <fedora> <AdminServer> <[ACTIVE] ExecuteThread: '13' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <15110b61-5602-4852-9ea1-778bb0a83817-000008dc> <1715526582008> <[severity-value: 64] [rid: 0] > <BEA-014022> <dave.service.BankManager is bound with JNDI name java:module/BankManagerImpl.>
####<May 12, 2024, 5:09:42,008 PM Central European Summer Time> <Info> <EJB> <fedora> <AdminServer> <[ACTIVE] ExecuteThread: '13' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <15110b61-5602-4852-9ea1-778bb0a83817-000008dc> <1715526582008> <[severity-value: 64] [rid: 0] > <BEA-014022> <dave.service.BankManager is bound with JNDI name java:app/basicWebappEjb/BankManagerImpl!dave.service.BankManager.>
####<May 12, 2024, 5:09:42,008 PM Central European Summer Time> <Info> <EJB> <fedora> <AdminServer> <[ACTIVE] ExecuteThread: '13' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <15110b61-5602-4852-9ea1-778bb0a83817-000008dc> <1715526582008> <[severity-value: 64] [rid: 0] > <BEA-014022> <dave.service.BankManager is bound with JNDI name java:app/basicWebappEjb/BankManagerImpl.>
####<May 12, 2024, 5:09:42,008 PM Central European Summer Time> <Info> <EJB> <fedora> <AdminServer> <[ACTIVE] ExecuteThread: '13' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <15110b61-5602-4852-9ea1-778bb0a83817-000008dc> <1715526582008> <[severity-value: 64] [rid: 0] > <BEA-014022> <dave.service.BankManager is bound with JNDI name java:global/basicWebappEjb/BankManagerImpl!dave.service.BankManager.>
####<May 12, 2024, 5:09:42,008 PM Central European Summer Time> <Info> <EJB> <fedora> <AdminServer> <[ACTIVE] ExecuteThread: '13' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <15110b61-5602-4852-9ea1-778bb0a83817-000008dc> <1715526582008> <[severity-value: 64] [rid: 0] > <BEA-014022> <dave.service.BankManager is bound with JNDI name java:module/BankManagerImpl!dave.service.BankManager.>
####<May 12, 2024, 5:09:42,008 PM Central European Summer Time> <Info> <EJB> <fedora> <AdminServer> <[ACTIVE] ExecuteThread: '13' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <15110b61-5602-4852-9ea1-778bb0a83817-000008dc> <1715526582008> <[severity-value: 64] [rid: 0] > <BEA-014022> <dave.service.BankManager is bound with JNDI name java:global/basicWebappEjb/BankManagerImpl.>
####<May 12, 2024, 5:09:42,008 PM Central European Summer Time> <Info> <EJB> <fedora> <AdminServer> <[ACTIVE] ExecuteThread: '13' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <15110b61-5602-4852-9ea1-778bb0a83817-000008dc> <1715526582008> <[severity-value: 64] [rid: 0] > <BEA-014021> <The EJB AccountManagerImpl(Application: basicWebappEjb, EJBComponent: basicWebappEjb.war) has been successfully deployed. The following remote interfaces have been bound into JNDI with the specified JNDI names:>
####<May 12, 2024, 5:09:42,008 PM Central European Summer Time> <Info> <EJB> <fedora> <AdminServer> <[ACTIVE] ExecuteThread: '13' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <15110b61-5602-4852-9ea1-778bb0a83817-000008dc> <1715526582008> <[severity-value: 64] [rid: 0] > <BEA-014022> <dave.service.AccountManager is bound with JNDI name java:app/basicWebappEjb/AccountManagerImpl!dave.service.AccountManager.>
####<May 12, 2024, 5:09:42,008 PM Central European Summer Time> <Info> <EJB> <fedora> <AdminServer> <[ACTIVE] ExecuteThread: '13' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <15110b61-5602-4852-9ea1-778bb0a83817-000008dc> <1715526582008> <[severity-value: 64] [rid: 0] > <BEA-014022> <dave.service.AccountManager is bound with JNDI name java:module/AccountManagerImpl.>
####<May 12, 2024, 5:09:42,008 PM Central European Summer Time> <Info> <EJB> <fedora> <AdminServer> <[ACTIVE] ExecuteThread: '13' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <15110b61-5602-4852-9ea1-778bb0a83817-000008dc> <1715526582008> <[severity-value: 64] [rid: 0] > <BEA-014022> <dave.service.AccountManager is bound with JNDI name java:module/AccountManagerImpl!dave.service.AccountManager.>
####<May 12, 2024, 5:09:42,008 PM Central European Summer Time> <Info> <EJB> <fedora> <AdminServer> <[ACTIVE] ExecuteThread: '13' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <15110b61-5602-4852-9ea1-778bb0a83817-000008dc> <1715526582008> <[severity-value: 64] [rid: 0] > <BEA-014022> <dave.service.AccountManager is bound with JNDI name java:global/basicWebappEjb/AccountManagerImpl!dave.service.AccountManager.>
####<May 12, 2024, 5:09:42,008 PM Central European Summer Time> <Info> <EJB> <fedora> <AdminServer> <[ACTIVE] ExecuteThread: '13' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <15110b61-5602-4852-9ea1-778bb0a83817-000008dc> <1715526582008> <[severity-value: 64] [rid: 0] > <BEA-014022> <dave.service.AccountManager is bound with JNDI name java:app/basicWebappEjb/AccountManagerImpl.>
####<May 12, 2024, 5:09:42,008 PM Central European Summer Time> <Info> <EJB> <fedora> <AdminServer> <[ACTIVE] ExecuteThread: '13' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <15110b61-5602-4852-9ea1-778bb0a83817-000008dc> <1715526582008> <[severity-value: 64] [rid: 0] > <BEA-014022> <dave.service.AccountManager is bound with JNDI name java:global/basicWebappEjb/AccountManagerImpl.>
####<May 12, 2024, 5:09:42,008 PM Central European Summer Time> <Info> <EJB> <fedora> <AdminServer> <[ACTIVE] ExecuteThread: '13' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <15110b61-5602-4852-9ea1-778bb0a83817-000008dc> <1715526582008> <[severity-value: 64] [rid: 0] > <BEA-015075> <EJB deployment state ACTIVATED for [basicWebappEjb:basicWebappEjb, basicWebappEjb.war:basicWebappEjb:basicWebappEjb.war](BankManagerImpl, AccountManagerImpl) >
####<May 12, 2024, 5:09:42,009 PM Central European Summer Time> <Warning> <EclipseLink> <fedora> <AdminServer> <[ACTIVE] ExecuteThread: '13' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <15110b61-5602-4852-9ea1-778bb0a83817-000008dc> <1715526582009> <[severity-value: 16] [rid: 0] > <BEA-2005000> <2024-05-12 17:09:42.009--No partition instance associated with current SessionManager instance.>
####<May 12, 2024, 5:09:42,013 PM Central European Summer Time> <Info> <Deployer> <fedora> <AdminServer> <[ACTIVE] ExecuteThread: '13' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <15110b61-5602-4852-9ea1-778bb0a83817-000008dc> <1715526582013> <[severity-value: 64] [rid: 0] > <BEA-149060> <Module basicWebappEjb.war of application basicWebappEjb successfully transitioned from STATE_PREPARED to STATE_ADMIN on server AdminServer.>
####<May 12, 2024, 5:09:42,043 PM Central European Summer Time> <Info> <javax.enterprise.resource.webcontainer.jsf.config> <fedora> <AdminServer> <[ACTIVE] ExecuteThread: '13' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <15110b61-5602-4852-9ea1-778bb0a83817-000008dc> <1715526582043> <[severity-value: 64] [rid: 0] > <jsf.config.listener.version> <Initializing Mojarra |version.string| for context '/basicWebappEjb'>
####<May 12, 2024, 5:09:42,166 PM Central European Summer Time> <Info> <EJB> <fedora> <AdminServer> <[ACTIVE] ExecuteThread: '13' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <15110b61-5602-4852-9ea1-778bb0a83817-000008dc> <1715526582166> <[severity-value: 64] [rid: 0] > <BEA-015075> <EJB deployment state STARTED for [basicWebappEjb:basicWebappEjb, basicWebappEjb.war:basicWebappEjb:basicWebappEjb.war](BankManagerImpl, AccountManagerImpl) >
####<May 12, 2024, 5:09:42,166 PM Central European Summer Time> <Info> <Deployer> <fedora> <AdminServer> <[ACTIVE] ExecuteThread: '13' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <15110b61-5602-4852-9ea1-778bb0a83817-000008dc> <1715526582166> <[severity-value: 64] [rid: 0] > <BEA-149059> <Module basicWebappEjb.war of application basicWebappEjb is transitioning from STATE_ADMIN to STATE_ACTIVE on server AdminServer.>
####<May 12, 2024, 5:09:42,166 PM Central European Summer Time> <Info> <EJB> <fedora> <AdminServer> <[ACTIVE] ExecuteThread: '13' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <15110b61-5602-4852-9ea1-778bb0a83817-000008dc> <1715526582166> <[severity-value: 64] [rid: 0] > <BEA-015075> <EJB deployment state ADMIN-TO-PRODUCTION for [basicWebappEjb:basicWebappEjb, basicWebappEjb.war:basicWebappEjb:basicWebappEjb.war](BankManagerImpl, AccountManagerImpl) >
####<May 12, 2024, 5:09:42,166 PM Central European Summer Time> <Info> <Deployer> <fedora> <AdminServer> <[ACTIVE] ExecuteThread: '13' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <15110b61-5602-4852-9ea1-778bb0a83817-000008dc> <1715526582166> <[severity-value: 64] [rid: 0] > <BEA-149060> <Module basicWebappEjb.war of application basicWebappEjb successfully transitioned from STATE_ADMIN to STATE_ACTIVE on server AdminServer.>
####<May 12, 2024, 5:09:42,194 PM Central European Summer Time> <Info> <Deployer> <fedora> <AdminServer> <[ACTIVE] ExecuteThread: '13' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <15110b61-5602-4852-9ea1-778bb0a83817-000008dd> <1715526582194> <[severity-value: 64] [rid: 0] > <BEA-149074> <Successfully completed deployment task: [Deployer:149026]deploy application basicWebappEjb on AdminServer..>