wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Local annotation interfaces Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Local annotation interfaces" Watch "Local annotation interfaces" New topic

Local annotation interfaces

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9345


I have the following EJB defined:

In my Local annotation, I specify the interfaces. But in reality, the AccountService is a super interface of AccountManager. Do I need to have the AccountService as well in my implements clause? I think it is superflous. But what does the EJB spec says?

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 804

Ideally, you should use EJB only via its interfaces. I think that AccountManager is sufficient.

BLOG: http://leakfromjavaheap.blogspot.com
I agree. Here's the link: http://aspose.com/file-tools
subject: Local annotation interfaces
Similar Threads
How does the Spring know where to get the proxy object needs to get injected?
Using EJB3 in combination with Spring.
confused in annotations
Doubt in EJB3.0 specification-business interface
Error using Resource Local Entity Manager