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

entity bean CMR doubt!!

 
arunij katiliyar
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I came across this statement while learning for scbcd

"The get method for a cmr-field MUST return either the local interface of the entity bean or a collection (either java.util.Collection or java.util.Set) of the same. The set method for the relationship MUST take as an argument the entity bean�s local interface or a collection of the same."


Why the get method should return a local interface . Does that mean CMR in entity beans can be accomplished pnly by the use of local interfaces


Thanks
Arun
 
Ganeshji Marwaha
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
absolutely... u nailed it...

if entity bean participates in relationhips only using local interfaces. Remote interfaces are not allowed... In fact, the primary goal of introducing local interfaces into the ejb 2.0 spec was for CMRs only. Only later the spec team decided to make it applicable for all beans...
 
arunij katiliyar
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ganesh for the clarification .I am preparing for scbcd by reading mastering ejb and java boot camp by MZ . Is this enough .

Thanks
Arun
 
Ganeshji Marwaha
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by arunij katiliyar:
Thanks Ganesh for the clarification .I am preparing for scbcd by reading mastering ejb and java boot camp by MZ . Is this enough .

Thanks
Arun


Mastering EJB is a great book... But, we aware, that the 3rd edition is for EJB 2.1 and there are quite a few new features in that... but that exam is only for EJB 2.0

From other ranchers, i am under the understanding that MZ notes are pretty useful... But, i would suggest u to have a glance at the spec also when u need deeper clarification.

BTW, sorry for the late reply...
 
Chetan Sahasrabudhe
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Additional resource that I guess is very useful is Headfirst EJB.
If you refer to this book then most of the queries related to "SCBCD" will get addressed.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic