It's not a secret anymore!
The moose likes Web Services and the fly likes JWS vs Java-Annotated webservice class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "JWS vs Java-Annotated webservice class" Watch "JWS vs Java-Annotated webservice class" New topic

JWS vs Java-Annotated webservice class

Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 751
All these time I've been reading and playing with Java-annotated webservice class. But recently, I've seen something with an extension of .JWS. What's the difference?

I'm having the idea that those with the .jws extension can be changed in production? Is this available/can be done to all servlet containers? Thanks!

SCJP 1.5
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42959
JWS used to be a simple deployment mechanism for POJOs that was supported by Axis 1.x. (I can't find a mention of it in the Axis 2.x docs, so I'm assuming that it has been dropped. Axis 2 has a better mechanism for deploying POJOs, though.)

Essentially it enabled you to drop a Java source file (with a .jws extension) into the Axis web app directory, and its public methods would be treated as web services. Some more information -and a mention of the significant drawbacks of this method (no WSDL, no handlers, no WS-Security, ...)- can be found here.
Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 751
Thanks for the answer!
I agree. Here's the link:
subject: JWS vs Java-Annotated webservice class
jQuery in Action, 3rd edition