aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes one scbcd question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "one scbcd question" Watch "one scbcd question" New topic
Author

one scbcd question

sarah Marsh
Ranch Hand

Joined: Mar 06, 2001
Posts: 282
question:
A container-managed persistence (CMP) entity bean A has a one-to-many unidirectional relationship (CMR) to another container-managed persistence (CMP) entity bean B. Which interface can expose the methods related to this relationship?

The answer is 'Only local interface of bean A'.

Why have to be local interface?

Thanks a lot!
Vitaliy Geraymovych
Greenhorn

Joined: Jun 15, 2004
Posts: 24
Originally posted by sarah Marsh:
question:
A container-managed persistence (CMP) entity bean A has a one-to-many unidirectional relationship (CMR) to another container-managed persistence (CMP) entity bean B. Which interface can expose the methods related to this relationship?

The answer is 'Only local interface of bean A'.

Why have to be local interface?

Thanks a lot!


The relationship is UNIdirectional, means from A to B. So only A has methods to get values of B. But B got nothing.

Vitaly


SCBCD 1.3<br />SCJP 1.2<br /> <br />"Every time I learn something new, it pushes some old stuff out of my brain" H.Simpson
sarah Marsh
Ranch Hand

Joined: Mar 06, 2001
Posts: 282
'Remote interface of bean A' could be the correct answer also, right?
Vitaliy Geraymovych
Greenhorn

Joined: Jun 15, 2004
Posts: 24
Originally posted by sarah Marsh:
'Remote interface of bean A' could be the correct answer also, right?


From the top of my head CMR can not be exposed as remote interfaces. Return values of the CMR methods are always local interfaces or collections of local interfaces.

Vitaliy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: one scbcd question