• 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic