All Examples All EJB Examples This Package
Class examples.ejb.subclass.child.Client
java.lang.Object
|
+----examples.ejb.subclass.child.Client
- public class Client
- extends Object
This class illustrates using an EJBean that subclasses from a
another bean.
- It creates an instance of the Child bean
- Calls a method that's unique to the Child bean
- Calls a method of the Parent bean that is overloaded
- Calls a method of the Parent bean that is not overloaded
- Calls a method of the Child bean that calls a Parent bean
- Author:
- Copyright (c) 1998 by WebLogic, Inc. All Rights Reserved.
- Copyright (c) 1998-1999 by BEA WebXpress. All Rights Reserved.
-
Client()
-
-
getInitialContext()
- Gets an initial context.
-
main(String[])
- Runs this example from the command line.
Client
public Client()
main
public static void main(String args[])
- Runs this example from the command line. Example:
java examples.ejb.subclass.child.Client "t3://localhost:7001" scott tiger
The parameters are optional, but if any are supplied,
they are interpreted in this order:
- Parameters:
- url - URL such as "t3://localhost:7001" of Server
- user - User name, default null
- password - User password, default null
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 EJB Examples This Package