Seven Stars

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!

 

  • ESB
  • Talend Commandline
Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Five Stars

Re: Karaf and ESB deploy and run - howto?

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

3 REPLIES
Seven Stars

Re: Karaf and ESB deploy and run - howto?

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
Five Stars

Re: Karaf and ESB deploy and run - howto?

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

Seven Stars

Re: Karaf and ESB deploy and run - howto?

thanks!