Automatically unload when error occurs

Previous topic - Next topic

fepin

Hi,
I am using the Odwek library in my java/spring microservice. When an error occurs sometimes we get the stacktrace in Java but the problem is that the "load" is still present on server side (with a load ID). Do we have the possibility to cancel and remove the load when the server crashes?

In other words, I would like the equivalence of the "-f" option of arsload command (used in cmd line)

Thanks

CMOD v10.1

rjrussel

This one is tricky. Currently no, there isn't a way you can do this via the ODWEK API's. You could open an enhancement request though. The ODWEK API, in general, was not necessarily meant to be an administrative API. Sorry I don't have a better answer for you at this time.

-Thanks
Rob

Justin Derrick

So, just submit the LoadID to arsadmin unload?

-JD.
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Webinars:  https://CMOD.Training/
IBM CMOD Professional Services: https://CMOD.cloud

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR