code_junkie

How to expose an EJB as a webservice that will later let me keep client compatibility when ejb changes?

Nov 11th, 2011
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. @WebService
  2. @SOAPBinding(style = Style.RPC)
  3. public interface ILegacyService extends IOtherLegacyService {
  4. // the interface methods
  5. ...
  6. }
  7.  
  8. @Stateless
  9. @Local(ILegacyService.class)
  10. @WebService(endpointInterface = "...ILegacyService", ...)
  11. public class LegacyServiceImpl implements ILegacyService {
  12. // implementation of ILegacyService
  13. }
Add Comment
Please, Sign In to add comment