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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Problems with DB connections when deploying ESB jar to ESBSE runtime

Hello World,

 

I have an reproducable problem when setting up the ESB runtime (Karaf) environment into which I want to deploy my Talend ESB jobs.

OS: Windows 10 (_all_ mentioned components are installed / running on this local machine)

Talend Version: Talend Open Studio ESB 7.2.1.20190620_1446

DB Version: MS SQL Server v14.0.1000.169

 

I have got a Talend Job which updates the status of a certain process. It receives (via REST) the ProcessID and the designated target status and returnes a response. All the data lives in the MS SQL Server (living on localhost). Having it run within the Talend ESB Studio, everything works absolutely fine (throwing requests at it via Postman). The job is configured that it stores the statistics and logmessages in the talend stats tables.

 

0683p000009M8Jr.png

 

Trying to now deploy it on Karaf, I am getting errors.

As per the documentation I have installed the JDBC driver in karaf (multiple ones), installed the datasource sqlserver in karaf, changed the datasource alias in the Talend job to ds-sqlserver and deployed the job in Karaf.

0683p000009M8Jw.png

Deploying the job as it is (build type "OSGi Bundle for ESB") in karaf, the log keeps telling me, that it is waiting for dependencies:

Blueprint bundle mczweinull.wstest/0.1.0 is waiting for dependencies [(&(osgi.jndi.service.name=ds-sqlserver)(objectClass=javax.sql.DataSource))]

 

Removing the job-specific DB connection and only having the job log its statistics in the MS SQL Server DB (for which I dont know where to specifiy the data source alias "ds-sqlserver"???) , the log shows execptions:

 

0683p000009M82K.png

 

PLEASE NOTE - when deploying the job without any DB connection, it is installed in Karaf without any issues!! Only when DB connections for either the stats or the app data are included, I am running into problems.

 

Questions:

(1) what am I missing?

(2) how would I be able to create / manage two different DB connections (as the Talend Stats will be stored in a different DB instance and not in the one that stores the application specific data)

(3) how would I be able to specify / manage the execution contexts when making the REST endpoints available in Karaf?

 

Thanks for the time reading through this post 🙂 Any help is greatly appreciated!!

Labels (2)
1 Reply
Anonymous
Not applicable
Author

Hello,

Do you have a very specific reason to stay on JTDS?

It is also recommended to use the MS SQL Server JDBC now as JTDS is not well supported anymore.

Let us know if it works well.

Best regards

Sabrina