• 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 ...
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Al Hobbs
  • salvin francis

How To Find Stub/Skeleton Classes

Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I also just started HeadFirst EJB and after reading chapter 2, i thought of accessing the stub/skeleton classes for the Advice application discussed in chapter 1.
I was getting some error while running RI server, so now I am using Sun Java™ System Application Server Platform Edition 8.2 to run the examples. (Though I think SJSAS is the enhanced version of RI, and after that there is GlassFish, correct me if I am wrong)
While deploying the EJB I selected to generate the Client Jar for the Advice application.
Now, this client jar should contain stub also right, apart from interfaces.
I first deployed (using deploytool) after creating the enterprise bean, and then I again deployed after creating the Client.
Here is the content of that AdviceAppClient.jar.

>jar -tvf AdviceAppClient.jar
182 Wed Sep 16 05:53:28 IST 2009 Advice.class
960 Wed Sep 16 05:53:28 IST 2009 AdviceBean.class
203 Wed Sep 16 05:53:28 IST 2009 AdviceHome.class
194 Wed Sep 16 05:53:28 IST 2009 META-INF/sun-j2ee-ri.project
1186 Wed Sep 16 05:53:28 IST 2009 ejb-jar-ic.jar
851 Wed Sep 16 05:53:28 IST 2009 AdviceClient.class
1056 Wed Sep 16 05:53:28 IST 2009 app-client-ic.jar
173 Wed Sep 16 05:53:28 IST 2009 META-INF/MANIFEST.MF
477 Wed Sep 16 05:53:28 IST 2009 META-INF/application.xml
354 Wed Sep 16 05:53:28 IST 2009 META-INF/sun-application.xml

My doubts are:
1. How AdviceBean.class comes into this jar. It should not right?
2. Where are the stubs?

I searched on google abit about it, which says that now AS can create stubs/skeleton dynamically.
Is my server also doing the same or I am missing something?
Thanks in advance.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic