All Examples All EJB Examples This Package
java.lang.Object | +----examples.ejb.basic.beanManaged.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 search the JNDI tree for an appropriate container.
 
 Client()
	Client()
   
 getInitialContext()
	getInitialContext()
   main(String[])
	main(String[])
   
 Client
Client
public Client()
 
 main
main
public static void main(String args[])
java examples.ejb.basic.beanManaged.Client "t3://localhost:7001" scott tiger 10020
The parameters are optional, but if any are supplied, they are interpreted in this order:
 getInitialContext
getInitialContext
public static Context getInitialContext() throws Exception
All Examples All EJB Examples This Package