You are not logged in.

Unanswered posts



Important! This site has been replaced. All content here is read-only. Please visit our brand-new community at https://community.talend.com/. We look forward to hearing from you there!



#1 2015-05-01 14:18:29

choarau
Member
1 post

choarau said:

Connection to close not realy dynamic within txxxClose components

In 'txxxClose' components the "Component List" use to close the connection can be set dynamicaly.
Unfortunately this parameter's value (the "Code" field) is used as a literal String value in the "JET" code (txxxClose_main.javajet) :


    String connection = ElementParameterParser.getValue(node,"__CONNECTION__");
    String conn = "conn_" + connection;
%>
    java.sql.Connection conn_<%=cid%> = (java.sql.Connection)globalMap.get("<%=conn%>");

If this parameter has been used inside the executed java code context it could have been realy dynamic :

String connection = ElementParameterParser.getValue(node,"__CONNECTION__");

%>
String conn = "conn_" + <%=connection%>;
java.sql.Connection conn_<%=cid%> = (java.sql.Connection)globalMap.get(conn);

So we could use any java code and set the "Code" field with values like this for example : context.parentConnection!=null?context.parentConnection:"thisConnection"

ps : sorry for my English, it is no my mother tongue

Offline

#2 2015-05-05 04:06:00

xdshi
Talend Team


xdshi said:

Re: Connection to close not realy dynamic within txxxClose components

Hi choarau,
Have you already created a work item jira issue on Talend Bug Tracker?

Best regards
Sabrina


What we can do is to make sure that Talend will be your best choice!

Offline

Board footer

Talend Contributor Agreement - Talend Website Privacy Policy