-
15. Re: Unable to parse xml
balaji.seshadri Dec 13, 2010 1:41 PM (in response to balaji.seshadri)One more question ,are these functions user defnined(getTextFiles and getFiles) or exist in Teiid common Libraries.
-
16. Re: Unable to parse xml
rareddy Dec 13, 2010 1:45 PM (in response to balaji.seshadri)These procedures are supported by the "file" translator. They are not user defined.
-
17. Re: Unable to parse xml
balaji.seshadri Dec 13, 2010 1:46 PM (in response to rareddy)Why we are declaring them then ?.
We should be able to refer from some Library.
-
18. Re: Unable to parse xml
rareddy Dec 13, 2010 1:53 PM (in response to balaji.seshadri)You are not declaring them, you are using them. By the act of defining a "file" translator in your VDB, you have access to these procedures, should I say "file" translator exposes them. This only expose the files under the directory specified by your "-ds.xml" file.
Yes, you could have defined them as system functions, but we wanted to abstract the "path" information from the query itself, such that you can work with relative paths and move the VDB easily from your development to production with only configuration changes, not code level changes.
Ramesh..
-
19. Re: Unable to parse xml
balaji.seshadri Dec 13, 2010 2:01 PM (in response to rareddy)So is there a way i can import these functions instead of me defining them.
-
20. Re: Unable to parse xml
rareddy Dec 13, 2010 2:23 PM (in response to balaji.seshadri)Actually you are defining them in the Designer because of lack of tooling. Designer does not *yet* support importing metadata from the Teiid translators. In this particular case, user is required to hand model the procedures that are supported by translator to match the capabilities of the translator. The same is true for "ws" translator. When using the Dynamic VDB, you can use the functions but do not have to define them. Designer support is coming, but not sure which release yet.
Ramesh..
-
21. Re: Unable to parse xml
balaji.seshadri Dec 13, 2010 3:12 PM (in response to rareddy)Where can i get list of procedures that i can define to be used with file translator ?
-
22. Re: Unable to parse xml
shawkins Dec 13, 2010 3:18 PM (in response to balaji.seshadri)The reference guide has a section on translators: http://docs.jboss.org/teiid/7.2.0.Final/reference/en-US/html_single/#d0e8284