Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

diff between JAX-RPC and JAX-WS?

 
sai dev
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
Alex Sotin
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Alexis Moussine-Pouchkine
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, "follow up" can read "change of app model"
Annotations are great.
 
sai dev
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic