• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

TechnologySamples WAS 5

 
Ranch Hand
Posts: 1551
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I been looking at the j2ee client application.
Several strange things have been identified.
An ear file need not be a file. TechnologySamples.ear is in fact a directory.
The documentation states that one should run the client application via the following command.
<install_root>\bin\launchClient
<install_root>\installedApps\<cell name>\TechnologySamples.ear add 1 2
Now somehow the server knows to send add 1 2 to the following module
<module id="JavaClientModule_1">
<java>BasicCalculatorClient.jar</java>
</module>
BasicCalculatorClient.jar happens to be the only <java> module in the ear. Is this just a coincidence or is only one <java> module alllowed in an ear? If two <java> modules are allowed in the ear how does the system know which <java> module gets passed the command line arguements, add 1 2.
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you have more than one client JAR file inside an EAR file you can select it using the -CCjar=jarfile option to launchClient. If there is only one client Jar file defined in your EAR launchClient assumes that's the one you mean when you do not supply this option.
Kyle
 
New rule: no elephants at the chess tournament. Tiny ads are still okay.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic