What is the point of application-client in J2EE? I am trying to understand the jboss/DukesBank tutorial and see that the app-client.jar is also bundled within the .ear file.
If the app-client is a stand alone Java program why is it bundled with the dukesbank.ear? And I see that the ant script's target run-client anyway uses the app-client.jar in the tutorial's jar directory which is clearly outside the JBoss app server's directory. So why is this whole bundling within the .ear outside which this client is supposed to run?
I commented out the <module> portion declaring the app-client.jar from the application.xml of the .ear. Then I get an error when I run the app-client complaining:
"javax.naming.NameNotFoundException: bank-client not bound ... at javax.naming.InitialContext.lookup(InitialContext.java:347) at com.sun.ebank.util.EJBGetter.getCustomerControllerHome(EJBGetter.java:69) at com.sun.ebank.appclient.DataModel.<init>(DataModel.java:126) at com.sun.ebank.appclient.EventHandle.<init>(EventHandle.java:51) at com.sun.ebank.appclient.BankAdmin.main(BankAdmin.java:587)"
I am trying to understand what exactly goes on here that when trying to lookup CustomerControllerHome results in "bank-client not bound" error.