aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes local interface and local home interface. 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 "local interface and local home interface." Watch "local interface and local home interface." New topic
Author

local interface and local home interface.

Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3053
    
  36

I'm confused, because I don't know what is local interface and local-home interface.

But I know, following is an example for a local bean interface:

@Local
public interface LocalEJBInterface{
//codes here
}

Please tell me, what is local-home interface?


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Where did you read about home interfaces ? These are used for EJB2.x. That's a bit long to explain. Basically, there's a home interface that the client will get from JNDI. From this home interface, the client will be able to get a bean, actually a component interface to the bean. It looks like :


In your example, you are declaring an EJB3 local business interface. The requirements to declare both home and component interfaces has been removed in EJB3. You now only need to declare one business interface, annotated either by @Local or by @Remote.


[My Blog]
All roads lead to JavaRanch
Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3053
    
  36

Hi Christophe,

Thank you very much for your explanation.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: local interface and local home interface.