cancel
Showing results for 
Search instead for 
Did you mean: 

Create a Job Scheduler on SAP JAVA Server

SandipAgarwalla
Active Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member189220
Active Contributor

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.

SandipAgarwalla
Active Contributor
0 Kudos

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.

Thanks

Sandip

former_member189220
Active Contributor
0 Kudos

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,

Answers (0)