Author Topic: Automatically unload when error occurs  (Read 1541 times)

fepin

  • Guest
Automatically unload when error occurs
« on: November 30, 2020, 11:52:11 AM »
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

  • Full Member
  • ***
  • Posts: 139
    • View Profile
Re: Automatically unload when error occurs
« Reply #1 on: December 01, 2020, 02:27:04 PM »
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

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2229
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: Automatically unload when error occurs
« Reply #2 on: December 01, 2020, 04:35:07 PM »
So, just submit the LoadID to arsadmin unload?

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

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