JBoss Community

Re: Implementing RESTful views of an EJB with local interfaces

created by Lars Aaslin in EJB3 - View the full discussion

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

Start a new discussion in EJB3 at Community