aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes return type from abstract schema type 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 "return type from abstract schema type" Watch "return type from abstract schema type" New topic
Author

return type from abstract schema type

Jingyi Wang
Greenhorn

Joined: Jul 30, 2003
Posts: 25
If I write a EJB-QL like this:
SELECT OBJECT (m) FROM MovieSchema m,
then a component interface will be returned.
On P408 "As if by magic, the Container knows which interface view to return, local or remote, depending on whether the invocation of the query came from a home or remote interface"
Anybody can explain if the query came from home, which one, local or remote, will be returned. Or why does this depend on home interface ?
Thanks
Jason Hunt
Ranch Hand

Joined: Sep 09, 2002
Posts: 51
If this method called from home interface, then it can only return remote component interface, if called from local home interface, then it can only return local component interface


SCJP, SCWCD, SCBCD, SCDJWS, OCA9i,<br />IBM Certified WAS5.0 Admin<br />IBM Certified Solution Developer - WebSphere Studio 5.0<br />IBM Certified Solution Developer - XML and related Technologies
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: return type from abstract schema type
 
Similar Threads
question about ejbSelect
(HF EJB) abstract-schema-type == local component interface type?
How to implement Home Method in Entity Bean?
findByPrimaryKey
How to implement Home Method in Entity Bean?