• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

entity bean CMR doubt!!

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic