• 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 ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

EJB API Confusion?

 
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Ranch Hand
Posts: 8944
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic