It's all about the answers!

Ask a question

Calling a Runnable Jar from DNG Extension


Vaibhav S (635) | asked Jun 13, 1:27 a.m.

 Hi,


I have created a sample DNG Extension which I am able to add on my Dashboard.

I also have created a DNG Utility using OSLC which does some cleanup manipulations on DNG Artifacts depending on given scenarios. This Utility I am able to run as satndalone Runnable Jar.

Now i want to call this Utility as a Widget from DNG Dashboard. For the same i found that it needs to be done from a JS file of Widget, but couldnt find the exact process to be followed for the same,

Please let me know about it or any reference link for the same so as to how to call a runnable jar from JS file of Widget and deploying the Jar as well.

Please let me know in case of any issues.


Thanks
Vaibhav

Accepted answer


permanent link
Matthias Buettgen (23411824) | answered Jun 13, 12:08 p.m.
Hi,

You should think about creating a web service out of your jar and deploy this to an application server. We recently did the same in one of our projects. Once you have done this, you can call the web service from the widget using the gadget.io library and get the advantage that a user's session key is embedded into the request. So your service can run in the user's context.

Regards
Matthias
Vaibhav S selected this answer as the correct answer

Comments
Vaibhav S commented Jul 12, 1:26 a.m.

Thanks Matthias .

 

Your answer


Register or to post your answer.