[jboss-user] [EJB3] - Re: Implementing RESTful views of an EJB with local interfaces
Lars Aaslin
do-not-reply at jboss.com
Sat Sep 8 05:56:49 EDT 2012
Lars Aaslin [https://community.jboss.org/people/aslin] created the discussion
"Re: Implementing RESTful views of an EJB with local interfaces"
To view the discussion, visit: https://community.jboss.org/message/758660#758660
--------------------------------------------------------------
Solved the problem. Removed @Local({FileServiceLocalBusiness.class, FileServiceWs.class}) from the implementing class and put it in each business interface instead.
public interface FileService {
...
}
@Local
public interface FileServiceLocalBusiness extends FileService {
...
}
@Local
@Path("file")
@Consumes({ "application/json" })
@Produces({ "application/json" })
public interface FileServiceWs extends FileService {
...
}
@Stateless
public class FileServiceImpl implements FileServiceLocalBusiness, FileServiceWs {
...
}
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/758660#758660]
Start a new discussion in EJB3 at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120908/24d6affc/attachment-0001.html
More information about the jboss-user
mailing list