• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

Valid types of persistent CMP fields ?

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which of the following are valid types of persistent CMP fields of a 2.0 CMP entity bean?



Select 1 correct options


a A serializable class.


b Local interface of another EJB.


c Remote interface of another EJB.


d java.util.Collection and java.util.Set
 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI,
I think the answer is a.

The rest would be valid in the case of CMR fields

Regards,
Paresh Vernekar
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm sure about option D and if you are required to select only 1 option then D is the right one.

Regards
 
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Paresh,

I agree with ur answer.
But I've a doubt.
For CMR,I feel the option C is wrong.It cannot be a remote interface of another EJB?
Can anyone let me know this,Please?
 
paresh vernekar
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI Satheesh,
I agree with you as the specification mentions that the CMR field needs to have a Local interface.
However yesterday I tried with two beans with one being a CMR field of the other.And for the both the beans I had kept them as remote and I had no issues in deployment as well as in select operation.
I am not sure at what stage and in what form the rule of CMR fields having Local interfaces come in oepration.

Maybe someone can clarify on this matter
Regards,
Paresh Vernekar
 
reply
    Bookmark Topic Watch Topic
  • New Topic