All Examples All EJB Examples This Package
java.lang.Object | +----examples.ejb.extensions.finderEnumeration.Client
Part A: Deposit and attempt to withdraw more than the current account balance. An application-specific exception should be thrown.
Part B: Create some new accounts, with different initial balances. Find all the accounts with a balance greater than a specific value. When finished, the new accounts are removed.
This class also illustrates how to lookup an EJB home in the JNDI tree.
public Client(java.lang.String url, java.lang.String user, java.lang.String password)
public static void main(java.lang.String args[])
java examples.ejb.basic.beanManaged.Client "t3://localhost:7001" scott tiger
The parameters are optional, but if any are supplied, they are interpreted in this order:
url
- URL such as "t3://localhost:7001" of Server
user
- User name, default null
password
- User password, default null
public void runExamplePartA()
public void runExamplePartB()
All Examples All EJB Examples This Package