Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

diff between JAX-RPC and JAX-WS?  RSS feed

 
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!