Quantcast
Channel: SCN : All Content - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 4013

Run job from webservices

$
0
0

Hi experts,

 

I have to run a job from a webservices call, using java.

 

Here is what I've done so far.

 

Imported the webservices to my project using Apache CFX 2.x and i have all the java code in the project.

 

I tried the following code.

  RunBatchJobRequest runBatchJobRequest = new RunBatchJobRequest();  runBatchJobRequest.setJobName("VERI_ALIQUOTA");  runBatchJobRequest.setRepoName("LOCAL");  runBatchJobRequest.setJobServer("CORSDEV0403");  Batch_Job_AdminImpl batchAdmin = new Batch_Job_AdminImpl();  BatchJobResponse res = batchAdmin.runBatchJob(runBatchJobRequest);

That code does not throw any errors, but the job does not start either.

 

Do I have to initiate a session first? or something like that?

 

Can you guys share a simple code of this working?

 

Best

Leandro


Viewing all articles
Browse latest Browse all 4013

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>