cancel
Showing results for 
Search instead for 
Did you mean: 

How to programatically start j2ee application/service from command line

Former Member
0 Kudos

Hi all

We have developed a j2ee application and deployed the .ear file on SAP J2EE (Netweaver'04) engine.

We are able to successfully start/stop the application from Visual administrator -> Deploy -> Service -> Start application (or) Stop application.

We need to start and stop the same application programatically or via command line instead of doing it from VA. Any thoughts from anyone on how to do it ?

Thanks in advance.

Regards

Nagesh

Accepted Solutions (0)

Answers (2)

Answers (2)

nitin_mahajan2
Contributor
0 Kudos

The cammands are there in the respective folders, these are just the batch files / .sh scripts that can be run from command line.

/usr/sap/<instance>JC<client>/j2ee/admin

go.sh and go.bat can run either on command line

j2ee/configtool

configtool.sh / configtool.bat

similarly for other smaller utilities. For the main server, the related commands are in exe directory of sapmnt

/sapmnt/<instance>/exe

Regards,

Nitin

Edited by: Nitin Mahajan on Jun 16, 2009 11:16 PM

Former Member
0 Kudos

Hello,

You can use a Unix shell script that provides automatically the J2EE telnet commands for start/stop the application. You could write the script also with [expect|http://expect.nist.gov/|Expect Home Page].

Kind regards,

Tsvetomir