File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Local annotation interfaces Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "Local annotation interfaces" Watch "Local annotation interfaces" New topic
Author

Local annotation interfaces

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 8795

Guys,

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, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 804
    
    1

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


SCJP6, SCWCD5, OCE:EJBD6.
BLOG: http://leakfromjavaheap.blogspot.com
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Local annotation interfaces
 
Similar Threads
Doubt in EJB3.0 specification-business interface
Error using Resource Local Entity Manager
Using EJB3 in combination with Spring.
How does the Spring know where to get the proxy object needs to get injected?
confused in annotations