<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/Migration+Guide+From+Teiid+8.x">Migration Guide From Teiid 8.x</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://docs.jboss.org/author/display/~shawkins">Steven Hawkins</a>
    </h4>
        <br/>
                         <h4>Changes (2)</h4>
                                 
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >h2. Configuration Changes <br> <br></td></tr>
            <tr><td class="diff-changed-lines" ><span class="diff-changed-words">h<span class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">4</span><span class="diff-added-chars"style="background-color: #dfd;">3</span>.</span> Security Related <br></td></tr>
            <tr><td class="diff-unchanged" > <br>There is now a single session service.  Session service related properties, prefixed by authentication, are no longer specified per transport.  Instead they now appear as a single sibling to the transports.   <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" > <br>In addition there is a new property trust-all-local that defaults to true and allows unauthenticated access by local pass-through connections over the embedded transport - this was effectively the default behavior of 8.x and before when no security-domain was set on the embedded transport.  You may choose to disallow that type of access by setting the property to false in stead. <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;"> <br>h3. Behavioral <br> <br>h4. widenComparisonToString <br> <br>The resolver&#39;s default behavior was to widen comparisons to string, but 9.0 now defaults org.teiid.widenComparisonToString to false.  For example with this setting as false a comparison such as &quot;timestamp_col &lt; &#39;a&#39;&quot; will produce an exception whereas when set to true it would effectively evaluate &quot;cast(timestamp_col as string) &lt; &#39;a&#39;&quot;.  If you experience resolving errors when a vdb is deployed you should update the vdb if possible before reverting to the old resolving behavior. <br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <p>Teiid strives to maintain consistency between all versions, but when necessary breaking configuration and VDB/sql changes are made - and then typically only for major releases.  This guide expands upon the release notes included in the kit to cover changes since 8.x.</p>

<h2><a name="MigrationGuideFromTeiid8.x-ConfigurationChanges"></a>Configuration Changes</h2>

<h3><a name="MigrationGuideFromTeiid8.x-SecurityRelated"></a>Security Related</h3>

<p>There is now a single session service.  Session service related properties, prefixed by authentication, are no longer specified per transport.  Instead they now appear as a single sibling to the transports.  </p>

<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>Old standalone.xml Configuration</b></div><div class="codeContent panelContent">
<pre class="theme: Confluence; brush: java; gutter: false" style="font-size:12px; font-family: ConfluenceInstalledFont,monospace;">
  &lt;transport name="embedded"/&gt;
  &lt;transport name="odata"&gt;
    &lt;authentication security-domain="teiid-security"/&gt;
  &lt;/transport&gt;
  &lt;transport name="jdbc" protocol="teiid" socket-binding="teiid-jdbc"&gt;
    &lt;authentication security-domain="teiid-security"/&gt;
  &lt;/transport&gt;
  &lt;transport name="odbc" protocol="pg" socket-binding="teiid-odbc"&gt;
    &lt;authentication security-domain="teiid-security"/&gt;
    &lt;ssl mode="disabled"/&gt;
  &lt;/transport&gt;
</pre>
</div></div>

<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>New standalone.xml Configuration</b></div><div class="codeContent panelContent">
<pre class="theme: Confluence; brush: java; gutter: false" style="font-size:12px; font-family: ConfluenceInstalledFont,monospace;">
  &lt;authentication security-domain="teiid-security"/&gt;

  &lt;transport name="embedded"/&gt;
  &lt;transport name="odata"/&gt;
  &lt;transport name="jdbc" protocol="teiid" socket-binding="teiid-jdbc"/&gt;
  &lt;transport name="odbc" protocol="pg" socket-binding="teiid-odbc"&gt;
    &lt;ssl mode="disabled"/&gt;
  &lt;/transport&gt;
</pre>
</div></div>

<p>The default maximum number of sessions was increased to 10000 to accommodate for this change.  </p>

<p>In addition there is a new property trust-all-local that defaults to true and allows unauthenticated access by local pass-through connections over the embedded transport - this was effectively the default behavior of 8.x and before when no security-domain was set on the embedded transport.  You may choose to disallow that type of access by setting the property to false in stead.</p>

<h3><a name="MigrationGuideFromTeiid8.x-Behavioral"></a>Behavioral</h3>

<h4><a name="MigrationGuideFromTeiid8.x-widenComparisonToString"></a>widenComparisonToString</h4>

<p>The resolver's default behavior was to widen comparisons to string, but 9.0 now defaults org.teiid.widenComparisonToString to false.  For example with this setting as false a comparison such as "timestamp_col &lt; 'a'" will produce an exception whereas when set to true it would effectively evaluate "cast(timestamp_col as string) &lt; 'a'".  If you experience resolving errors when a vdb is deployed you should update the vdb if possible before reverting to the old resolving behavior.</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/Migration+Guide+From+Teiid+8.x">View Online</a>
        |
        <a href="https://docs.jboss.org/author/pages/diffpagesbyversion.action?pageId=95813679&revisedVersion=2&originalVersion=1">View Changes</a>
                |
        <a href="https://docs.jboss.org/author/display/TEIID/Migration+Guide+From+Teiid+8.x?showComments=true&amp;showCommentArea=true#addcomment">Add Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>