• Post Reply Bookmark Topic Watch Topic
  • New Topic

local interface and local home interface.

 
Devaka Cooray
Marshal
Posts: 5216
511
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Devaka Cooray
Marshal
Posts: 5216
511
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Christophe,

Thank you very much for your explanation.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!