wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 3011
    
  34

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?


Founder of ExamLab and Systemup
See how I can help you to become an awesome programmer
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: 3011
    
  34

Hi Christophe,

Thank you very much for your explanation.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: local interface and local home interface.
 
Similar Threads
Problem with local session bean interface
Some basic Confusions in Entity Bean
Local Client
EJB Local Home interface look up in RAD with WebSphere 5.0 test environment.
EJB Newbie