<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><s>VDB Deployment</s></h2>
     <h4>Page <b>removed</b> by             <a href="https://docs.jboss.org/author/display/~van.halbert">Van Halbert</a>
    </h4>
     <br/>
     <div class="notificationGreySide">
         <p>Having built the VDB or using the example dynamic vdb, it must be deployed into the JBoss AS server so it can be accessed using a Teiid JDBC connection.</p>

<p>This example is using the dynamic vdb and requires that it be deployed into the JBoss AS server. There are different ways to deploy a VDB file into JBoss AS 7.1. Below is one simple method which works by copying the VDB file to a certain location under the JBoss AS 7.1.</p>



<ul>
        <li>Copy the <em>"&lt;jboss-install&gt;/docs/teiid/examples/dynamicvdb-portfolio/portfolio-vdb.xml"</em>&nbsp;file into <em>"&lt;jboss-install&gt;/standalone/deployments"</em> directory.</li>
</ul>


<ul>
        <li>Create a marker file (just an empty file) in the same directory as where the VDB file is copied, with same name as VDB file name with ".dodeploy" as extension. For example, for above VDB file create "<em>portfolio-vdb.xml.dodeploy</em>"</li>
</ul>


<ul>
        <li>Then the JBoss AS 7.1 directory scanner will find this file and deploy the VDB file.</li>
</ul>


<div class='panelMacro'><table class='infoMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/author/images/icons/emoticons/information.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td><b>Deploy using CLI</b><br />CLI based deployment is another simple way to deploy a variety of artifacts into JBoss AS 7.1. Execute "jboss-admin.sh" in the "&lt;jboss-install&gt;/bin" directory and connect to the running JBoss AS instance. Then issue the following command:
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="theme: Confluence; brush: java; gutter: false" style="font-size:12px; font-family: ConfluenceInstalledFont,monospace;">
deploy &lt;jboss-install&gt;/docs/teiid/examples/dynamicvdb-portfolio/portfolio-vdb.xml
</pre>
</div></div></td></tr></table></div>

<div class='panelMacro'><table class='warningMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/author/images/icons/emoticons/forbidden.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td>If the data sources are created correctly and VDB deployed correctly, then you will see an informational message in the JBoss AS 7.1 console that the VDB has been deployed and in "active" state. If there are any errors then you will see the VDB not deployed or in an "inactive" state. Find the issues on the console and fix them before you proceed any further.</td></tr></table></div>

<p>If you see the VDB in the "active" state, then go to the next section to learn how to connect to the VDB.</p>
     </div>
</div>
</div>
</div>
</div>
</body>
</html>