All Examples All EJB Examples This Package
java.lang.Object | +----examples.ejb.basic.containerManaged.MultiClient
After finding the account and checking that its balance is at least $1,000,000, multiple BigSenders are spawned and let loose on the account. They withdraw money from the account, demonstrating the capability of EJBeans to handle multiple clients simultaneously.
This class also illustrates how to search the JNDI tree for an appropriate container.
 
 MultiClient()
	MultiClient()
   
 getInitialContext()
	getInitialContext()
   main(String[])
	main(String[])
   
 MultiClient
MultiClient
public MultiClient()
 
 main
main
public static void main(String args[])
java examples.ejb.basic.containerManaged.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