wood burning stoves 2.0*
The moose likes Web Services and the fly likes is it compulsory to throw remote exception?. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "is it compulsory to throw remote exception?." Watch "is it compulsory to throw remote exception?." New topic
Author

is it compulsory to throw remote exception?.

cnivas redy
Greenhorn

Joined: Apr 19, 2008
Posts: 17
1.what happens if my Service class(or interface) doesn't extend java.rmi.remote and the method doesn't throw java.rmi.remoteException. is it compulsory to throw remote exception?.

2. my service is having complex types. so for the bean class i'm implementing Serializable. do i need to write deSerializable classes also?
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
What API or stack are you using when developing your service?
All the things you mention belong in pre-JAX-WS time, thus none of it is necessary if you are using JAX-WS.
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
cnivas redy
Greenhorn

Joined: Apr 19, 2008
Posts: 17
I used Axis 1.4 for developing the web service.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: is it compulsory to throw remote exception?.
 
Similar Threads
Why does this throw exception when called twice from java?
Catching exception not thrown in try clause
ejb method only throw RemoteException??
Design issues
Exceptions.