cancel
Showing results for 
Search instead for 
Did you mean: 

Proper way to exit with a j2ee java app running in the NW70 j2ee engine

Former Member
0 Kudos

Hello,

I am working on migrating an app and it's ear from j2ee 6.20 to 7.0. It deploys okay, but when invoked, the j2ee server restarts. Looking at the part that fails, its trying to create a jco connection, which fails and then it catches the failure and does a stack dump and a System.exit(1). It shuts down and restarts at that point. Is System.exit(1) the proper way to exit a java app that is running within the j2ee engine? If it is, is it possible I am picking up the wrong System.exit and need to use an SAP specific one? I inherited the code, but not the IDE it was written with.

Thanks,

Paul D. Chamberlain

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Answered my own question. System.exit(1) should not be used. Return works.

Paul D. Chamberlain