Topic
3 replies Latest Post - ‏2012-10-24T19:46:47Z by sspavan
Veluri
Veluri
31 Posts
ACCEPTED ANSWER

Pinned topic Does JobstepInterface.Processjobstep supports throws custom exception.

‏2012-10-23T19:17:25Z |
*Does JobstepInterface.Processjobstep supports throws custom exception..?

Compute Grid v8 API documentation shows it supports throws Exception

but when I write ProcessJobstep() throws Exception displays error incompatitable.

Goal is I'm trying retry listener concept I want to ProcessJobStep() throws java.sql.SQLException , java.net.SocketException{}.

I want Batchcontainer to retry if DB2 Database is down by any reason.

Does any one has example.......

Thank you
Murali.
Updated on 2012-10-24T19:46:47Z at 2012-10-24T19:46:47Z by sspavan
  • sspavan
    sspavan
    60 Posts
    ACCEPTED ANSWER

    Re: Does JobstepInterface.Processjobstep supports throws custom exception.

    ‏2012-10-24T18:31:46Z  in response to Veluri
    I have defined as below and it works fine. It doesn't show any incompatible errors.

    public int processJobStep() throws RuntimeException {}
  • Veluri
    Veluri
    31 Posts
    ACCEPTED ANSWER

    Re: Does JobstepInterface.Processjobstep supports throws custom exception.

    ‏2012-10-24T19:13:54Z  in response to Veluri
    Could you mind to try ProcessJobStep() throws Exception{}

    or processJobStep() throws java.net.SocketException(){}

    Thank you
    Murali.
    • sspavan
      sspavan
      60 Posts
      ACCEPTED ANSWER

      Re: Does JobstepInterface.Processjobstep supports throws custom exception.

      ‏2012-10-24T19:46:47Z  in response to Veluri
      No issues reported with Exception or SocketException. I have declared as below..

      public int processJobStep() throws Exception, java.net.SocketException