Skip to Content

Create a Job Scheduler on SAP JAVA Server

Hi All

Need to create a Job Scheduler on the JAVA Stack which will access a local Database and consume a Web Service provided by PI. This is the approach I am thinking will work

1) Create EJB project which will have a Message Driven Bean , and implement the onJob() method

2) The onJob() method will invoke the Web Service via Java client Proxies

3) The EJB will invoke the WS using Service Group and Service Provider

Can I invoke the WS from a Message Bean, or it has to be a Session Bean? If the later, how do we link both these parts?

Any input will be helpful

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jul 06, 2017 at 08:13 AM

    One might invoke a Web Service in a Message Bean. I think your scenario is closer to this one:

    https://blogs.sap.com/2013/08/31/now-schedule-your-nw-business-process-in-nwa-job-scheduler/

    The only difference is that the Web Service will not trigger a BPM process. Actually I am not certain what will be the task of your Web Service. It is not very clear to me.

    Add comment
    10|10000 characters needed characters exceeded

    • Hello Sandip,

      I have not tried with a WebService calling the ABAP backend, but I believe it should work as well (point 9 and 10).

      The difference here is that you need to make sure there is defined Provider of this Service Group and you need to activate this provider. In the Provider you will define the WSDL that calls the Web Service on the AS ABAP.

      When you have done this you need to import the WSDL in the NWDS. This should work.

      I would suggest you first to try this scenario with HTTP and then to switch to HTTPS if you do intend to use HTTPS for the web service call communication.

      Best Regards,