This week's book giveaway is in the Functional programming forum.
We're giving away four copies of A Functional Approach to Java: Augmenting Object-Oriented Java Code with Functional Principles and have Ben Weidig on-line!
See this thread for details.
  • 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
  • Liutauras Vilda
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Peter Rooke
  • Himai Minh
  • Piet Souris
  • Mikalai Zaikin

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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic