WebLogic Integration


com.bea.wlpi.client.util
Class EJBHelper

java.lang.Object
  |
  +--com.bea.wlpi.client.util.EJBHelper

public class EJBHelper
extends java.lang.Object

Convenience class for obtainined a reference to WLI Admin EJB.

Author:
Copyright © 2000, 2001 BEA Systems, Inc. All Rights Reserved.

Constructor Summary
EJBHelper()
          Create a new EJBHelper using defaults from the properties file, if available.
EJBHelper(java.lang.String user, java.lang.String pswd, java.lang.String url)
          Create a new EJBHelper using the specified connection info if provided.
 
Method Summary
 Admin getAdmin()
          Provides a reference to the Admin EJB.
 void setPswd(java.lang.String pswd)
          Set the user's password.
 void setServerUrl(java.lang.String url)
          Set the WLS server URL.
 void setUser(java.lang.String user)
          Set the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EJBHelper

public EJBHelper()
Create a new EJBHelper using defaults from the properties file, if available. If the file "EBJHelper.properties" exists in the working directory, it will be read and the values it contains for the user, password and server url will be set as the defaults for obtaining the EJBs from the server. The properties file should have the following:
Key
Value
userThe WLS user to log on with
passwordThe user's password
urlURL of the WLS server running BPM

EJBHelper

public EJBHelper(java.lang.String user,
                 java.lang.String pswd,
                 java.lang.String url)
Create a new EJBHelper using the specified connection info if provided. Any null parameters will be set to the value contained in the properties file "EJBHelper.properties" if the file and key exist.
Method Detail

setPswd

public void setPswd(java.lang.String pswd)
Set the user's password. This is mapped to the Context.SECURITY_CREDENTIALS key when obtaining the InitialContext.

Parameters:
pswd - a String containing the password of the WebLogic user that the connection will be made as.

setUser

public void setUser(java.lang.String user)
Set the user. This is mapped to the Context.SECURITY_PRINCIPAL key when obtaining the InitialContext.

Parameters:
user - a String containing the name of the WebLogic user that the connection will be made as.

setServerUrl

public void setServerUrl(java.lang.String url)
Set the WLS server URL. This is mapped to the Context.PROVIDER_URL key when obtaining the InitialContext.

Parameters:
url - a String containing the url of the WebLogic server that will be connected to.

getAdmin

public Admin getAdmin()
               throws javax.naming.NamingException,
                      javax.ejb.CreateException,
                      java.rmi.RemoteException
Provides a reference to the Admin EJB.

WebLogic Integration

WebLogic Integration (WLI)