Post

2 followers Follow
0
Avatar

Is deploying a job using JAVA api is possible in springXD

Hi,
 
 
We want to create framework using java api according to source it will select jar and deploy it in springxd.
We don't want to use sprind xd console or ui for deployment.
Product- Spring XD
Version- 1.3.1.RELEAASE
 
 
Thanks,
Tauseef khan
tauseef khan

Please sign in to leave a comment.

1 comment

0
Avatar

Hi Tauseef,

I'm not exactly sure what you are trying to do but here are 2 options, the first is to create a script that contains the SpringXD commands you wish to run:

xd-shell --cmdfile [filename]

What should be placed in this file is exactly what you would enter via the shell:

xd:>stream create --name test --definition "http | file" --deploy

so in the file you would place:

stream create --name test --definition "http | file" --deploy

 

The second approach is to use the REST API http://docs.spring.io/spring-xd/docs/current/reference/html/#REST-API

To deploy & manage a stream you can use the following endpoints: http://docs.spring.io/spring-xd/docs/current/reference/html/#stream-deployments

To deploy & manage a Job you can use the following endpoints: http://docs.spring.io/spring-xd/docs/current/reference/html/#job-deployments

 

If you are looking at creating custom modules then you will need to follow http://docs.spring.io/spring-xd/docs/current/reference/html/#registering-a-module 

 

Hope that answers you question.

Eugene Bell 0 votes