<!DOCTYPE appendix PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % CustomDTD SYSTEM "../../../../../../docbook/custom.dtd">
%CustomDTD;
]>
<appendix id="other_environments">
	<title>Other Scripting Environments</title>
	<para>The AdminShell methods (named contextual connections, AdminAPI
		wrapper, and help system) have no direct dependencies on Groovy and can be
		used in other scripting languages.</para>
	<para>To use the AdminShell methods in another language, simply import
		the static methods and Admin classes into your script. You will also
		need to ensure that the &lt;adminshell
		dist&gt;/lib/teiid-&versionNumber;-client.jar and &lt;adminshell
		dist&gt;/lib/teiid-adminshell-&versionNumber;.jar are in your class path. The
		snippet below show import statements
		that would work in Java,
		BeanShell, Groovy, etc.</para>
	<programlisting><![CDATA[import static org.teiid.adminshell.AdminShell.*;
import static org.teiid.adminshell.GroovySqlExtensions.*;
import org.teiid.adminapi.*;]]></programlisting>
	<para>Note that the provided shell and console executables
		automatically have the proper class path set and inject the proper
		imports into running scripts. If you wish to use scripts in a
		non-Teiid Groovy environment, you will need to manually add these
		imports and add the admin/client jars to the class path. 
 	</para>
</appendix>