All Examples  All WebLogic Enterprise Connectivity Examples This Package  

Class examples.wlec.ejb.simpapp.Client

java.lang.Object
   |
   +----examples.wlec.ejb.simpapp.Client

public class Client
extends Object
This class illustrates using a stateless SessionBean that calls an IIOP handler which in turn calls a CORBA simpapp server. This class does the following:

You'll need to add an IIOP pool to your weblogic.properties file:

# Demo IIOP pool
   weblogic.CORBA.connectionPool.simplepool=\
     appaddrlist=//your host name:port # where the simpapp is running,\
     failoverlist=//your host name:port # where the simpapp is running,\
     minpoolsize=1,\
     maxpoolsize=3,\
     username=your user name,\
     userrole=role of the user,\
     domainname=simpapp
 
You'll need to deploy the EJB to your weblogic.properties file:
# Demo ejb deployment 
   weblogic.ejb.deploy=c:/weblogic/classes/wlec_ejb_simpapp.jar
 


Constructor Index

 o Client()

Method Index

 o getInitialContext()
Gets an initial context.
 o main(String[])
Runs this example from the command line.

Constructors

 o Client
 public Client()

Methods

 o main
 public static void main(String args[])
Runs this example from the command line. For example:

& java examples.wlec.ejb.simpapp.Client WebLogicURL user password

The parameters are optional, but if any are supplied, they are interpreted in this order:

Parameters:
WebLogicURL - URL of the server such as "t3://localhost:7001"
user - User name, default null
password - User password, default null. It should be at least 8 characters.
 o getInitialContext
 public static Context getInitialContext() throws Exception
Gets an initial context.

Returns:
Context
Throws: Exception
if there is an error in getting a Context

All Examples  All WebLogic Enterprise Connectivity Examples This Package