Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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
Hello Aiming,
you mean as Code --> Global Routines
or just a library load?
Regards Dirk
Hello Dirk,
yes, I mean Code --> Global Routines
Thanks
Aiming