From teiid-commits at lists.jboss.org Wed Jun 23 16:17:49 2010 Content-Type: multipart/mixed; boundary="===============1898867766337295645==" MIME-Version: 1.0 From: teiid-commits at lists.jboss.org To: teiid-commits at lists.jboss.org Subject: [teiid-commits] teiid SVN: r2288 - trunk/documentation/quick-start-example/src/main/docbook/en-US/content. Date: Wed, 23 Jun 2010 16:17:49 -0400 Message-ID: <201006232017.o5NKHnKC019398@svn01.web.mwc.hst.phx2.redhat.com> --===============1898867766337295645== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: rareddy Date: 2010-06-23 16:17:49 -0400 (Wed, 23 Jun 2010) New Revision: 2288 Modified: trunk/documentation/quick-start-example/src/main/docbook/en-US/content/b= uildvdb.xml trunk/documentation/quick-start-example/src/main/docbook/en-US/content/c= onnect-vdb.xml Log: TEIID-973: converted the quick start to use the Dynamic VDB. Modified: trunk/documentation/quick-start-example/src/main/docbook/en-US/co= ntent/buildvdb.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/documentation/quick-start-example/src/main/docbook/en-US/content/= buildvdb.xml 2010-06-23 18:47:52 UTC (rev 2287) +++ trunk/documentation/quick-start-example/src/main/docbook/en-US/content/= buildvdb.xml 2010-06-23 20:17:49 UTC (rev 2288) @@ -2,65 +2,86 @@ Building a VDB - A VDB can be built with either the Desi= gner tool or through a simple XML file called a dynamic VDB. See th= e dyanmicvdb-portolio for an example dynamic VDB. You can skip the next se= ction if you choose to use a dynamic VDB. - - Using Teiid Designer to build a VDB - - Download Teiid Designer + A VDB can be built with either the Designer tool or through a = + simple XML file called a dynamic VDB. See the "dyanmicvdb-portolio" for= an example dynamic VDB. = + for this example purpose we will use the a dynamic VDB. If you would lik= e to use the = + Designer to build your VDB, check out the Designer examples. If you need= to build any view layers using your source, = + you must use Designer based approach to building the VDB. A sample Desig= ner based VDB is = + available in the "teiid-examples/portfolio/PortfolioModel" directory. + = + + Building Dynamic VDB + This XML file is defines a set of sources that need to treated= as single source by the client application. + Dynamic VDB does not yet allow for the creation of view layers. Belo= w XML file defines "dynamicvdb-portfolio" example + vdb. + portfolio-vdb.xml (copy available in "teiid-examples/dynamicvd= b-portfolio" directory) + + + + A Dynamic VDB = - - - If you would like to skip building your own VDB, you can safely go= to next page and continue with the = - exercise as there is a pre-built VDB available for your convenienc= e in the = - examples/portfolio/PortfolioModel directory of the download. - - - = - - The Teiid Designer project provides a Eclipse based designer tool fo= r this purpose of building a VDB. You can - download Teiid Designer - her= e - Once downloaded, please follow the installation instructions. Start = the Teiid Designer and return here to continue - building the VDB. - - - = - Once you start the Designer, there are several steps you must pe= rform to create a VDB. These steps are = - summarized in the following table. + + + + + = + + + + + + + + + = + + + + + = + ]]> = + = + The XML file is explained below. - - Switch to the Designer Perspective, by opening the "Window->= Open Perspective.." - - - Create new "Model Project", using "File->New->ModelProject"<= /para> - - - Import the Derby database's "account" schema into a source m= odel. - - - Manually create the view model for the "Text File". Create a= Table called "Price" with - "stock" and "price" as column names. In the transformation windo= w add the following SQL - - - Create a view model called "AccountView" - - - In the "AccountView" model, create a virtual table (called a= s Base Table in the menu), and build - the transformation query combining the "Accounts" tables with "P= rice" table - - - In the "AccountView" model, create a virtual procedure calle= d "buyStock", to learn about procedure - language. - - - Create a VDB based on the models created - - - Test the created VDB with some ad-hoc queries inside Designe= r. - - - Export or copy the VDB for use in your application. - + The above XML file defines a "vdb" with name "Dyna= micPortfolio" with version "1" + A "model" XML element represents a schema that bei= ng integrated. This sample + defines two sources, "MarketData" that represents the schema for t= he text file that has the = + stock price information and "Accounts" that represents the "portfo= lio" schema in the Derby database. = + + The "source" element inside the "model" element de= fines name of the source (can be any name), and + name of the translator (defines the type of the source like oracle= , db2, mysql, h2, file, ws etc..) and the = + "connection-jndi-name" defines the source's JNDI name in the JBoss= AS container. + Also note that inside the "model" elements, some "= property" elements are used to define how = + metadata can be imported from source. For more information check o= ut the Reference Guide's Dynamic VDB section. + Note that you need to also create the necessary de= ployment = + files for the data sources (Connection Factories) too. - + = + \ No newline at end of file Modified: trunk/documentation/quick-start-example/src/main/docbook/en-US/co= ntent/connect-vdb.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/documentation/quick-start-example/src/main/docbook/en-US/content/= connect-vdb.xml 2010-06-23 18:47:52 UTC (rev 2287) +++ trunk/documentation/quick-start-example/src/main/docbook/en-US/content/= connect-vdb.xml 2010-06-23 20:17:49 UTC (rev 2288) @@ -33,7 +33,7 @@ jdbc:teiid:<VDB-Name>@mm(s)://<host name>:<= port>;autoCommitTxn=3DDETECT - You can use any of these optional connection properties + Check out Client Developer's guide for all the optional connection p= roperties in your URL. Here is sample code showing how to make JDBC connection. TeiidDataSource source also provides an option to set optional= parameters using the "set" methods on the = - data source look. For all the allowable properties at the = - data = source properties. = + data source look. For all the allowable data source properties chec= k out Client Developer's Guide. = Testing Your Teiid Deployment @@ -95,7 +94,7 @@ = If your application is Web based, you can create data source for y= our VDB using the above and treat it as any other JDBC source using = org.teiid.jdbc.TeiidDataSource and assigning it a JNDI name= . = - Refer to deplo= yment to application server for more information. = + Refer to Client Developer's Guide deployment for more information on cre= ating a DataSource. = "embedded" mode is only available in versions of Teiid up to= 6.2 = --===============1898867766337295645==--