-
1. Re: Dynamic VDB with Java UDF not pulling data
tom9729 Mar 21, 2014 7:37 AM (in response to mubasharahmad)Could you also post the non-UDF version that was working?
Should the delegate name be something besides "sample"?
eg.
<translator name="delegate" type="interceptor">
<property name="delegateName" value="oracle" />
</translator>Tom
-
2. Re: Dynamic VDB with Java UDF not pulling data
mubasharahmad Mar 21, 2014 8:37 AM (in response to tom9729)Hi Tom,
Thanks for your reply.
Actually "sample" is just the name of my custom translator which is basically written as a wrapper on oracle.
I am attaching the working vdb file for your reference.
============================ START =============================
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<vdb name="sample" version="1">
<description>Sample Dynamic VDB</description>
<property name="UseConnectorMetadata" value="true" />
<model name="sample" type="VIRTUAL">
<property name="importer.importKeys" value="true"/>
<property name="importer.useFullSchemaName" value="false"/>
<property name="importer.widenUnsignedTypes" value="false"/>
<property name="importer.schemaPattern" value="%"/>
<property name="supports-multi-source-bindings" value="true"/>
<property name="multisource.columnName" value="TEIID_MULTI_DATA_SOURCE_COLUMN"/>
<property name="multisource.addColumn" value="true"/>
<source translator-name="delegate" connection-jndi-name="java:/SAMPLE/1000.1.0" name="SAMPLE" />
</model>
<translator name="delegate" type="interceptor">
<property name="delegateName" value="sample" />
</translator>
</vdb>
===================== END =======================================
Thanks