BEA Logo BEA WebLogic Enterprise Release 5.0

  Corporate Info  |  News  |  Solutions  |  Products  |  Partners  |  Services  |  Events  |  Download  |  How To Buy

 

   WLE Doc Home   |   JNDI & Related Topics   |   Previous   |   Next   |   Contents   |   Index

Using the WLE SPI Implementations for JNDI

This document explains how to use the BEA WebLogic Enterprise (WLE) Service Provider Interface (SPI) implementations for Java Naming and Directory Interface (JNDI) in WLE applications. The information in this document supplements the Sun Microsystems, Inc. JNDI 1.1 Specification for the SPI. The basic JNDI framework implementation in WLE is based on version 1.1.2 of the Sun Microsystems, Inc. standard extension classes.

This document is intended mainly for programmers and system administrators who need to create and maintain transactional, scalable WLE applications.

This document contains the following topics:

 

Using the WLE SPI Implementations for JNDI

Overview of JNDI in WLE

The JNDI API and SPI

   The Naming Interface -- javax.naming

   The Directory Interface -- javax.naming.directory

   The Service Provider Interface -- javax.naming.spi

   Additional WLE SPI Implementations

   WLE JNDI Packaging

   Location of the WLE JNDI Javadoc

Unified Naming and Directory Services

Using the Remote Naming Service for Client Connections and SSL Support

   Step 1: Set Up JNDI Environment Properties for the Initial Context

      WLEContext.INITIAL_CONTEXT_FACTORY Property

      WLEContext.PROVIDER_URL Property

      WLEContext.SECURITY_AUTHENTICATION Property

      WLE Keys Required for BEA TUXEDO Style Authentication

   Step 2: Establish an InitialContext with the WLE Domain

   Step 3: Use the Context to Look Up a Named Server Object

   Step 4: Use the Named Server Object to Get a Reference for the Desired Remote Object, and Invoke Operations on the Remote Object

   Step 5: Complete the Session

Providing Remote Client Access to the UserTransaction Interface

Using the Application Naming Service to Access Local Objects

Using the Application Naming Service to Access Global Objects

   Overview of Features

   Accessing the Factories Subcontext

   Binding Objects into the Factories Subcontext

   Unbinding Objects from the Factories Subcontext

   J2EE Requirements

   Cross-Domain Support

The J2EE Naming Context

   Overview of Requirements

   Accessing Environment Entries

   Using EJB References

   Obtaining Resource Factory References

   Obtaining a UserTransaction Object