I have an existing EJB3/Hibernate (backend) and JSP (frontend) website. I want build an api for the business logic so that it can be accessed to an iPhone app or Android app or even a mobile site. I am reading about two such technologies in java i.e. RESTful webservices and JAX-WS (XML based webservice). Which one will be more feasible or are there any other technologies to use.
Please help me out as I am new to the webservices.
I would recommend RESTful services using JAX-RS. They are quick to implement and easier (imo) to consume in mobile devices.
Here are some useful reading material:
Of course, you can also stand up both RESTful and WS endpoints for your services. The mapping is not one for one, but toolkits like CXF make it (somewhat) painless.