From Thursday, July, 9, 3:00 PM Pacific,
our Community site will be in
read-only mode
through Sunday, July 12th.
Thank you for your patience.

Karaf and ESB deploy and run - howto?

Highlighted
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!

 


Accepted Solutions
Highlighted
Six 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

View solution in original post


All Replies
Highlighted
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
Highlighted
Six 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

View solution in original post

Highlighted
Seven Stars

Re: Karaf and ESB deploy and run - howto?

thanks!

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

An API-First Approach to Modernizing Applications

Learn how to use an API-First Approach to Modernize your Applications

Watch Now

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read