I know very basics in web services. Can anyone clarify my doubts. 1. What is the diff between JAX-RPC and JAX-WS? 2. Can web services be statefull. I mean we can develope web services from stateless session bean. Can we do with statefull session bean. 3. Can I use web services or MDB in place of session beans.
If I have scenario where servlet calls session bean which calls entity to access DB Now can I replace session bean with either MDB or web services.
One of the main difference between JAX-RPC and JAX-WS is the programming model. A JAX-WS based service uses annotations (such @WebService) to declare webservice endpoints. Use of these annotations obviates the need for deployment descriptors. With JAX-WS, you can have a webservice deployed on a Java EE compliant application server without a single deployment descriptor. Apart from these, other additional features (such asynchronous callbacks etc) are also present.