Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
drosemeyer
Contributor
Contributor

JNDI Problem on migration from TOS 6.4 to TOS 8

Hello,

I am facing a problem upgrading a Talend job from Talend Open Studio 6.4 to Talend Open Studio 8.0.

The job is running in a web application in a JBoss environment.

It accesses an MS SQL Server database via a JNDI connection.

The job runs without problems in TOS 6.4.

After importing using Import Items in TOS 8, the tMSSqlConnection component generates new code that is not generated in TOS 6.4:

   boolean inOSGi = routines.system.BundleUtils.inOSGi();

   if (!(inOSGi && dataSources_tMSSqlConnection_1 != null && context.jndiDataSourceName != null && context.jndiDataSourceName.replaceAll("\\s+","").length() > 0)) {

   ...

inOSGI returns false, which causes that JNDI is not used and connection to database fails.

Is it possible to configure TOS 8 that inOSGI will change to true or that the inOSGI condition ist not used in if statement?

Thanks for help

Dirk

Labels (3)
3 Replies
Anonymous
Not applicable

Hello Dirk,

Did you ever import the routines code BundleUtils to the TOS 8?

if no, please import the routines code to TOS 8 and make sure it's working the same as that in TOS6.4

Best regards

Aiming

drosemeyer
Contributor
Contributor
Author

Hello Aiming,

 

you mean as Code --> Global Routines

or just a library load?

 

Regards Dirk

Anonymous
Not applicable

Hello Dirk,

yes, I mean Code --> Global Routines

Thanks

Aiming