Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes EJB 3 Client View Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "EJB 3 Client View" Watch "EJB 3 Client View" New topic

EJB 3 Client View

nitin pai
Ranch Hand

Joined: May 30, 2006
Posts: 185
If we have to make a EJB 2.1 client view for an EJB 3.0 bean then should we create a home interface manually or will the container make it automatically for us?

Nikhil Jain
Ranch Hand

Joined: May 15, 2005
Posts: 389
No interfaces are created by the client.

SCJP 1.4, SCWCD 1.4, SCBCD 1.5, TOGAF 9, Comptia Cloud+
Aditya Vasudeva
Ranch Hand

Joined: May 27, 2008
Posts: 76
yeah...i think thats the container's job.

please correct me if i am wrong...
Anish Mathur

Joined: Jun 30, 2008
Posts: 9
Check 14.2.4 of EJB in Action book.

For EJB 2 client view, which use create method on home interface to create EJb object instance, you can add a home interface.

Then use @RemoteHome annotation on the bean class to mark this as a remote home interface.
Vinay Nath
Ranch Hand

Joined: Jul 06, 2008
Posts: 85
hi Anish,

That CAN is a big keyword because a question in exam probably will be worded as a MUST or SHOULD.

SCDJWS 5.0, SCBCD 5.0, SCWCD 5.0, SCJP 5.0
I agree. Here's the link:
subject: EJB 3 Client View
It's not a secret anymore!