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 Jun Dai <wi...@gmail.com> on 2011/10/19 14:38:01 UTC

axis2Server stops when logoff occurs.

Dears,
I run a axis2Server in my machine which listens to 8080 port in Windows XP
system.
I can remote login the machine using mstsc.exe /admin, but when I logoff, I
found the the axis2Server shutdown. How can I solve this problem? i.e. How
can I keep the axis2Server running even after I logoff(I have to login in by
mstsc.exe /admin some times.)

Thanks in advance!

-- 
Best Regards
DAI Jun

Re: axis2Server stops when logoff occurs.

Posted by Jun Dai <wi...@gmail.com>.
I added -Xrs to axis2Server.bat, It really works!! Thanks andy, you did me a
great favor!




2011/10/19 Andy Dysart <AD...@prospricing.com>

>  You can suppress this behavior by specifying the -Xrs option on the Java
> command line that launches the JVM.****
>
> ** **
>
> -andy****
>
> ** **
>
> *From:* Jun Dai [mailto:wizardishappy@gmail.com]
> *Sent:* Wednesday, October 19, 2011 7:38 AM
> *To:* java-user@axis.apache.org
> *Subject:* axis2Server stops when logoff occurs.****
>
> ** **
>
> Dears,
> I run a axis2Server in my machine which listens to 8080 port in Windows XP
> system.
> I can remote login the machine using mstsc.exe /admin, but when I logoff, I
> found the the axis2Server shutdown. How can I solve this problem? i.e. How
> can I keep the axis2Server running even after I logoff(I have to login in by
> mstsc.exe /admin some times.)****
>
> Thanks in advance!
>
> --
> Best Regards
> DAI Jun****
>



-- 
Best Regards
DAI Jun

RE: axis2Server stops when logoff occurs.

Posted by Andy Dysart <AD...@prospricing.com>.
You can suppress this behavior by specifying the -Xrs option on the Java command line that launches the JVM.

-andy

From: Jun Dai [mailto:wizardishappy@gmail.com]
Sent: Wednesday, October 19, 2011 7:38 AM
To: java-user@axis.apache.org
Subject: axis2Server stops when logoff occurs.


Dears,
I run a axis2Server in my machine which listens to 8080 port in Windows XP system.
I can remote login the machine using mstsc.exe /admin, but when I logoff, I found the the axis2Server shutdown. How can I solve this problem? i.e. How can I keep the axis2Server running even after I logoff(I have to login in by mstsc.exe /admin some times.)

Thanks in advance!

--
Best Regards
DAI Jun

Re: axis2Server stops when logoff occurs.

Posted by Nick Popov <np...@yahoo.com>.
Try Apache Commons daemon.
With prunsrv you can run any java app as a service on Windows.

Regards,
-Nick
~~~~~~~~~~~~~~~~
Sent from my iPhone

On Oct 19, 2011, at 10:27 AM, Jun Dai <wi...@gmail.com> wrote:

> Thank you Josef for your help.
> I googled and got "Java Service Wrapper" which seemed can do this job. But I found there are many things I should to config for this tool to add axis2Server as a Windows Service. Are there any existed configuration I could found to help my work?
> Thank you.
> 
> 2011/10/19 Stadelmann Josef <jo...@axa-winterthur.ch>
> Google like that
> 
>  
> 
> java application as a windows service
> 
>  
> 
> you need a wrapper of your axis2server, which deals with the OS to register itself as a service,
> 
> if it has successfully done that this wrapper needs to launch a JVM and pass as argument axis2server.class
> 
>  
> 
> Josef
> 
>  
> 
> Von: Jun Dai [mailto:wizardishappy@gmail.com] 
> Gesendet: Mittwoch, 19. Oktober 2011 14:38
> An: java-user@axis.apache.org
> Betreff: axis2Server stops when logoff occurs.
> 
>  
> 
> Dears,
> I run a axis2Server in my machine which listens to 8080 port in Windows XP system. 
> I can remote login the machine using mstsc.exe /admin, but when I logoff, I found the the axis2Server shutdown. How can I solve this problem? i.e. How can I keep the axis2Server running even after I logoff(I have to login in by mstsc.exe /admin some times.)
> 
> Thanks in advance!
> 
> -- 
> Best Regards
> DAI Jun
> 
> 
> 
> 
> -- 
> Best Regards
> DAI Jun

Re: axis2Server stops when logoff occurs.

Posted by Jun Dai <wi...@gmail.com>.
Thank you Josef for your help.
I googled and got "Java Service Wrapper" which seemed can do this job. But I
found there are many things I should to config for this tool to add
axis2Server as a Windows Service. Are there any existed configuration I
could found to help my work?
Thank you.

2011/10/19 Stadelmann Josef <jo...@axa-winterthur.ch>

>  Google like that****
>
> ** **
>
> java application as a windows service****
>
> ** **
>
> you need a wrapper of your axis2server, which deals with the OS to register
> itself as a service, ****
>
> if it has successfully done that this wrapper needs to launch a JVM and
> pass as argument axis2server.class****
>
> ** **
>
> Josef****
>
> ** **
>
> *Von:* Jun Dai [mailto:wizardishappy@gmail.com]
> *Gesendet:* Mittwoch, 19. Oktober 2011 14:38
> *An:* java-user@axis.apache.org
> *Betreff:* axis2Server stops when logoff occurs.****
>
> ** **
>
> Dears,
> I run a axis2Server in my machine which listens to 8080 port in Windows XP
> system.
> I can remote login the machine using mstsc.exe /admin, but when I logoff, I
> found the the axis2Server shutdown. How can I solve this problem? i.e. How
> can I keep the axis2Server running even after I logoff(I have to login in by
> mstsc.exe /admin some times.)****
>
> Thanks in advance!
>
> --
> Best Regards
> DAI Jun****
>



-- 
Best Regards
DAI Jun

AW: axis2Server stops when logoff occurs.

Posted by Stadelmann Josef <jo...@axa-winterthur.ch>.
Google like that

 

java application as a windows service

 

you need a wrapper of your axis2server, which deals with the OS to
register itself as a service, 

if it has successfully done that this wrapper needs to launch a JVM and
pass as argument axis2server.class

 

Josef

 

Von: Jun Dai [mailto:wizardishappy@gmail.com] 
Gesendet: Mittwoch, 19. Oktober 2011 14:38
An: java-user@axis.apache.org
Betreff: axis2Server stops when logoff occurs.

 

Dears,
I run a axis2Server in my machine which listens to 8080 port in Windows
XP system. 
I can remote login the machine using mstsc.exe /admin, but when I
logoff, I found the the axis2Server shutdown. How can I solve this
problem? i.e. How can I keep the axis2Server running even after I
logoff(I have to login in by mstsc.exe /admin some times.)

Thanks in advance!

-- 
Best Regards
DAI Jun