Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Valid types of persistent CMP fields ?

 
Ashley Bideau
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • 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
 
paresh vernekar
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • 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
 
gloxinia libidinous
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • 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
 
satheesh krishnaswamy
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic