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

EJB API Confusion?

 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the javax.ejb.EJBMetaData interface, I see the two methods "isSession()" and "isStatelessSession()"... The first one test if the enterprise Bean's type is "session", while the second one test if the enterprise Bean's type is "stateless session".
I'm confused by the words about the first method... Is the first method used to test whether or not the enterprise bean is stateful session or not? I extracted the above words directly from EJB API... Is that some kind of inconsistency in EJB API?
I just would like to be clarified... Anyone is welcome for comments... Thanks...
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First one checks whether the interface is Session bean or not(Entity bean) and the latter one checks if it is as stateless Session bean or stateful (provided isSession retruns true)
[ April 06, 2004: Message edited by: Pradeep Bhat ]
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh! Really? Thanks, Pradeep... I'm on my way to SCBCD, planning to take it on May 17, which is the date that I was certified as SCJP in last two years...
Actually I have planned to take SCBCD five months ago, but SCWCD 1.4 Beta came in... After passing SCWCD 1.4, I hope that SCBCD is the most suitable one for me to take it...
Thanks for your explanation...
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJBMetaData is not part of the objectives...
Just making sure you don't spend time on stuff that are not tested
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Valentin Crettaz:
EJBMetaData is not part of the objectives...
Just making sure you don't spend time on stuff that are not tested

Oh really? I don't know that really... I'm skimming through the EJB API and found out the thing that make me confused... But Pradeep's explanation is great, I overlooked that point...
Thank you for pointing me to the right direction, Valentin...
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then, I guess the following thread might be of great value to you and others:
Things you do NOT need to know by Kathy Sierra
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much, Valentin... I am reading the HF EJB and I overlooked the topics not included in the exam, which is in the link you provided...
It is true that I do have to be aware of the topics that are not included in the exam so that I won't waste my time on preparation for the exam...
Thanks for the link, Valentin...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic