This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

local interface and local home interface.

 
Devaka Cooray
ExamLab Creator
Marshal
Pie
Posts: 4119
195
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • 0
  • 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
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • 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
ExamLab Creator
Marshal
Pie
Posts: 4119
195
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Christophe,

Thank you very much for your explanation.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic