Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • Himai Minh

The ceoncept of application-client

Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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(
at com.sun.ebank.util.EJBGetter.getCustomerControllerHome(
at com.sun.ebank.appclient.DataModel.<init>(
at com.sun.ebank.appclient.EventHandle.<init>(
at com.sun.ebank.appclient.BankAdmin.main("

I am trying to understand what exactly goes on here that when trying to lookup CustomerControllerHome results in "bank-client not bound" error.

Thanks a lot
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Chandra,

I was trying to understand the same.... Take a look...

I want to debug the app-client.jar ... do you know how can i do that in Eclipse?

Our first order of business must be this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic