This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
Design issues
Exceptions.
Why does this throw exception when called twice from java?
ejb method only throw RemoteException??
Catching exception not thrown in try clause