Skip to content

Latest commit

 

History

History

odataservice-as-a-datasource

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
Datasource Level Technologies Prerequisites Description
OData Beginner Teiid, Dynamic VDB, FOREIGN TABLE, OData Translator N/A Demonstrates using the WebService Connector connecting to an OData source and OData Translator to transform OData source to Teiid Foreign Table

What's this

Demonstrates using the WebService Connector connecting to an OData source(http://services.odata.org/Northwind/Northwind.svc/) and using OData Translator to transform OData source to Teiid Foreign Table. Dynamic VDB odataNorthwindservice-vdb.xml be used to define Foreign Table to transform OData source.

The examples use java:/ODataNorthwindDS referenced with OData source(http://services.odata.org/Northwind/Northwind.svc/) as a data source, which will be setup automatically while the examples start running.

Prerequisites

N/A

Dependencies

To add Teiid runtime, admin

<dependency>
    <groupId>org.jboss.teiid</groupId>
    <artifactId>teiid-runtime</artifactId>
    <version>${version.teiid}</version>
</dependency>
<dependency>
    <groupId>org.jboss.teiid</groupId>
    <artifactId>teiid-admin</artifactId>
    <version>${version.teiid}</version>
</dependency>

To add Translators and Resource Adapters

<dependency>
    <groupId>org.jboss.teiid.connectors</groupId>
    <artifactId>translator-odata</artifactId>
    <version>${version.teiid}</version>
</dependency>
<dependency>
    <groupId>org.jboss.teiid.connectors</groupId>
    <artifactId>translator-jdbc</artifactId>
    <version>${version.teiid}</version>
</dependency>		
<dependency>
    <groupId>org.jboss.teiid.connectors</groupId>
    <artifactId>translator-ws</artifactId>
    <version>${version.teiid}</version>
</dependency>		
<dependency>
    <groupId>org.jboss.teiid.connectors</groupId>
    <artifactId>connector-ws</artifactId>
    <version>${version.teiid}</version>
</dependency>

Run

  • Run from Source code

Import source code to a IDE(Eclipse), run TeiidEmbeddedODataServiceDataSource as Java Application.

  • Run from mvn
$ cd teiid-embedded-examples/odataservice-as-a-datasource
$ mvn clean install
$ mvn exec:java