This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFEJB: ejb deployable jar content ?

 
Pawanpreet Singh
Ranch Hand
Posts: 264
Eclipse IDE Java Spring
  • 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.
 
Bernard Adanlessossi
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 Java Spring
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic