Meaningless Drivel is fun!*
The moose likes Web Services and the fly likes diff between JAX-RPC and JAX-WS? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "diff between JAX-RPC and JAX-WS?" Watch "diff between JAX-RPC and JAX-WS?" New topic
Author

diff between JAX-RPC and JAX-WS?

sai dev
Greenhorn

Joined: Jan 09, 2007
Posts: 6
Hai,

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.

Thanks in advance.
Alexis Moussine-Pouchkine
Greenhorn

Joined: Jan 04, 2007
Posts: 10
JAX-WS 2.0 is the follow up to JAX-RPC. See this blog entry.

JAX-WS 2.0 does have support for session (the default is stateless).


--Alexis MP | <a href="http://blogs.sun.com/alexismp" target="_blank" rel="nofollow">http://blogs.sun.com/alexismp</a>
Alex Sotin
Greenhorn

Joined: Dec 19, 2006
Posts: 21
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.


<a href="http://www.planet-java.org" target="_blank" rel="nofollow">Java Planet</a> <br />-- <a href="http://www.java-index.org" target="_blank" rel="nofollow">Java Index</a>
Alexis Moussine-Pouchkine
Greenhorn

Joined: Jan 04, 2007
Posts: 10
Yes, "follow up" can read "change of app model"
Annotations are great.
sai dev
Greenhorn

Joined: Jan 09, 2007
Posts: 6
Thank you Moussine-Pouchkine and sotin. Those blogs were really helped me. Sotin what do you meant by asynchronus call backs. Is it like MDB. Can we develope MDB web service.
 
jQuery in Action, 2nd edition
 
subject: diff between JAX-RPC and JAX-WS?