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 Antonio Manuel Muñiz Martín <am...@gmail.com> on 2007/11/26 16:41:34 UTC

Axis use RMI?

Hi.

When you generate an axis client using XMLBeans as data binding, you call
web service operations with this statement:

ServiceStub = new ServiceStub();
stub.operation();

This lines throws java.rmi.RemoteException

Axis uses Java RMI?

RE: Axis use RMI?

Posted by "Walker, Jeff" <Je...@fmr.com>.
No,
there is no Java serialization. It's just using a set of convenient pre-existing Java interfaces and exception classes. All web service engines use ASCII XML as transport format.
 


  _____  

	From: Antonio Manuel Muñiz Martín [mailto:amunizmartin.axis2@gmail.com] 
	Sent: Monday, November 26, 2007 10:42 AM
	To: axis-user
	Subject: Axis use RMI?
	
	
	Hi.
	
	When you generate an axis client using XMLBeans as data binding, you call web service operations with this statement:
	
	ServiceStub = new ServiceStub();
	stub.operation();
	
	This lines throws java.rmi.RemoteException 
	
	Axis uses Java RMI?
	
	
	


Re: Silly question about how to shutdown axis

Posted by Kjell Nilsson <kj...@oops.se>.
I still have not found out what object/method to call to
shut down axis server from inside.

Can anyone enlighten me?

--kjell




On 28 nov 2007, at 08.35, Kjell Nilsson wrote:

> Thanx for your answer
>
> I tried it but it did not work.
>
> Probably because I run the server without an administrative site,  
> just the
> SimpleAxisServer standalone, outside of any container and such.
>
> So if that is the only way to stop the server I think Ill have to  
> implement
> it in an operation myself.
>
> MVH
> --kjell
>
>
>
> On 27 nov 2007, at 21.25, Martin Gainty wrote:
>
>> unless its 2am and you need to stop a runaway task you should  
>> quiesce your
>> axis2 webapp to allow the connections to be closed *gracefully*
>> e.g.
>> assuming your axis2 webapp is called axis2 which is running on  
>> localhost
>> port 8080 put this in your browser
>> http://localhost:8080/manager/html/stop?path=/axis2
>>
>> Tack
>> M--
>> ----- Original Message -----
>> From: "Kjell Nilsson" <kj...@oops.se>
>> To: <ax...@ws.apache.org>
>> Sent: Tuesday, November 27, 2007 12:33 PM
>> Subject: Silly question about how to shutdown axis
>>
>>
>>> This is probably a silly newbee question but how do I shutdown a
>>> standalone axis server.
>>>
>>> I have implemented the ServiceLifeCycle interface so I can do late
>>> late cleanup database
>>> and jms stuff, and this works nice.
>>>
>>> Since I have developed on a Mac the Unix command 'kill' takes down  
>>> the
>>> axisserver nice and
>>> clean, calling my shutDown() method. But my problem is that I will
>>> deploy this axis2server on
>>> OpenVMS and there is not a 'kill' command there, only a 'delete/ 
>>> entry'
>>> command that does
>>> like 'kill -9', and thats not nice since the server dies abruptly.
>>>
>>> So what strategy shall I use? Implement an operation that will
>>> shutdown axis2 from inside?
>>> If so what method can I call to stop the server and how do I get  
>>> hold
>>> of the objects that
>>> has the stop method? Or is there a static method somewhere to call?
>>>
>>> Any hint will be fine ;-)
>>>
>>> Kind regards
>>> --kjell
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Silly question about how to shutdown axis

Posted by Kjell Nilsson <kj...@oops.se>.
Thanx for your answer

I tried it but it did not work.

Probably because I run the server without an administrative site, just  
the
SimpleAxisServer standalone, outside of any container and such.

So if that is the only way to stop the server I think Ill have to  
implement
it in an operation myself.

MVH
--kjell



On 27 nov 2007, at 21.25, Martin Gainty wrote:

> unless its 2am and you need to stop a runaway task you should  
> quiesce your
> axis2 webapp to allow the connections to be closed *gracefully*
> e.g.
> assuming your axis2 webapp is called axis2 which is running on  
> localhost
> port 8080 put this in your browser
> http://localhost:8080/manager/html/stop?path=/axis2
>
> Tack
> M--
> ----- Original Message -----
> From: "Kjell Nilsson" <kj...@oops.se>
> To: <ax...@ws.apache.org>
> Sent: Tuesday, November 27, 2007 12:33 PM
> Subject: Silly question about how to shutdown axis
>
>
>> This is probably a silly newbee question but how do I shutdown a
>> standalone axis server.
>>
>> I have implemented the ServiceLifeCycle interface so I can do late
>> late cleanup database
>> and jms stuff, and this works nice.
>>
>> Since I have developed on a Mac the Unix command 'kill' takes down  
>> the
>> axisserver nice and
>> clean, calling my shutDown() method. But my problem is that I will
>> deploy this axis2server on
>> OpenVMS and there is not a 'kill' command there, only a 'delete/ 
>> entry'
>> command that does
>> like 'kill -9', and thats not nice since the server dies abruptly.
>>
>> So what strategy shall I use? Implement an operation that will
>> shutdown axis2 from inside?
>> If so what method can I call to stop the server and how do I get hold
>> of the objects that
>> has the stop method? Or is there a static method somewhere to call?
>>
>> Any hint will be fine ;-)
>>
>> Kind regards
>> --kjell
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Silly question about how to shutdown axis

Posted by Martin Gainty <mg...@hotmail.com>.
unless its 2am and you need to stop a runaway task you should quiesce your
axis2 webapp to allow the connections to be closed *gracefully*
e.g.
assuming your axis2 webapp is called axis2 which is running on localhost
port 8080 put this in your browser
http://localhost:8080/manager/html/stop?path=/axis2

Tack
M--
----- Original Message -----
From: "Kjell Nilsson" <kj...@oops.se>
To: <ax...@ws.apache.org>
Sent: Tuesday, November 27, 2007 12:33 PM
Subject: Silly question about how to shutdown axis


> This is probably a silly newbee question but how do I shutdown a
> standalone axis server.
>
> I have implemented the ServiceLifeCycle interface so I can do late
> late cleanup database
> and jms stuff, and this works nice.
>
> Since I have developed on a Mac the Unix command 'kill' takes down the
> axisserver nice and
> clean, calling my shutDown() method. But my problem is that I will
> deploy this axis2server on
> OpenVMS and there is not a 'kill' command there, only a 'delete/entry'
> command that does
> like 'kill -9', and thats not nice since the server dies abruptly.
>
> So what strategy shall I use? Implement an operation that will
> shutdown axis2 from inside?
> If so what method can I call to stop the server and how do I get hold
> of the objects that
> has the stop method? Or is there a static method somewhere to call?
>
> Any hint will be fine ;-)
>
> Kind regards
> --kjell
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Silly question about how to shutdown axis

Posted by Kjell Nilsson <kj...@oops.se>.
This is probably a silly newbee question but how do I shutdown a  
standalone axis server.

I have implemented the ServiceLifeCycle interface so I can do late  
late cleanup database
and jms stuff, and this works nice.

Since I have developed on a Mac the Unix command 'kill' takes down the  
axisserver nice and
clean, calling my shutDown() method. But my problem is that I will  
deploy this axis2server on
OpenVMS and there is not a 'kill' command there, only a 'delete/entry'  
command that does
like 'kill -9', and thats not nice since the server dies abruptly.

So what strategy shall I use? Implement an operation that will  
shutdown axis2 from inside?
If so what method can I call to stop the server and how do I get hold  
of the objects that
has the stop method? Or is there a static method somewhere to call?

Any hint will be fine ;-)

Kind regards
--kjell



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Axis use RMI?

Posted by Antonio Manuel Muñiz Martín <am...@gmail.com>.
Thanks for your replies.

Saludos Martin! ;-)

2000/11/26, Martin Gainty <mg...@hotmail.com>:
>
>  This is by design
> http://ws.apache.org/axis/java/install.html
> RMI and CORBA both have tight binding to transport plumbing as well
> as proprietary serialisation/deserialisation restrictions
> Axis was designed to run free of transport binding implementation as well
> as <de>serialisation algorithms
>
> Saludos!
> *Martín*
> ----- Original Message -----
>
> *From:* Antonio Manuel Muñiz Martín <am...@gmail.com>
> *To:* axis-user <ax...@ws.apache.org>
> *Sent:* Monday, November 26, 2007 10:41 AM
> *Subject:* Axis use RMI?
>
> Hi.
>
> When you generate an axis client using XMLBeans as data binding, you call
> web service operations with this statement:
>
> ServiceStub = new ServiceStub();
> stub.operation();
>
> This lines throws java.rmi.RemoteException
>
> Axis uses Java RMI?
>
>
>

RE: Axis use RMI?

Posted by si...@bt.com.
Hi,

No, Axis doesn't use RMI. The Remote interface (from RMI) is used in Axis as the same purpose as in RMI which is to mark the Object as a remote object. The Remote interface therefore doesn't have any methods to implement.

Regards,
Sietse

________________________________

From: Antonio Manuel Muñiz Martín [mailto:amunizmartin.axis2@gmail.com] 
Sent: 26 November 2007 15:42
To: axis-user
Subject: Axis use RMI?


Hi.

When you generate an axis client using XMLBeans as data binding, you call web service operations with this statement:

ServiceStub = new ServiceStub();
stub.operation();

This lines throws java.rmi.RemoteException 

Axis uses Java RMI?




---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org