You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Eric Rybarczyk <er...@yahoo.com> on 2005/11/27 01:04:32 UTC
How is Java RMI used in Axis services?
Can anyone offer insight into how Axis makes use of RMI? This might be from
your own knowledge or links to documentation which explains it. I did some
searching but was not able to find this information.
I have used WSDL2Java to generate server-side skeleton code, and have then
implemented my services from there. I noticed the code that is generated makes
reference to some RMI objects. For example, the [ServiceName]Impl.java
implementation class defines the service operation method as throwing
java.rmi.RemoteException, and the [ServiceName]Interface extends
java.rmi.Remote.
Thanks for any insight you can offer!
Eric Rybarczyk
__________________________________
Yahoo! Music Unlimited
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/
Re: How is Java RMI used in Axis services?
Posted by Tom Oinn <tm...@ebi.ac.uk>.
Eric Rybarczyk wrote:
> Can anyone offer insight into how Axis makes use of RMI? This might be from
> your own knowledge or links to documentation which explains it. I did some
> searching but was not able to find this information.
Hi Eric,
I believe this is because Axis is an implementation of JAX-RPC (Java API
for XML based Remote Procedure Call?). Rather than inventing new
interfaces to represent remote services, exceptions etc Sun decided to
use the existing ones from RMI. As far as I'm aware there is no actual
use of RMI within Axis other than the use of these interfaces as
mandated by the JAX-RPC
http://java.sun.com/webservices/jaxrpc/index.jsp,
>From the spec :
----
Each method of the mapped Java interface is required to declare
java.rmi.RemoteException in its throws clause. A RemoteException is the
common superclass for exceptions related to a remote method invocation.
Examples are: java.rmi.MarshalException, java.rmi.ConnectException.
Refer to the J2SE [2] documentation for more details on the RemoteException.
----
HTH,
Tom