cancel
Showing results for 
Search instead for 
Did you mean: 

java application which starts on application-server start

0 Kudos

hi,

how do i write a simple java project which can deployed on the sap netweaver application which gets started on startup?

i dont want to write a portalcomponent or something like that.. it just should be a sort of programm which simply starts and is deployed inside the applicaiton server.

hope you understand what i want,

thanks in advance,

constantin

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member742910
Discoverer
0 Kudos

I also have this question, have you found a solution?

Former Member
0 Kudos

Hello Constantin,

Here are three sample applications:

Creating Your First Web Dynpro Application

http://help.sap.com/saphelp_nw04/Helpdata/EN/fd/ed32a8c9994b4ba4a1645a764814db/frameset.htm

Creating Your First J2EE Application

http://help.sap.com/saphelp_nw04/Helpdata/EN/7d/cf0c8abcc34594ba9d3bbd5dd22155/frameset.htm

Creating a J2EE-Based Car Rental Application

http://help.sap.com/saphelp_nw04/Helpdata/EN/70/13353094af154a91cbe982d7dd0118/frameset.htm

Just follow the steps from one of the tutorials and you will develop and deploy your first application.

Regards,

Ventsi Tsachev

Technology Development Support (J2EE Engine)

SAP Labs, Palo Alto, Ca (USA)

0 Kudos

hi,

thanks for your answer, but thats not what i wanted. i know how to write dynpros, j2ee applications etc.

okay.. let me try to explain it simple.

this is my java-code

public class Server {
	public static void main(String[] args) {
		System.out.println("i started with the sap application server, now i'm waiting to serve...");
		while (true) {
			// NOOP - wait for something
		}
	}
}

i just want that this application runs inside the sap application server... so i can deploy it (using nwdi and cms) and which runs at startup (maybe a deployment-descriptor)

hope you know what i want...

regards

Former Member
0 Kudos

Hello Contantin,

The J2EE Engine starts in 3 phases.

1. Startup of kernel

2. Startup of services

3. Startup of applications

In which phase do you want to execute your code?

Regards,

Ventsi Tsachev

0 Kudos

i want my application to start at the startup of the applications.. any suggestions?

siarhei_pisarenka3
Active Contributor
0 Kudos

Hi Constantin

In file META-INF\application-j2ee-engine.xml set property <start-up mode="always"/>

Hope this will help.

BR, Siarhei