IC5Notice: We have upgraded developerWorks Community to the latest version of IBM Connections. For more information, read our upgrade FAQ.
Topic
  • 3 replies
  • Latest Post - ‏2012-10-24T19:46:47Z by sspavan
Veluri
Veluri
31 Posts

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

    Re: Does JobstepInterface.Processjobstep supports throws custom exception.

    ‏2012-10-24T18:31:46Z  
    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

    Re: Does JobstepInterface.Processjobstep supports throws custom exception.

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

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

    Thank you
    Murali.
  • sspavan
    sspavan
    60 Posts

    Re: Does JobstepInterface.Processjobstep supports throws custom exception.

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

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

    Thank you
    Murali.
    No issues reported with Exception or SocketException. I have declared as below..

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