This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Some basic Confusions in Entity Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Some basic Confusions in Entity Bean" Watch "Some basic Confusions in Entity Bean" New topic
Author

Some basic Confusions in Entity Bean

Micheal John
Ranch Hand

Joined: Nov 01, 2006
Posts: 344
I know in the entity bean, the create() and findByPrimaryKey() methods in the home interface will always return the EJBObject reference. It can't return other than EJBObject reference.

I am also having other findBy<name>() and home business methods in the home interface.

I want to know what are the possible return types of findBy<name>() and home business methods in the home interface.

As far my knowledge, the home business methods in the home interface is for returning the raw data to the client,instead of returning the EJBObject reference.

Whether the home business methods in the home interface can't return anything other than raw data?

What are the possible return types of findBy<name>() methods in the home interface.


Why the CMR data field should be either another entity bean's local component interface/ Collection?

Why can't we use another entity bean's remote component interface?


Micheal John
SCJP 1.4 (86%), SCWCD 1.4 (86%), SCBCD 1.3 (85%), SCDJWS (Just Started...) - Satisfaction Lies in Our EFFORT, Not in the ATTAINMENT
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Some basic Confusions in Entity Bean
 
jQuery in Action, 3rd edition