Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Karaf and ESB deploy and run - howto?

Hello 

 

I am starting to learn ESB (free version 6.4.1) and Apache Karaf.

 

I am looking for documentation telling me how to deploy and run ESB jobs and routes inside Karaf.

 

I have built a very simple job (tFileInput -> tFileOutput) in Talend ESB studio and ran it OK.

I built job as OSGI which created a JAR file.

I then executed trun and did install -s file:C:/file/talend_job_esb.jar 

This command returned with message "Bundle ID: 243" so it looks like it may have worked (did it?).

I ran list command in trun and see it "active".

I copied the jar file manually into the runtime deploy folder like so:

C:\Talend\TOS_ESB-20170623_1246-V6.4.1\Runtime_ESBSE\container\deploy

 

How do I execute this JAR file from inside Karaf container? 

 

I tried shell:java -jar jarfilename which does not work.

I tried using the name returned by the list command, also no joy.

 

I am sure I am missing something here so I am looking for documentation or youtube video or a blog which shows me how to make Talend ESB jobs, routes and services work inside Karaf.

 

many thanks!

 

Labels (3)
1 Solution

Accepted Solutions
fab_74
Contributor III
Contributor III

in terms of deployment, I think what you have done is correct.
However, in the directory deploy, there must be routes or services
If you use the component of the integration palette, like the tFileInput ..., it is a job.
It is necessary to use the components of the roads (cFile for example)
  or services (see the creation of a service)
  (1st component) -> (last component)
  tRestrequest -> tRestResponse
  tESBproviderRequest -> tESBResponse

by deploying your jar in deploy, they activate automatically

View solution in original post

3 Replies
Anonymous
Not applicable
Author

more, a possible partial answer to my own question:

the JAR file appears to run if I use the trun command: start bundle-ID i.e.

start 234

I can see the output file is created so the jar file must run.
If I want to run it again, it looks like I have to stop it first before I start it even though the job is a simple one way task, it does not "hang around".

stop bundle-id
start bundle-id

Am I on right track?

I am still looking for good documentation which explains how Karaf and Talend DI/ESB (free versions) work together and how to deploy the Routes and Jobs and Services....

Thanks again
fab_74
Contributor III
Contributor III

in terms of deployment, I think what you have done is correct.
However, in the directory deploy, there must be routes or services
If you use the component of the integration palette, like the tFileInput ..., it is a job.
It is necessary to use the components of the roads (cFile for example)
  or services (see the creation of a service)
  (1st component) -> (last component)
  tRestrequest -> tRestResponse
  tESBproviderRequest -> tESBResponse

by deploying your jar in deploy, they activate automatically

Anonymous
Not applicable
Author

thanks!