Win a copy of Svelte and Sapper in Action this week in the JavaScript 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

HFEJB: ejb deployable jar content ?

 
Ranch Hand
Posts: 264
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,

I am new to EJBs so started with EJB2.0
I am doing study of EJB 2.0 from HF EJB book and hence run the ch-1 example (AdviceBean) on J2EE RI server. I have query regarding that.

I have also read ch-2 of same book, but could not get that what thing is on the server side that communicate with home and component interface stubs (as in RMI we have skelton).

Client class files
- Client jar classes
- Home interface class file
- Component Remote Interface class file
- Home stub class file
- Component Remote Interface stub class file


Server side ejb jar: classes and DD
- EJB Bean (suppose SessionBean) class
- Home interface class file
- Component Remote Interface class file
- Home and Component Remote interface implemented classes which are actual source for creating the stubs (home and remote).
- ejb-jar.xml


So my question is : i have seen that the server side jar (C:\j2sdkee1.3.1\repository\delpagand\applications) that is deployed has also home and remote stubs, which i think should only be on the side of client jar.

Also one more query that create client jar has all the required things in addition to EJB Bean class also that i think, is not required.

Please confirm.
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Pawan preet:
Hi Everyone,

I am new to EJBs so started with EJB2.0
I am doing study of EJB 2.0 from HF EJB book and hence run the ch-1 example (AdviceBean) on J2EE RI server. I have query regarding that.

I have also read ch-2 of same book, but could not get that what thing is on the server side that communicate with home and component interface stubs (as in RMI we have skelton).

Client class files
- Client jar classes
- Home interface class file
- Component Remote Interface class file
- Home stub class file
- Component Remote Interface stub class file


Server side ejb jar: classes and DD
- EJB Bean (suppose SessionBean) class
- Home interface class file
- Component Remote Interface class file
- Home and Component Remote interface implemented classes which are actual source for creating the stubs (home and remote).
- ejb-jar.xml


So my question is : i have seen that the server side jar (C:\j2sdkee1.3.1\repository\delpagand\applications) that is deployed has also home and remote stubs, which i think should only be on the side of client jar.

Also one more query that create client jar has all the required things in addition to EJB Bean class also that i think, is not required.

Please confirm.

 
Bernard Adanlessossi
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Pawan!
It's a good thing starting learning SCBCD exam using HF Books... But... Objectives have changed and there is no such HF Book* covering the new objectives.
Why do you want to try the hard way using the 2.1 specifications covered by HFEJB? There are other books out there.

* Some books covering the new objectives
- Maning EJB 3 in Action
- Pro EJB 3
- ejb 3.0 specs...

Good luck in your preps...

Bernard
(Also preparing for it!)



Originally posted by Pawan preet:
Hi Everyone,

I am new to EJBs so started with EJB2.0
I am doing study of EJB 2.0 from HF EJB book and hence run the ch-1 example (AdviceBean) on J2EE RI server. I have query regarding that.

I have also read ch-2 of same book, but could not get that what thing is on the server side that communicate with home and component interface stubs (as in RMI we have skelton).

Client class files
- Client jar classes
- Home interface class file
- Component Remote Interface class file
- Home stub class file
- Component Remote Interface stub class file


Server side ejb jar: classes and DD
- EJB Bean (suppose SessionBean) class
- Home interface class file
- Component Remote Interface class file
- Home and Component Remote interface implemented classes which are actual source for creating the stubs (home and remote).
- ejb-jar.xml


So my question is : i have seen that the server side jar (C:\j2sdkee1.3.1\repository\delpagand\applications) that is deployed has also home and remote stubs, which i think should only be on the side of client jar.

Also one more query that create client jar has all the required things in addition to EJB Bean class also that i think, is not required.

Please confirm.

 
Pawanpreet Singh
Ranch Hand
Posts: 264
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you are write, i am only doing study of EJB2.0 because in my current project and previous one also, i faced Entity beans based on EJB2.0. So for that reason i started first with EJB2.0. My plan for exam is not yet fixed. But i want to get over all feel that how things happen in EJB2.0 and then it might be more useful to go and study book like EJB3 in Action.


Please suggest if it is right way to go or not.
 
Your mind is under my control .... your will is now mine .... read this tiny ad
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic