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 ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

The ceoncept of application-client

 
Greenhorn
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(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.

Thanks a lot
Chandra.
 
Greenhorn
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...

https://coderanch.com/t/89533/JBoss/Swing-Beans-Jboss-debug

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

Thanks.
 
Our first order of business must be this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic