<html>
<head>
    <base href="https://docs.jboss.org/author">
            <link rel="stylesheet" href="/author/s/en/2172/19/5/_/styles/combined.css?spaceKey=TEIID&amp;forWysiwyg=true" type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://docs.jboss.org/author/display/TEIID/Data+Federation+Example">Data Federation Example</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://docs.jboss.org/author/display/~van.halbert">Van Halbert</a>
    </h4>
        <br/>
                         <h4>Changes (0)</h4>
                                 
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-snipped" >...<br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <p>The investor's portfolio example will demonstrate the ability of Teiid to integrate multiple datasources so that a single query can return results from 1 or more of those sources. &nbsp; This data federation ability can make data integration of new sources easier without having to expose any new access details.&nbsp;</p>

<div class='panelMacro'><table class='tipMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/author/images/icons/emoticons/check.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td><font color="#333333"><b>dynamicvdb-datafederation quickstart</b></font><br/>
<font color="#333333">All the code discussed in this tutorial is available in the&nbsp;</font><font color="#005e8f">dynamicvdb-datafederation</font><font color="#333333">&nbsp;quickstart.</font>

<p><font color="#333333">See the README.md for directions to run the quick start.</font></p></td></tr></table></div>
<p>In this example, 2 datasources will be used; &nbsp;Account Information, stored in a H2 database, and Market Data (Stock prices), stored in a CSV text file. &nbsp;The VDB, which we will call DynamicPortfolio, will define a model for each data source; Account and MarketData, respectively. &nbsp;The VDB will be deployed to the Teiid Runtime, thereby, making it accessible to the user application using JDBC. &nbsp; To read about all the options for connecting to your VDB, see the&nbsp;<a href="/author/display/TEIID/Client+Developer%27s+Guide" title="Client Developer&#39;s Guide">Client Developer's Guide</a>.</p>

<p> <span class="image-wrap" style=""><img src="/author/download/attachments/18646204/portfoliodiagram.png?version=1&amp;modificationDate=1351783866000" style="border: 0px solid black" /></span><br/>
When the test query is executed that joins data from the Accounts and MarketData models, Teiid will access both, the relational and non-relational sources, calculate the portfolio values, and return the results.</p>
    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;" class="grey">
                        <a href="https://docs.jboss.org/author/users/removespacenotification.action?spaceKey=TEIID">Stop watching space</a>
            <span style="padding: 0px 5px;">|</span>
                <a href="https://docs.jboss.org/author/users/editmyemailsettings.action">Change email notification preferences</a>
</div>
        <a href="https://docs.jboss.org/author/display/TEIID/Data+Federation+Example">View Online</a>
        |
        <a href="https://docs.jboss.org/author/pages/diffpagesbyversion.action?pageId=18646204&revisedVersion=16&originalVersion=15">View Changes</a>
                |
        <a href="https://docs.jboss.org/author/display/TEIID/Data+Federation+Example?showComments=true&amp;showCommentArea=true#addcomment">Add Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>