<appendix id="faq">
  <title>AdminShell Frequently Asked Questions</title>
  <qandaset>
  
    <qandaentry>
      <question>
        <para>Why won't the adminhelp command work in the Console tool?</para>
      </question>
      <answer>
        <para>The Console environment does not understand Shell commands (load, help, adminhelp, etc.), since they are not directly supported by Groovy.  In the Console you should use the equivalent functional form / Groovy, e.g. instead of adminhelp, adminHelp()</para>
      </answer>
    </qandaentry>
     
    <qandaentry>
      <question>
        <para>I have written a very useful script to do XYZ, I would like this to be part of the distribution?</para>
      </question>
      <answer>
        <para>Yes, we would love to hear from users. Please submit the script through the <ulink url="https://jira.jboss.org/jira/browse/TEIID">Teiid JIRA</ulink>, and if this script popular, we will include the script in the scripts library in the following releases.</para>
      </answer>
    </qandaentry>

    <qandaentry>
      <question>
        <para>What is different between "connectAsAdmin()" and "connect()"?</para>
      </question>
      <answer>
        <para>The connectAsAdmin methods create a contextual connection to the AdminAPI of the Teiid Server.  The connect methods return an extension of the Groovy Sql object to be used for Sql calls to the Teiid Server.</para>
      </answer>
    </qandaentry>
    
    <qandaentry>
      <question>
        <para>What does "getAdmin()" call do? Why do I need it?</para>
      </question>
      <answer>
        <para>"getAdmin()" returns this contextual connection object created when you executed "connectAsAdmin()" method.
        This object implements the interface "org.teiid.adminapi.Admin" and AdminShell commands provided are 
        wrappers around this API. Advanced users can use this API directly if the provided wrapper commands do not meet their needs.</para>
      </answer>
    </qandaentry>    

    <qandaentry>
      <question>
        <para>Is IDE support available for writing the scripts?</para>
      </question>
      <answer>
        <para>The Admin Console tool is a light-weight IDE.  Full IDE support is available for Groovy, but requires manual manipulation of the class path and script imports.  See <link linkend="other_environments">using AdminShell methods in other environments</link>.</para>
      </answer>
    </qandaentry>

    <qandaentry>
      <question>
        <para>Is debugging support available?</para>
      </question>
      <answer>
        <para>The interactive shell and console do have built-in support for inspection of the current state.  Performing line based debugging is beyond the scope of this document.</para>
      </answer>
    </qandaentry>
        
  </qandaset>
</appendix>