wood burning stoves
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Doubt on DI 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 "Doubt on DI" Watch "Doubt on DI" New topic

Doubt on DI

kalle suresh
Ranch Hand

Joined: Nov 20, 2007
Posts: 48
Hi All,

I am new to EJB. I am following EJB 3 in Action Book. Talking about Action Bazar example

In the stateless bean client if we put

private PlaceBid placeBid;

It injects the instance of PlaceBid EJB. But in the PlaceBid Stateless session bean code we have only the interface for PlaceBid not the PlaceBid class.
It injects the instance of PlaceBid EJB - means
will the server creates a class which implements the PlaceBid interface?
Mirko Bonasorte
Ranch Hand

Joined: May 14, 2007
Posts: 244
See JSR-220, par. 4.7.1.

SCJP<br />SCWCD 1.4 Upgrade (Remember: me stupid)<br />SCWCD 1.4<br /><a href="http://jcp.org/aboutJava/communityprocess/final/jsr220/index.html" target="_blank" rel="nofollow">SCBCD 5.0</a><br /><a href="http://www.enthuware.com" target="_blank" rel="nofollow">SCBCD 5.0 mock exam</a> <br /> <br />SCEA 5 Part1: Preparing...
kalle suresh
Ranch Hand

Joined: Nov 20, 2007
Posts: 48
Could you please be more clear on what you are saying. I am not getting what you are saying.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
He's saying that this is explained in the EJB 3.0 specification, which is developed under JSR 220 (JSR = Java Specification Request). Google for "jsr 220"; the first link that comes up is where you can download the specification. It's a good idea to keep the spec handy while you learn EJB.
I agree. Here's the link: http://aspose.com/file-tools
subject: Doubt on DI
It's not a secret anymore!