[teiid-issues] [JBoss JIRA] Commented: (TEIID-1585) Make payload available in ExecutionFactory.getConnection
Mark Addleman (JIRA)
jira-events at lists.jboss.org
Thu May 12 12:28:31 EDT 2011
[ https://issues.jboss.org/browse/TEIID-1585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12601718#comment-12601718 ]
Mark Addleman commented on TEIID-1585:
--------------------------------------
Another approach: place the payload on a thread local to let the data source (ie Factory type) access to it. this provides for semi-neat separation of concerns
> Make payload available in ExecutionFactory.getConnection
> --------------------------------------------------------
>
> Key: TEIID-1585
> URL: https://issues.jboss.org/browse/TEIID-1585
> Project: Teiid
> Issue Type: Feature Request
> Components: Connector API
> Affects Versions: 7.3
> Reporter: Mark Addleman
> Assignee: Steven Hawkins
>
> We require user-specific connections to our backend datasources. We pass user credentials to the translators using the payload but the payload is not available in the getConnection(Factory f) method. I propose adding public getConnection(Factory f, Serializable payload) method in ExecutionFactory whose default implementation is to call getConnection(Factory f).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the teiid-issues
mailing list