One Star

TOS ESB deploy Job with tRESTrequest & tRESTreponse to Tomcat or other

Hi all,
Using TOS for ESB, I have a simple job like this : tRESTRequest > tXMLMap > tRESTResponse

I have no problem to call the REST service when I run it from the studio.
But if I deploy a war in tomcat, I have a runjob method and not the expected REST URL call as I have in TOS.
How to deploy this simple REST call on a webapp server and to call it like in TOS ?
I have also tried to deploy the job as jar for OSGI but in the Talend Runtime I have this error:
karaf@trun> install file://C:/talend/DummyREST/DummyREST-0.1.jar
Bundle IDs:
Error executing command: Error installing bundles:
Unable to install bundle file://C:/talend/DummyREST/DummyREST-0.1.jar
(Tomcat if my prefered option to host this job)
any idea ?
Paul.
6 REPLIES
Moderator

Re: TOS ESB deploy Job with tRESTrequest & tRESTreponse to Tomcat or other

Hi,
Did you follow up document TalendHelpCenter:How to build Jobs to deploy your job?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: TOS ESB deploy Job with tRESTrequest & tRESTreponse to Tomcat or other

Hi Sabrina, thank you for your help.
I have been able to deploy a webservice (soap) in the way your say.
But I want to do it with REST, is there any way or alternative ?
Thank you.
Paul
Employee

Re: TOS ESB deploy Job with tRESTrequest & tRESTreponse to Tomcat or other

Hi,
For deploy REST service into Talend Runtime option, you should either put the jar file into deploy/ folder or install it from console command:
install -s file:///C:/talend/DummyREST/DummyREST-0.1.jar
(-s Starts the bundles after installation)
file:/// or file:/ is correct prefix , but not file://
One Star

Re: TOS ESB deploy Job with tRESTrequest & tRESTreponse to Tomcat or other

xldai, ten points !
thank you.
One Star

Re: TOS ESB deploy Job with tRESTrequest & tRESTreponse to Tomcat or other

And how do you make the endpoints relative to the deployment platform, rather than specifically bound to an addressSmiley Tongueort combination?
Employee

Re: TOS ESB deploy Job with tRESTrequest & tRESTreponse to Tomcat or other

AFAIK one needs to specify a relative address in tRESTRequest properties
Cheers, Sergey