5 Replies Latest reply on Jun 20, 2018 8:08 AM by shawkins

    VDB Versioning misunderstanding?

    lukyer

      Hi,
      i'm trying to use simple VDB versioning. I'm using just simple XML VDB deploy (placing into deployments dir):

      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>

      <vdb name="test" version="1">

           <connection-type>ANY</connection-type> <!-- probably not necessary? -->

           <model name="test" type="VIRTUAL">

               <metadata type="DDL"><![CDATA[

      CREATE VIEW myview as SELECT 'test';

      ]]> </metadata>

          </model>

      </vdb>

      After deployment I can connect into VDB using JDBC connection string jdbc:teiid:test@mm://127.0.0.1:31000;version=1
      However if raise version number to 2, deploy it again with the same name, i cannot connect to the previous VDB version with mentioned connection string. Response:

       

      13:27:28,446 WARN  [org.teiid.SECURITY] (NIO0)  TEIID40011 Processing exception 'TEIID40046 VDB "test" version "1" does not exist.' for session null.  Exception type org.teiid.client.security.LogonException thrown from org.jboss.teiid//org.teiid.services.SessionServiceImpl.createSession(SessionServiceImpl.java:172).: org.teiid.client.security.LogonException: TEIID40046 VDB "test" version "1" does not exist.

      I have to use new version jdbc:teiid:test@mm://127.0.0.1:31000;version=2


      How can I get working multiple (even older) versions of the same VDB in parallel?

      Thanks.