Procedure
- Open the Windows command line or Linux terminal, and go to the following directory: ./org.talend.administrator/WEB-INF/classes.
-
Run:
- MetaServletCaller.bat to call the metaServlet on Windows.
- MetaServletCaller.sh to call the metaServlet on Linux.
-
Type in the following script to create an execution task for the Route
DemoRESTRoute, which has been published into the Artifact
repository:
MetaServletCaller.bat --tac-url=http://localhost:8080/org.talend.administrator --json-params= "{ 'actionName':'saveEsbTask', 'taskName':'demoREST', 'description':'demo', "tag":'Mygroup', 'repository':'snapshots', 'featureName':'DemoRESTRoute-feature', 'featureVersion':'0.1.0-SNAPSHOT', 'featureType':'ROUTE', 'runtimeContext':'Default', 'runtimeServerName':'runtime_server', 'runtimePropertyId':'DemoRESTRoute', 'authPass':'admin', 'authUser':'admin@company.com', 'featureUrl':'mvn:org.example/DemoRESTRoute-feature/0.1.0-SNAPSHOT/xml' }"
Separate multiple context parameters with commas.Replace the parameters with what they are in real contexts and respect the format used in the script above for these parameters.The response from the Talend Administration Center server is displayed in the command lines.