Skip to Content

Create a Job Scheduler on SAP JAVA Server

Jul 06, 2017 at 07:25 AM


avatar image

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


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Milen Dontcheff
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:

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.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hello Millen

Thanks for your inputs.

In my case, the web service is dealing with SAP Backend. The document link you have provided will be helpful.

Also I am planning to consume the WS using Service Group and Provider.




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,