c.pentasuglia 0 Newbie Poster

I have a pretty good understanding of what JAX-RS or any web-service is, but i have to question why use it? I have learned to use J2EE implementing a web application (JSP, JavaScript, CSS) that uses Service Classes to interface with EJB's, which then those EJB's interface with an EIS (In my case resource adapter). So i never had the need for RESTFul Services before. I guess i don't understand what the replace, or add to with my original model. My model for J2EE has three layers: UI, Business, and Comm. What layer do JAX-RS services use? Are they a replacement for something, or an add on? I could really just use a good explaination.

Thanks