cancel
Showing results for 
Search instead for 
Did you mean: 

How to deploy a stand alone jar file in CE server

Former Member
0 Kudos

Requirement:

# Use external scheduler to run a jar file of a j2se program

# Jar file need to run on CE server, logs should be visible in NW logviewer

Query:

# if i directly place this jar in CE server, will NW logviewer capture run time exceptions of this jar?

or

# Is it necessary for me create a webdynpro or ejb DC and wrap this jar? In this case is the .jar visible to external scheduler?

Accepted Solutions (1)

Accepted Solutions (1)

HuseyinBilgen
Active Contributor
0 Kudos

Hi,

You've to create an External Library DC and deploy it onto CE. Then whenever you call it within another application, you can catch the exceptions and print them into Trace which is then visible from LogViewer.

THere are samples like http://scn.sap.com/thread/2155284 which describes te procedure. Also check the NWDI resources for how to create a such DC and deploy it via http://scn.sap.com/docs/DOC-8227

Former Member
0 Kudos

thanks huseyin. I am not calling this from an another CE dc. I want to invoke jar from a external scheduler.

HuseyinBilgen
Active Contributor
0 Kudos

Hi again,

You can do it by this way. Just create an application/web service on top of this JAR (or DC created by this JAR.) and call it via external scheduler.

Creating an External Library DC will help you to re-use the JAR file

Former Member
0 Kudos

Thanks Huseyin for quick reply.

Can i create a java project in NWDS, build jar, deploy this jar directly in dev CE server and use scheduler to run this jar. (I want to avoid ejb/webdynpro application route if possible as they dont add any value for my scenario)

HuseyinBilgen
Active Contributor
0 Kudos

If you don't make this JAR a part of CE, then you may find a  way to use it but cannot trace it. So, best way is to crate a shell on top of JA and call it to trace it.

Former Member
0 Kudos

what i understand is any run time exception during exectuion of jar running in CE server will captured in logviewer.

when u meant 'trace', r u referring to log viewer?

HuseyinBilgen
Active Contributor
0 Kudos

Sure. If you put the exception into stack trace, it will be visible via Log Viewer

Former Member
0 Kudos

to clarify again, r u saying execution of jar in CE server, will not generate a log in logviewer?

HuseyinBilgen
Active Contributor
0 Kudos

If it is not part of an application/service, it cannot be traceable. It has to be part of the system by any means like java app, web service, etc

Answers (0)