teiid SVN: r2254 - trunk/documentation.
by teiid-commits@lists.jboss.org
Author: shawkins
Date: 2010-06-18 15:04:57 -0400 (Fri, 18 Jun 2010)
New Revision: 2254
Removed:
trunk/documentation/salesforce-connector-guide/
Log:
TEIIDDES-473 removing sf guide
14 years, 6 months
teiid SVN: r2253 - trunk/build/assembly/adminshell.
by teiid-commits@lists.jboss.org
Author: shawkins
Date: 2010-06-18 14:28:31 -0400 (Fri, 18 Jun 2010)
New Revision: 2253
Modified:
trunk/build/assembly/adminshell/adminshell-dist.xml
Log:
adding the admin guide to the adminshell dist
Modified: trunk/build/assembly/adminshell/adminshell-dist.xml
===================================================================
--- trunk/build/assembly/adminshell/adminshell-dist.xml 2010-06-18 18:15:47 UTC (rev 2252)
+++ trunk/build/assembly/adminshell/adminshell-dist.xml 2010-06-18 18:28:31 UTC (rev 2253)
@@ -68,7 +68,6 @@
<files>
<file>
<source>target/distribution/teiid-${version}-docs/admin-guide/en-US/pdf/teiid_admin_guide.pdf</source>
- <outputDirectory>teiid-docs</outputDirectory>
</file>
</files>
14 years, 6 months
teiid SVN: r2252 - trunk/build/assembly/adminshell.
by teiid-commits@lists.jboss.org
Author: shawkins
Date: 2010-06-18 14:15:47 -0400 (Fri, 18 Jun 2010)
New Revision: 2252
Modified:
trunk/build/assembly/adminshell/adminshell-dist.xml
Log:
adding the admin guide to the adminshell dist
Modified: trunk/build/assembly/adminshell/adminshell-dist.xml
===================================================================
--- trunk/build/assembly/adminshell/adminshell-dist.xml 2010-06-18 18:04:51 UTC (rev 2251)
+++ trunk/build/assembly/adminshell/adminshell-dist.xml 2010-06-18 18:15:47 UTC (rev 2252)
@@ -64,5 +64,12 @@
</fileSet>
</fileSets>
+
+ <files>
+ <file>
+ <source>target/distribution/teiid-${version}-docs/admin-guide/en-US/pdf/teiid_admin_guide.pdf</source>
+ <outputDirectory>teiid-docs</outputDirectory>
+ </file>
+ </files>
</assembly>
\ No newline at end of file
14 years, 6 months
teiid SVN: r2251 - trunk/documentation/admin-guide/src/main/docbook/en-US/content.
by teiid-commits@lists.jboss.org
Author: shawkins
Date: 2010-06-18 14:04:51 -0400 (Fri, 18 Jun 2010)
New Revision: 2251
Modified:
trunk/documentation/admin-guide/src/main/docbook/en-US/content/installation.xml
Log:
TEIID-315 parameterizing the version number
Modified: trunk/documentation/admin-guide/src/main/docbook/en-US/content/installation.xml
===================================================================
--- trunk/documentation/admin-guide/src/main/docbook/en-US/content/installation.xml 2010-06-18 18:00:40 UTC (rev 2250)
+++ trunk/documentation/admin-guide/src/main/docbook/en-US/content/installation.xml 2010-06-18 18:04:51 UTC (rev 2251)
@@ -5,9 +5,11 @@
]>
<chapter id="installation">
<title>Installation Guide</title>
- <para>Teiid 7.0 installation is entirely different from previous versions. Previously Teiid could be installed
- as a standalone or embedded server. Starting with 7.0 Teiid needs to be installed into an
- existing JBoss AS installation. Teiid does not support the "embedded" mode in &versionNumber; version. ("embedded" will be coming in a future release).
+ <para>Starting with the 7.0 release Teiid needs to be installed into an
+ existing JBoss AS installation, which is entirely different from previous versions.
+ <note>
+ <para>Teiid does not support the "embedded" mode in &versionNumber; version. ("embedded" will be coming in a future release).</para>
+ </note>
</para>
<sect1>
@@ -20,7 +22,7 @@
</listitem>
<listitem>
<para>Download <ulink url="http://www.jboss.org/teiid/downloads.html">Teiid &versionNumber;</ulink>. Unzip the downloaded artifact inside any "profile"
- in the JBoss AS installation. Teiid 7.0 uses a JBoss AS service called the "profile service" that
+ in the JBoss AS installation. Teiid &versionNumber; uses a JBoss AS service called the "profile service" that
is only installed in "default" and "all" profiles, so installing into one of these
profiles is required. The default profile is the typical installation location, for example "<jboss-install>/server/default".
The Teiid runtime directory structure matches JBoss profiles directly - it is just an overlay.
@@ -48,7 +50,7 @@
<title>Directory Structure Explained</title>
<example>
<title>Directory Structure</title>
- <para>This shows the contents of the Teiid 7.0 deployment. The directory
+ <para>This shows the contents of the Teiid &versionNumber; deployment. The directory
structure is exactly the same under any JBoss profile.</para>
<programlisting><![CDATA[teiid
/conf
14 years, 6 months
teiid SVN: r2250 - trunk/documentation/reference/src/main/docbook/en-US/content.
by teiid-commits@lists.jboss.org
Author: shawkins
Date: 2010-06-18 14:00:40 -0400 (Fri, 18 Jun 2010)
New Revision: 2250
Modified:
trunk/documentation/reference/src/main/docbook/en-US/content/translators.xml
Log:
adding a note about the log setting for the ws translator
Modified: trunk/documentation/reference/src/main/docbook/en-US/content/translators.xml
===================================================================
--- trunk/documentation/reference/src/main/docbook/en-US/content/translators.xml 2010-06-18 17:58:01 UTC (rev 2249)
+++ trunk/documentation/reference/src/main/docbook/en-US/content/translators.xml 2010-06-18 18:00:40 UTC (rev 2250)
@@ -689,6 +689,9 @@
</tgroup>
</table>
<para>There are ws importer settings, but it does provide metadata for dynamic vdbs.</para>
+<note>
+<para>Setting the org.teiid.CONNECTOR.WS logging context to detail will show the request/response documents as part of the log.</para>
+</note>
<sect3><title>Usage</title>
<para>The main procedure, invoke, allows for multiple binding, or protocol modes, including HTTP, SOAP11, and SOAP12.
<programlisting>Procedure invoke(binding in STRING, action in STRING, request in XML, endpoint in STRING) returns XML</programlisting>
14 years, 6 months
teiid SVN: r2249 - in trunk: documentation/reference/src/main/docbook/en-US/content and 2 other directories.
by teiid-commits@lists.jboss.org
Author: shawkins
Date: 2010-06-18 13:58:01 -0400 (Fri, 18 Jun 2010)
New Revision: 2249
Modified:
trunk/common-core/src/main/java/org/teiid/core/util/ReaderInputStream.java
trunk/documentation/reference/src/main/docbook/en-US/content/scalar_functions.xml
trunk/engine/src/main/java/org/teiid/query/function/CharsetUtils.java
trunk/engine/src/main/java/org/teiid/query/function/FunctionMethods.java
trunk/engine/src/test/java/org/teiid/query/function/TestFunctionLibrary.java
Log:
TEIID-1021 refining support for clob<->blob conversions. adding validation of binary conversions
Modified: trunk/common-core/src/main/java/org/teiid/core/util/ReaderInputStream.java
===================================================================
--- trunk/common-core/src/main/java/org/teiid/core/util/ReaderInputStream.java 2010-06-18 16:09:32 UTC (rev 2248)
+++ trunk/common-core/src/main/java/org/teiid/core/util/ReaderInputStream.java 2010-06-18 17:58:01 UTC (rev 2249)
@@ -61,16 +61,17 @@
@Override
public int read() throws IOException {
- if (!hasMore) {
- return -1;
- }
while (pos >= out.getCount()) {
+ if (!hasMore) {
+ return -1;
+ }
out.reset();
pos = 0;
int charsRead = reader.read(charBuffer);
if (charsRead == -1) {
+ writer.close();
hasMore = false;
- return -1;
+ continue;
}
writer.write(charBuffer, 0, charsRead);
writer.flush();
Modified: trunk/documentation/reference/src/main/docbook/en-US/content/scalar_functions.xml
===================================================================
--- trunk/documentation/reference/src/main/docbook/en-US/content/scalar_functions.xml 2010-06-18 16:09:32 UTC (rev 2248)
+++ trunk/documentation/reference/src/main/docbook/en-US/content/scalar_functions.xml 2010-06-18 17:58:01 UTC (rev 2249)
@@ -1028,7 +1028,8 @@
<para>TO_CHARS(x, encoding)</para>
</entry>
<entry>
- <para>Return a clob from the blob with the given encoding. BASE64, HEX, and the builtin Java Charset<footnote id="charset"><para>See the <ulink url="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/Charset.html">Charset JavaDoc</ulink></para></footnote> names are valid values for the encoding.</para>
+ <para>Return a clob from the blob with the given encoding.
+ BASE64, HEX, and the builtin Java Charset names are valid values for the encoding.<footnote id="charset"><para>See the <ulink url="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/Charset.html">Charset JavaDoc</ulink> for more on supported Charset names. For charsets, unmappable chars will be replaced with the charset default character. binary formats, such as BASE64, will error in their conversion to bytes is a unrecognizable character is encountered.</para></footnote></para>
</entry>
<entry>
<para>x is a blob, encoding is a string, and returns a clob</para>
@@ -1038,7 +1039,8 @@
<para>TO_BYTES(x, encoding)</para>
</entry>
<entry>
- <para>Return a blob from the clob with the given encoding. BASE64, HEX, and the builtin Java Charset<footnoteref linkend="charset"/> names are valid values for the encoding.</para>
+ <para>Return a blob from the clob with the given encoding.
+ BASE64, HEX, and the builtin Java Charset names are valid values for the encoding.<footnoteref linkend="charset"/></para>
</entry>
<entry>
<para>x in a clob, encoding is a string, and returns a blob</para>
Modified: trunk/engine/src/main/java/org/teiid/query/function/CharsetUtils.java
===================================================================
--- trunk/engine/src/main/java/org/teiid/query/function/CharsetUtils.java 2010-06-18 16:09:32 UTC (rev 2248)
+++ trunk/engine/src/main/java/org/teiid/query/function/CharsetUtils.java 2010-06-18 17:58:01 UTC (rev 2249)
@@ -45,9 +45,10 @@
char[] chars = new char[2];
@Override
- protected void encode(ByteBuffer out) {
+ protected CoderResult encode(ByteBuffer out) {
this.cb.get(chars);
out.put((byte)(Integer.parseInt(new String(chars), 16) & 0xff));
+ return CoderResult.UNDERFLOW;
}
};
@@ -84,8 +85,13 @@
return new FixedEncoder(this, 4, .75f, 1) {
@Override
- protected void encode(ByteBuffer out) {
- out.put(Base64.decode(cb));
+ protected CoderResult encode(ByteBuffer out) {
+ try {
+ out.put(Base64.decode(cb));
+ return CoderResult.UNDERFLOW;
+ } catch (IllegalArgumentException e) {
+ return CoderResult.unmappableForLength(4);
+ }
}
};
@@ -130,14 +136,17 @@
return CoderResult.OVERFLOW;
}
cb.flip();
- encode(out);
+ CoderResult result = encode(out);
+ if (result != CoderResult.UNDERFLOW) {
+ return result;
+ }
cb.clear();
}
}
return CoderResult.UNDERFLOW;
}
- abstract protected void encode(ByteBuffer out);
+ abstract protected CoderResult encode(ByteBuffer out);
@Override
protected CoderResult implFlush(ByteBuffer out) {
Modified: trunk/engine/src/main/java/org/teiid/query/function/FunctionMethods.java
===================================================================
--- trunk/engine/src/main/java/org/teiid/query/function/FunctionMethods.java 2010-06-18 16:09:32 UTC (rev 2248)
+++ trunk/engine/src/main/java/org/teiid/query/function/FunctionMethods.java 2010-06-18 17:58:01 UTC (rev 2249)
@@ -22,6 +22,8 @@
package org.teiid.query.function;
+import java.io.IOException;
+import java.io.InputStream;
import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;
@@ -1265,10 +1267,22 @@
return new ClobType(clob);
}
- public static Blob toBytes(ClobType value, String encoding) {
+ public static Blob toBytes(ClobType value, String encoding) throws IOException {
Charset cs = getCharset(encoding);
ClobInputStreamFactory cisf = new ClobInputStreamFactory(value.getReference());
cisf.setCharset(cs);
+ if (CharsetUtils.BASE64_NAME.equalsIgnoreCase(encoding) || CharsetUtils.HEX_NAME.equalsIgnoreCase(encoding)) {
+ //validate that the binary conversion is possible
+ //TODO: cache the result in a filestore
+ InputStream is = cisf.getInputStream();
+ try {
+ while (is.read() != -1) {
+
+ }
+ } finally {
+ is.close();
+ }
+ }
return new BlobType(new BlobImpl(cisf));
}
Modified: trunk/engine/src/test/java/org/teiid/query/function/TestFunctionLibrary.java
===================================================================
--- trunk/engine/src/test/java/org/teiid/query/function/TestFunctionLibrary.java 2010-06-18 16:09:32 UTC (rev 2248)
+++ trunk/engine/src/test/java/org/teiid/query/function/TestFunctionLibrary.java 2010-06-18 17:58:01 UTC (rev 2249)
@@ -1369,32 +1369,36 @@
assertEquals("<!--comment-->", xml);
}
- @Test public void testEncode() throws Exception {
+ @Test public void testToChars() throws Exception {
Clob result = (Clob)helpInvokeMethod("to_chars", new Class[] {DefaultDataClasses.BLOB, DefaultDataClasses.STRING}, new Object[] { new BlobType(new SerialBlob("hello world".getBytes("ASCII"))), "ASCII" }, null); //$NON-NLS-1$
String string = result.getSubString(1, (int)result.length());
assertEquals("hello world", string);
}
- @Test public void testDecode() throws Exception {
+ @Test public void testToBytes() throws Exception {
Blob result = (Blob)helpInvokeMethod("to_bytes", new Class[] {DefaultDataClasses.CLOB, DefaultDataClasses.STRING}, new Object[] { new ClobType(new SerialClob("hello world".toCharArray())), "UTF32" }, null); //$NON-NLS-1$
assertEquals(44, result.length()); //4 bytes / char
}
- @Test public void testEncode1() throws Exception {
+ @Test public void testToChars1() throws Exception {
Clob result = (Clob)helpInvokeMethod("to_chars", new Class[] {DefaultDataClasses.BLOB, DefaultDataClasses.STRING}, new Object[] { new BlobType(new SerialBlob("hello world".getBytes("ASCII"))), "BASE64" }, null); //$NON-NLS-1$
String string = result.getSubString(1, (int)result.length());
assertEquals("hello world", new String(Base64.decode(string), "ASCII"));
}
- @Test public void testEncode2() throws Exception {
+ @Test public void testToChars2() throws Exception {
Clob result = (Clob)helpInvokeMethod("to_chars", new Class[] {DefaultDataClasses.BLOB, DefaultDataClasses.STRING}, new Object[] { new BlobType(new SerialBlob("hello world".getBytes("ASCII"))), "HEX" }, null); //$NON-NLS-1$
String string = result.getSubString(1, (int)result.length());
assertEquals("68656C6C6F20776F726C64", string);
}
- @Test public void testDecode2() throws Exception {
+ @Test public void testToBytes2() throws Exception {
Blob result = (Blob)helpInvokeMethod("to_bytes", new Class[] {DefaultDataClasses.CLOB, DefaultDataClasses.STRING}, new Object[] { new ClobType(new SerialClob("68656C6C6F20776F726C64".toCharArray())), "HEX" }, null); //$NON-NLS-1$
assertEquals("hello world", new String(ObjectConverterUtil.convertToCharArray(result.getBinaryStream(), -1, "ASCII")));
}
+ @Test(expected=FunctionExecutionException.class) public void testToBytes3() throws Exception {
+ helpInvokeMethod("to_bytes", new Class[] {DefaultDataClasses.CLOB, DefaultDataClasses.STRING}, new Object[] { new ClobType(new SerialClob("a".toCharArray())), "BASE64" }, null); //$NON-NLS-1$
+ }
+
}
14 years, 6 months
teiid SVN: r2248 - in trunk/documentation: quick-start-example and 1 other directory.
by teiid-commits@lists.jboss.org
Author: shawkins
Date: 2010-06-18 12:09:32 -0400 (Fri, 18 Jun 2010)
New Revision: 2248
Modified:
trunk/documentation/admin-guide/
trunk/documentation/quick-start-example/
Log:
adding to svn ignore
Property changes on: trunk/documentation/admin-guide
___________________________________________________________________
Name: svn:ignore
- target
.project
.settings
.classpath
+ target
.project
.settings
.classpath
Legal_Notice.html
Property changes on: trunk/documentation/quick-start-example
___________________________________________________________________
Name: svn:ignore
- target
.classpath
.settings
.project
+ target
.classpath
.settings
.project
Legal_Notice.html
14 years, 6 months
teiid SVN: r2247 - in trunk: documentation/admin-guide/src/main/docbook/en-US and 2 other directories.
by teiid-commits@lists.jboss.org
Author: shawkins
Date: 2010-06-18 11:46:33 -0400 (Fri, 18 Jun 2010)
New Revision: 2247
Added:
trunk/build/kits/adminshell/adminshell-console.bat
trunk/build/kits/adminshell/adminshell-console.sh
trunk/documentation/admin-guide/src/main/docbook/en-US/content/adminshell.xml
Removed:
trunk/build/kits/adminshell/adminconsole.bat
trunk/build/kits/adminshell/adminconsole.sh
trunk/documentation/admin-guide/src/main/docbook/en-US/content/adminshell-introduction.xml
trunk/documentation/admin-guide/src/main/docbook/en-US/content/connection-management.xml
trunk/documentation/admin-guide/src/main/docbook/en-US/content/getting-started.xml
trunk/documentation/admin-guide/src/main/docbook/en-US/content/working-with-scripts.xml
Modified:
trunk/documentation/admin-guide/src/main/docbook/en-US/admin_guide.xml
trunk/documentation/admin-guide/src/main/docbook/en-US/content/admin-console.xml
trunk/documentation/admin-guide/src/main/docbook/en-US/content/appendix-a.xml
trunk/documentation/admin-guide/src/main/docbook/en-US/content/appendix-b.xml
trunk/documentation/admin-guide/src/main/docbook/en-US/content/installation.xml
trunk/documentation/admin-guide/src/main/docbook/en-US/content/logging.xml
trunk/documentation/admin-guide/src/main/docbook/en-US/content/vdb-deployment.xml
trunk/documentation/quick-start-example/src/main/docbook/en-US/content/connect-vdb.xml
trunk/documentation/quick-start-example/src/main/docbook/en-US/content/download.xml
Log:
TEIID-315 editing the admin guide and clarifying the name of the adminshell console tool to not conflict with the admin-console web application.
Deleted: trunk/build/kits/adminshell/adminconsole.bat
===================================================================
--- trunk/build/kits/adminshell/adminconsole.bat 2010-06-18 15:44:49 UTC (rev 2246)
+++ trunk/build/kits/adminshell/adminconsole.bat 2010-06-18 15:46:33 UTC (rev 2247)
@@ -1,79 +0,0 @@
-@ECHO OFF
-@setlocal
-
-@REM JBoss, Home of Professional Open Source.
-@REM Copyright (C) 2008 Red Hat, Inc.
-@REM Licensed to Red Hat, Inc. under one or more contributor
-@REM license agreements. See the copyright.txt file in the
-@REM distribution for a full listing of individual contributors.
-@REM
-@REM This library is free software; you can redistribute it and/or
-@REM modify it under the terms of the GNU Lesser General Public
-@REM License as published by the Free Software Foundation; either
-@REM version 2.1 of the License, or (at your option) any later version.
-@REM
-@REM This library is distributed in the hope that it will be useful,
-@REM but WITHOUT ANY WARRANTY; without even the implied warranty of
-@REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-@REM Lesser General Public License for more details.
-@REM
-@REM You should have received a copy of the GNU Lesser General Public
-@REM License along with this library; if not, write to the Free Software
-@REM Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-@REM 02110-1301 USA.
-
-@REM This assumes it's run from its installation directory. It is also assumed there is a java
-@REM executable defined along the PATH
-
-@if not "%ECHO%" == "" echo %ECHO%
-@if "%OS%" == "Windows_NT" setlocal
-
-if "%OS%" == "Windows_NT" (
- set "DIRNAME=%~dp0%"
-) else (
- set DIRNAME=.\
-)
-
-pushd %DIRNAME%
-if "x%TEIID_HOME%" == "x" (
- set "TEIID_HOME=%CD%"
-)
-popd
-
-set DIRNAME=
-
-if "x%JAVA_HOME%" == "x" (
- set JAVA=java
- echo JAVA_HOME is not set. Unexpected results may occur.
- echo Set JAVA_HOME to the directory of your local JDK to avoid this message.
-) else (
- set "JAVA=%JAVA_HOME%\bin\java"
- if exist "%JAVA_HOME%\lib\tools.jar" (
- set "JAVAC_JAR=%JAVA_HOME%\lib\tools.jar"
- )
-)
-
-set TEIID_CLASSPATH=%TEIID_HOME%\lib\patches\*;%TEIID_HOME%\lib\teiid-adminshell-${pom.version}.jar;%TEIID_HOME%\lib\*;
-
-rem JVM memory allocation pool parameters. Modify as appropriate.
-set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx256m -XX:MaxPermSize=256m
-set JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.config.file=log.properties
-
-echo ===============================================================================
-echo.
-echo Teiid AdminShell Bootstrap Environment
-echo.
-echo TEIID_HOME: %TEIID_HOME%
-echo.
-echo JAVA: %JAVA%
-echo.
-echo JAVA_OPTS: %JAVA_OPTS%
-echo.
-echo CLASSPATH: %TEIID_CLASSPATH%
-echo.
-echo ===============================================================================
-echo.
-
-"%JAVA%" %JAVA_OPTS% ^
- -classpath "%TEIID_CLASSPATH%" ^
- org.teiid.adminshell.GroovyAdminConsole %*
Deleted: trunk/build/kits/adminshell/adminconsole.sh
===================================================================
--- trunk/build/kits/adminshell/adminconsole.sh 2010-06-18 15:44:49 UTC (rev 2246)
+++ trunk/build/kits/adminshell/adminconsole.sh 2010-06-18 15:46:33 UTC (rev 2247)
@@ -1,82 +0,0 @@
-#!/bin/sh
-#
-# JBoss, Home of Professional Open Source.
-# Copyright (C) 2008 Red Hat, Inc.
-# Licensed to Red Hat, Inc. under one or more contributor
-# license agreements. See the copyright.txt file in the
-# distribution for a full listing of individual contributors.
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301 USA.
-
-DIRNAME=`dirname $0`
-
-# OS specific support (must be 'true' or 'false').
-cygwin=false;
-linux=false;
-case "`uname`" in
- CYGWIN*)
- cygwin=true
- ;;
-
- Linux)
- linux=true
- ;;
-esac
-
-# For Cygwin, ensure paths are in UNIX format before anything is touched
-if $cygwin ; then
- [ -n "$TEIID_HOME" ] &&
- TEIID_HOME=`cygpath --unix "$TEIID_HOME"`
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
-fi
-
-# Setup TEIID_HOME
-if [ "x$TEIID_HOME" = "x" ]; then
- # get the full path (without any relative bits)
- TEIID_HOME=`cd $DIRNAME; pwd`
-fi
-export TEIID_HOME
-
-# Setup the JVM
-if [ "x$JAVA" = "x" ]; then
- if [ "x$JAVA_HOME" != "x" ]; then
- JAVA="$JAVA_HOME/bin/java"
- else
- JAVA="java"
- fi
-fi
-
-# JPDA options. Uncomment and modify as appropriate to enable remote debugging.
-# JAVA_OPTS="$JAVA_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
-
-TEIID_CLASSPATH="$TEIID_HOME/lib/patches/*:$TEIID_HOME/lib/teiid-adminshell-${pom.version}.jar:$TEIID_HOME/lib/*"
-JAVA_OPTS="$JAVA_OPTS -Xms128m -Xmx256m -XX:MaxPermSize=256m"
-JAVA_OPTS="$JAVA_OPTS -Djava.util.logging.config.file=log.properties"
-
-# Print the env settings
-echo "======================================================================"
-echo ""
-echo " Teiid AdminShell Bootstrap Environment"
-echo ""
-echo " TEIID_HOME = $TEIID_HOME"
-echo " CLASSPATH = $TEIID_CLASSPATH"
-echo " JAVA = $JAVA"
-echo ""
-echo "======================================================================"
-echo ""
-
-$JAVA $JAVA_OPTS -cp $TEIID_CLASSPATH -Xmx256m org.teiid.adminshell.GroovyAdminConsole $*
\ No newline at end of file
Copied: trunk/build/kits/adminshell/adminshell-console.bat (from rev 2242, trunk/build/kits/adminshell/adminconsole.bat)
===================================================================
--- trunk/build/kits/adminshell/adminshell-console.bat (rev 0)
+++ trunk/build/kits/adminshell/adminshell-console.bat 2010-06-18 15:46:33 UTC (rev 2247)
@@ -0,0 +1,79 @@
+@ECHO OFF
+@setlocal
+
+@REM JBoss, Home of Professional Open Source.
+@REM Copyright (C) 2008 Red Hat, Inc.
+@REM Licensed to Red Hat, Inc. under one or more contributor
+@REM license agreements. See the copyright.txt file in the
+@REM distribution for a full listing of individual contributors.
+@REM
+@REM This library is free software; you can redistribute it and/or
+@REM modify it under the terms of the GNU Lesser General Public
+@REM License as published by the Free Software Foundation; either
+@REM version 2.1 of the License, or (at your option) any later version.
+@REM
+@REM This library is distributed in the hope that it will be useful,
+@REM but WITHOUT ANY WARRANTY; without even the implied warranty of
+@REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+@REM Lesser General Public License for more details.
+@REM
+@REM You should have received a copy of the GNU Lesser General Public
+@REM License along with this library; if not, write to the Free Software
+@REM Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+@REM 02110-1301 USA.
+
+@REM This assumes it's run from its installation directory. It is also assumed there is a java
+@REM executable defined along the PATH
+
+@if not "%ECHO%" == "" echo %ECHO%
+@if "%OS%" == "Windows_NT" setlocal
+
+if "%OS%" == "Windows_NT" (
+ set "DIRNAME=%~dp0%"
+) else (
+ set DIRNAME=.\
+)
+
+pushd %DIRNAME%
+if "x%TEIID_HOME%" == "x" (
+ set "TEIID_HOME=%CD%"
+)
+popd
+
+set DIRNAME=
+
+if "x%JAVA_HOME%" == "x" (
+ set JAVA=java
+ echo JAVA_HOME is not set. Unexpected results may occur.
+ echo Set JAVA_HOME to the directory of your local JDK to avoid this message.
+) else (
+ set "JAVA=%JAVA_HOME%\bin\java"
+ if exist "%JAVA_HOME%\lib\tools.jar" (
+ set "JAVAC_JAR=%JAVA_HOME%\lib\tools.jar"
+ )
+)
+
+set TEIID_CLASSPATH=%TEIID_HOME%\lib\patches\*;%TEIID_HOME%\lib\teiid-adminshell-${pom.version}.jar;%TEIID_HOME%\lib\*;
+
+rem JVM memory allocation pool parameters. Modify as appropriate.
+set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx256m -XX:MaxPermSize=256m
+set JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.config.file=log.properties
+
+echo ===============================================================================
+echo.
+echo Teiid AdminShell Bootstrap Environment
+echo.
+echo TEIID_HOME: %TEIID_HOME%
+echo.
+echo JAVA: %JAVA%
+echo.
+echo JAVA_OPTS: %JAVA_OPTS%
+echo.
+echo CLASSPATH: %TEIID_CLASSPATH%
+echo.
+echo ===============================================================================
+echo.
+
+"%JAVA%" %JAVA_OPTS% ^
+ -classpath "%TEIID_CLASSPATH%" ^
+ org.teiid.adminshell.GroovyAdminConsole %*
Property changes on: trunk/build/kits/adminshell/adminshell-console.bat
___________________________________________________________________
Name: svn:executable
+ *
Copied: trunk/build/kits/adminshell/adminshell-console.sh (from rev 2242, trunk/build/kits/adminshell/adminconsole.sh)
===================================================================
--- trunk/build/kits/adminshell/adminshell-console.sh (rev 0)
+++ trunk/build/kits/adminshell/adminshell-console.sh 2010-06-18 15:46:33 UTC (rev 2247)
@@ -0,0 +1,82 @@
+#!/bin/sh
+#
+# JBoss, Home of Professional Open Source.
+# Copyright (C) 2008 Red Hat, Inc.
+# Licensed to Red Hat, Inc. under one or more contributor
+# license agreements. See the copyright.txt file in the
+# distribution for a full listing of individual contributors.
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301 USA.
+
+DIRNAME=`dirname $0`
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false;
+linux=false;
+case "`uname`" in
+ CYGWIN*)
+ cygwin=true
+ ;;
+
+ Linux)
+ linux=true
+ ;;
+esac
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched
+if $cygwin ; then
+ [ -n "$TEIID_HOME" ] &&
+ TEIID_HOME=`cygpath --unix "$TEIID_HOME"`
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+fi
+
+# Setup TEIID_HOME
+if [ "x$TEIID_HOME" = "x" ]; then
+ # get the full path (without any relative bits)
+ TEIID_HOME=`cd $DIRNAME; pwd`
+fi
+export TEIID_HOME
+
+# Setup the JVM
+if [ "x$JAVA" = "x" ]; then
+ if [ "x$JAVA_HOME" != "x" ]; then
+ JAVA="$JAVA_HOME/bin/java"
+ else
+ JAVA="java"
+ fi
+fi
+
+# JPDA options. Uncomment and modify as appropriate to enable remote debugging.
+# JAVA_OPTS="$JAVA_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
+
+TEIID_CLASSPATH="$TEIID_HOME/lib/patches/*:$TEIID_HOME/lib/teiid-adminshell-${pom.version}.jar:$TEIID_HOME/lib/*"
+JAVA_OPTS="$JAVA_OPTS -Xms128m -Xmx256m -XX:MaxPermSize=256m"
+JAVA_OPTS="$JAVA_OPTS -Djava.util.logging.config.file=log.properties"
+
+# Print the env settings
+echo "======================================================================"
+echo ""
+echo " Teiid AdminShell Bootstrap Environment"
+echo ""
+echo " TEIID_HOME = $TEIID_HOME"
+echo " CLASSPATH = $TEIID_CLASSPATH"
+echo " JAVA = $JAVA"
+echo ""
+echo "======================================================================"
+echo ""
+
+$JAVA $JAVA_OPTS -cp $TEIID_CLASSPATH -Xmx256m org.teiid.adminshell.GroovyAdminConsole $*
\ No newline at end of file
Property changes on: trunk/build/kits/adminshell/adminshell-console.sh
___________________________________________________________________
Name: svn:executable
+ *
Modified: trunk/documentation/admin-guide/src/main/docbook/en-US/admin_guide.xml
===================================================================
--- trunk/documentation/admin-guide/src/main/docbook/en-US/admin_guide.xml 2010-06-18 15:44:49 UTC (rev 2246)
+++ trunk/documentation/admin-guide/src/main/docbook/en-US/admin_guide.xml 2010-06-18 15:46:33 UTC (rev 2247)
@@ -50,10 +50,7 @@
<xi:include href="content/security.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="content/logging.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="content/admin-console.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
- <xi:include href="content/adminshell-introduction.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
- <xi:include href="content/getting-started.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
- <xi:include href="content/working-with-scripts.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
- <xi:include href="content/connection-management.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ <xi:include href="content/adminshell.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="content/appendix-a.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="content/appendix-b.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
Modified: trunk/documentation/admin-guide/src/main/docbook/en-US/content/admin-console.xml
===================================================================
--- trunk/documentation/admin-guide/src/main/docbook/en-US/content/admin-console.xml 2010-06-18 15:44:49 UTC (rev 2246)
+++ trunk/documentation/admin-guide/src/main/docbook/en-US/content/admin-console.xml 2010-06-18 15:46:33 UTC (rev 2247)
@@ -2,10 +2,9 @@
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<chapter id="admin-console">
<title>Teiid Admin Console</title>
- <para>Teiid admin console is a web based administrative and monitoring tool for Teiid.
- This is built using the <ulink url="http://www.jboss.org/embjopr">Embedded JOPR</ulink> library that is built to manage the
- JBoss AS instances. Teiid adds a additional plugin into the Embeeded JOPR program already available in the
- <ulink url="http://www.jboss.org/jbossas">JBoss AS</ulink>, to provide the Teiid specific functionality.</para>
+ <para>The Teiid Admin Console is a web based administrative and monitoring tool for Teiid.
+ Teiid's Admin Console is built using the <ulink url="http://www.jboss.org/embjopr">Embedded JOPR</ulink> library and adds a additional plugin into the Embeeded JOPR program already available in the
+ <ulink url="http://www.jboss.org/jbossas">JBoss AS</ulink>.</para>
<sect1>
<title>What can be monitored and/or configured?</title>
@@ -73,7 +72,7 @@
<sect2 id="vdb_deploy">
<title>Deploying the VDB</title>
<para>VDB archive files created it the Designer Tool or Dynamic VDBs can be deployed into Teiid server using
- this "admin-console" tool.</para>
+ the Admin Console.</para>
<orderedlist>
<listitem> <para>Select the Virtual Database node in the Admin Console tree and click the Add New Resource button.</para> </listitem>
Deleted: trunk/documentation/admin-guide/src/main/docbook/en-US/content/adminshell-introduction.xml
===================================================================
--- trunk/documentation/admin-guide/src/main/docbook/en-US/content/adminshell-introduction.xml 2010-06-18 15:44:49 UTC (rev 2246)
+++ trunk/documentation/admin-guide/src/main/docbook/en-US/content/adminshell-introduction.xml 2010-06-18 15:46:33 UTC (rev 2247)
@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
-<chapter id="adminshell_introduction">
- <title>Introduction to Admin Tools</title>
- <para>
- AdminShell provides scripting based programming environments that enable user to access, monitor and control a Teiid
- Server. The Shell and Console tools are built on ones provide by the Groovy (
- <ulink url="http://groovy.codehaus.org/">http://groovy.codehaus.org/</ulink>
- ) project. The AdminShell tools be used in ad-hoc scripting or to run pre-defined scripts.
- </para>
- <orderedlist>
- <title>AdminShell features:</title>
- <listitem>
- <para>fully functional programming environment with resource flow control and exception
- management. See <ulink url="http://groovy.codehaus.org/">Groovy</ulink> docs for the full power of the language.</para>
- </listitem>
- <listitem>
- <para>quick administrative tool. The user can connect to a running Teiid Server and invoke any of
- the Admin API methods, such as "deployVDB" or "stopConnectionFactory", to control Teiid System.
- Since this can be script driven, these tasks can be automated and re-run at a later time.</para>
- </listitem>
- <listitem>
- <para>simplified data access tool. The user can connect to a VDB, issue any SQL commands, and view the
- results of the query via <ulink url="http://groovy.codehaus.org/Database+features">Groovy Sql</ulink> extensions.</para>
- </listitem>
- <listitem>
- <para>migration tool. This can be used to develop scripts like moving the Virtual Databases
- (VDB), Connection Factories, and Configuration from one development environment to another. This will
- enable users to test and automate their migration scripts before production deployments.</para>
- </listitem>
- <listitem>
- <para>testing tool. The JUnit (
- <ulink url="http://junit.org/">http://junit.org</ulink>
- ) test framework is built in, see <ulink url="http://groovy.codehaus.org/Unit+Testing">Groovy Unit Tests</ulink>. User can write regression tests for checking system health, or data
- integrity that can be used to validate a system functionality automatically instead of manual
- verification by QA personnel.
- </para>
- </listitem>
- </orderedlist>
- <sect1>
- <title>Where can you find AdminShell?</title>
- <para>AdminShell is distributed along with other Teiid downloads under "teiid-{version}-adminshell-dist.zip" name. Download and unzip this
- file to any directory. Once you have unzipped the file, in root directory
- you will find "adminshell" and "adminconsole" executable scripts.</para>
- <para>Windows: Double click or execute "adminshell.cmd"</para>
- <para>*nix: Execute the "adminshell.sh" script</para>
- </sect1>
-</chapter>
\ No newline at end of file
Copied: trunk/documentation/admin-guide/src/main/docbook/en-US/content/adminshell.xml (from rev 2242, trunk/documentation/admin-guide/src/main/docbook/en-US/content/adminshell-introduction.xml)
===================================================================
--- trunk/documentation/admin-guide/src/main/docbook/en-US/content/adminshell.xml (rev 0)
+++ trunk/documentation/admin-guide/src/main/docbook/en-US/content/adminshell.xml 2010-06-18 15:46:33 UTC (rev 2247)
@@ -0,0 +1,278 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE chapter 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;
+]>
+<chapter>
+ <title>AdminShell</title>
+<sect1 id="adminshell_introduction">
+ <title>Introduction</title>
+ <para>
+ The AdminShell tooling provides scripting based programming environments that enable user to access, monitor and control a Teiid
+ Server. Both the command line and graphical console tools are built on functionality provide by the Groovy (
+ <ulink url="http://groovy.codehaus.org/">http://groovy.codehaus.org/</ulink>
+ ) project. The AdminShell tools can be used in ad-hoc scripting mode or to run pre-defined scripts.
+ </para>
+ <orderedlist>
+ <title>AdminShell features:</title>
+ <listitem>
+ <para>fully functional programming environment with resource flow control and exception
+ management. See <ulink url="http://groovy.codehaus.org/">Groovy</ulink> docs for the full power of the language.</para>
+ </listitem>
+ <listitem>
+ <para>quick administrative tool. The user can connect to a running Teiid Server and invoke any of
+ the AdminAPI methods, such as "deployVDB" or "stopConnectionFactory", to control the Teiid System.
+ Since this can be script driven, these tasks can be automated and re-run at a later time.</para>
+ </listitem>
+ <listitem>
+ <para>simplified data access tool. The user can connect to a VDB, issue any SQL commands, and view the
+ results of the query via <ulink url="http://groovy.codehaus.org/Database+features">Groovy Sql</ulink> extensions.</para>
+ </listitem>
+ <listitem>
+ <para>migration tool. This can be used to develop scripts like moving the Virtual Databases
+ (VDB), Connection Factories, and Configuration from one development environment to another. This will
+ enable users to test and automate their migration scripts before production deployments.</para>
+ </listitem>
+ <listitem>
+ <para>testing tool. The JUnit (
+ <ulink url="http://junit.org/">http://junit.org</ulink>
+ ) test framework is built in, see <ulink url="http://groovy.codehaus.org/Unit+Testing">Groovy Unit Tests</ulink>. User can write regression tests for checking system health, or data
+ integrity that can be used to validate a system functionality automatically instead of manual
+ verification by QA personnel.
+ </para>
+ </listitem>
+ </orderedlist>
+ <sect2>
+ <title>Download</title>
+ <para>AdminShell is distributed along with other Teiid downloads under "teiid-&versionNumber;-adminshell-dist.zip" name. Download and unzip this
+ file to any directory. Once you have unzipped the file, in root directory
+ you will find "adminshell" and "adminshell-console" executable scripts to launch the command line and graphical tools respectively.</para>
+ <para>Windows: Double click or execute "adminshell.cmd"</para>
+ <para>*nix: Execute the "adminshell.sh" script</para>
+ </sect2>
+</sect1>
+
+<sect1 id="getting_started">
+ <title>Getting Started</title>
+ <para>
+ To learn the basics of
+ <ulink url="http://groovy.codehaus.org/">Groovy</ulink>
+ take a look at their documents and tutorials on their website.
+ </para>
+ <para>
+ Basic knowledge of the Java programming language and types is required
+ in order to effectively design and develop
+ scripts using the AdminShell. To learn Java language find learning resources
+ at <ulink url="http://java.sun.com/">http://java.sun.com</ulink>.
+ </para>
+ <para>You can learn about the Teiid AdminAPI either using
+ “adminHelp()” function or by using the JavaDocs.</para>
+ <para>AdminShell is a specialized version of Groovy which works in
+ several different modes: interactive shell, graphical console, or script
+ run mode. In interactive shell mode (launched via adminshell), the user can invoke connect to a live
+ Teiid system and issue any ad-hoc commands to control the system. The interactive buffer can be used to
+ develop a script and the interactive session input and output can be
+ captured into a log file, more on this later in the document.</para>
+ <para>In graphical mode (lanched via adminshell-console), the user can develop and run scripts using a text editor that supports syntax highlighting.</para>
+ <para>In the script run mode, the user can execute/play back previously
+ developed scripts. This mode especially useful to automate any testing or to perform any repeated
+ configurations/migrations changes to a Teiid system.</para>
+ <sect2>
+ <title>Essential Rules</title>
+ <para>To use AdminShell successfully, there are some basic syntactical rules to keep in mind.</para>
+ <orderedlist>
+ <listitem>
+ <para>In interactive shell mode, most commands (as seen by the help command) are used to control shell behavior and are not general Groovy scripting constructs. Admin methods will typically be called using functional notation:</para>
+ <programlisting><![CDATA[connectAsAdmin()]]></programlisting>
+ </listitem>
+ <listitem>
+ <para>All commands and functions are case sensitive.</para>
+ </listitem>
+ <listitem>
+ <para>An ending semicolon is optional for Groovy statements.</para>
+ </listitem>
+ <listitem>
+ <para>If a function requires input parameter(s), they should be
+ declared inside "(" and ")". A function may have more than
+ one parameter. String parameters can be wrapped in double or single quotes. Example:</para>
+ <programlisting><![CDATA[
+ connectAsAdmin("mm://localhost:34413", "user", "password")
+ ]]></programlisting>
+ </listitem>
+ <listitem>
+ <para>Other Java methods and classes can be used from your scripts, if the
+ required Java class libraries are already in class path. You may place additional jars in the
+ lib directory to have be automatically part of the class path. An example showing an import:
+ </para>
+ <programlisting><![CDATA[import my.package.*;
+myObject = new MyClass();
+myObject.doSomething();]]></programlisting>
+ </listitem>
+ </orderedlist>
+ <para>To execute the commands and arbitrary script in interactive mode you enter them first
+ and press enter to execute, then enter the next line, so on.</para>
+ <para>To exit the tool in the interactive mode, first disconnect if
+ you are connected to the Teiid
+ system by executing “disconnect();” then type "exit". In the script
+ mode, when execution of the
+ script finishes the tool will exit automatically, however you still have to
+ disconnect from Teiid
+ system in the script.</para>
+ <para>Note: If SSL is turned on the Teiid server, you would need to
+ adjust the connection URL and the client SSL settings as necessary (typically this will only be needed for 2-way SSL).
+ </para>
+ </sect2>
+ <sect2>
+ <title>Help</title>
+ <para>The adminHelp() methods lists all the available administrative API
+ methods in the AdminShell. Please note
+ that none of the Groovy Shell commands or other available function calls will be shown in
+ this list</para>
+ <programlisting><![CDATA[adminHelp();]]></programlisting>
+ <para>To get a specific definition about a method and it's required
+ input parameters, use adminHelp("method")</para>
+ <programlisting><![CDATA[adminHelp("deployVDB");
+
+/*
+ *Deploy a VDB from file
+ */
+void deployVDB(
+ String /* file name */)
+ throws AdminException
+ throws FileNotFoundException]]></programlisting>
+ <para />
+ <para>The sqlHelp() methods lists all Sql extension
+ methods.</para>
+ <programlisting><![CDATA[sqlHelp();]]></programlisting>
+ <para>To get a specific definition about a method and it's required
+ input parameters, use sqlHelp("method")</para>
+ <para />
+ </sect2>
+ <sect2>
+ <title>Basic Commands</title>
+ <para>The list below contains some common commands used in AdminShell.</para>
+ <programlisting><![CDATA[
+println "xxx"; // print something to console
+
+adminHelp(); // shows all the available admin commands;
+
+sql = connect(); // get an extended Groovy Sql connection using connection.properties file
+
+sql.execute(<SQL>); // run any SQL command.
+
+connectAsAdmin(); // connect as admin; no need have the vdb name. SQL commands will not work under this connection
+
+println getConnectionName(); // returns the current connection name
+
+useConnection(<connection name>); // switches to using the given connection settings
+
+disconnect(); // disconnects the current connection in the context
+ ]]></programlisting>
+ </sect2>
+</sect1>
+ <sect1>
+ <title>Executing a script file</title>
+ <para>To execute a script file "foo.groovy" in a directory "some/directory" in the interactive comamnd line tool, execute as
+ following</para>
+ <programlisting><![CDATA[. some/directory/foo.groovy]]></programlisting>
+ <para>"foo.groovy" is read into current context of the shell as if you typed in the whole document. If
+ your script only contained method calls, you can explicitly invoke the call to execute.</para>
+ <para>Full execute syntax may also be used, and is required outside of the interactive command line tool:</para>
+ <programlisting><![CDATA[evaluate("some/directory/foo.groovy" as File) ]]></programlisting>
+ <para>To execute the same file without entering interactive mode, run</para>
+ <programlisting><![CDATA[./adminshell.sh . some/directory/foo.groovy]]></programlisting>
+ <para>Parameters can be passed in as Java System properties. For example</para>
+ <programlisting><![CDATA[./adminshell.sh -Dparam=value . some/directory/foo.groovy]]></programlisting>
+ <para>Inside the script file, you can access these properties using System.getProperty</para>
+ <programlisting><![CDATA[value = System.getProperty(“param”); // will return "value"]]></programlisting>
+ </sect1>
+
+ <sect1>
+ <title>Log File and Recorded Script file</title>
+ <para>During the interactive mode, input is recorded in a history file. This file can be accessed via the up arrow in the interactive shell.
+ </para>
+ <para>User can also capture the commands entered during a interactive session to their own script file by
+ using “startRecording” and “stopRecording” commands. For example,</para>
+ <para />
+ <programlisting><![CDATA[record start directory/filename.txt
+<commands and script ..>
+record stop]]></programlisting>
+ <para>All input and output between the start and stop are captured in the “directory/filename.txt” file.
+ This gives the user an option to capture only certain portions of the interactive session and to later refine a script out of recorded file.</para>
+ <para />
+ </sect1>
+ <sect1>
+ <title>Default Connection Properties</title>
+ <para>The file "connection.properties" in the installation directory of the AdminShell defines the default
+ connection properties with which user can connect to Teiid system. The following properties can be
+ defined using this file</para>
+ <programlisting><![CDATA[
+admin.url = <server host name or ip address>
+admin.name = <user name>
+admin.password = <password>
+
+jdbc.url = <server host name or ip address>
+jdbc.user = <user name>
+jdbc.password = <password>
+ ]]></programlisting>
+ <para>A call to "connect()" or "connectionAsAdmin()" without any input parameters, will connect to
+ the Teiid system using the properties defined in properties file. However, a user can always pass in
+ parameters in the connect method to connect to a same or different server than one mentioned in the
+ “connection.properties”. Look all the all the different connect methods using the “adminHelp()” method. </para>
+ <para>Note that it is not secure to leave the passwords in clear text, as defined above. Please take
+ necessary measures to secure the properties file, or do not use this feature and always pass in password
+ interactively or some other secure way.</para>
+ <para>Note: At any given time user can be actively connected to more than one system or have more than one
+ connection to same system. To manage the connections correctly each connection is created given a unique
+ connection name. To learn more about this look at <link linkend="mutiple_connections">Handling Multiple Connections</link>.</para>
+ <para />
+ </sect1>
+ <sect1 id="mutiple_connections">
+ <title>Handling Multiple Connections</title>
+ <para>Using AdminShell, a user can actively manage more than one connection to a single or multiple Teiid
+ systems. For example, two separate connections can be maintained, one to the development server and one to
+ the integration server at the same time. This is possible because AdminShell supports a feature called named
+ connections.</para>
+ <para>Every time a connection is made, the connection has an explicit or an implicitly assigned name.
+ If another connect command is executed then a new
+ connection is made with a unique name and execution will be switched to use the new connection.
+ The previous connection will be held as it is in its current state, and will not be closed.</para>
+ <para />
+ <para>You can use the following command to find out the current connection's name</para>
+ <programlisting><![CDATA[
+name = getConnectionName();
+ ]]></programlisting>
+ <para>Knowing the names of the connection that user is working with is important to switch the active connection to a previous connection.
+ To switch the active connection, use the following command and supply the name of the connection to be used</para>
+ <para />
+ <programlisting><![CDATA[
+useConnection("name");
+ ]]></programlisting>
+ <para>If user supplies the same name as the active connection as they are currently participating in, then
+ this operation will simply return with out any modifications. There is no limitation the number of
+ simultaneous connections.</para>
+ <para />
+ <para>The following shows an example of using and switching between two connections.</para>
+ <programlisting><![CDATA[// creates a connection
+connectAsAdmin();
+
+//capture the connection name
+conn1 = getConnectionName();
+
+deployVDB("file.vdb")
+
+// creates a second connection
+connectAsAdmin();
+
+conn2 = getConnectionName();
+
+deployVDB("file.vdb")
+
+// switch the connection to "conn1"
+useConnection(conn1);
+
+// close the connection in the "conn1"
+disconnectAll();]]></programlisting>
+ </sect1>
+
+</chapter>
\ No newline at end of file
Modified: trunk/documentation/admin-guide/src/main/docbook/en-US/content/appendix-a.xml
===================================================================
--- trunk/documentation/admin-guide/src/main/docbook/en-US/content/appendix-a.xml 2010-06-18 15:44:49 UTC (rev 2246)
+++ trunk/documentation/admin-guide/src/main/docbook/en-US/content/appendix-a.xml 2010-06-18 15:46:33 UTC (rev 2247)
@@ -1,5 +1,5 @@
<appendix id="faq">
- <title>Frequently Asked Questions</title>
+ <title>AdminShell Frequently Asked Questions</title>
<qandaset>
<qandaentry>
Modified: trunk/documentation/admin-guide/src/main/docbook/en-US/content/appendix-b.xml
===================================================================
--- trunk/documentation/admin-guide/src/main/docbook/en-US/content/appendix-b.xml 2010-06-18 15:44:49 UTC (rev 2246)
+++ trunk/documentation/admin-guide/src/main/docbook/en-US/content/appendix-b.xml 2010-06-18 15:46:33 UTC (rev 2247)
@@ -1,20 +1,22 @@
+<!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 Environments</title>
+ <title>Other Scripting Environments</title>
<para>The AdminShell methods (named contextual connections, AdminAPI
- wrapper, and help system) have no direct dependencies on Groovy and be
+ 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 <admin shell
- dist>/lib/teiid-{version}-client.jar and <admin shell
- dist>/lib/teiid-adminshell-{version}.jar are in your class path. The
+ need to ensure that the <adminshell
+ dist>/lib/teiid-&versionNumber;-client.jar and <adminshell
+ dist>/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 org.teiid.adminapi.*;
- ]]></programlisting>
+ <programlisting><![CDATA[import static org.teiid.adminshell.AdminShell.*;
+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
Deleted: trunk/documentation/admin-guide/src/main/docbook/en-US/content/connection-management.xml
===================================================================
--- trunk/documentation/admin-guide/src/main/docbook/en-US/content/connection-management.xml 2010-06-18 15:44:49 UTC (rev 2246)
+++ trunk/documentation/admin-guide/src/main/docbook/en-US/content/connection-management.xml 2010-06-18 15:46:33 UTC (rev 2247)
@@ -1,81 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
-<chapter id="connection_management">
- <title>Connection Management</title>
- <sect1>
- <title>Default Connection Properties</title>
- <para>The file "connection.properties" in the installation directory of the AdminShell defines the default
- connection properties with which user can connect to Teiid system. The following properties can be
- defined using this file</para>
- <programlisting><![CDATA[
-admin.url = <server host name or ip address>
-admin.name = <user name>
-admin.password = <password>
-
-jdbc.url = <server host name or ip address>
-jdbc.user = <user name>
-jdbc.password = <password>
- ]]></programlisting>
- <para>A call to "connect()" or "connectionAsAdmin()" without any input parameters, will connect to
- the Teiid system using the properties defined in properties file. However, a user can always pass in
- parameters in the connect method to connect to a same or different server than one mentioned in the
- “connection.properties”. Look all the all the different connect methods using the “adminHelp()” method. </para>
- <para>Note that it is not secure to leave the passwords in clear text, as defined above. Please take
- necessary measures to secure the properties file, or do not use this feature and always pass in password
- interactively or some other secure way.</para>
- <para>Note: At any given time user can be actively connected to more than one system or have more than one
- connection to same system. To manage the connections correctly each connection is created given a unique
- connection name. To learn more about this look at <link linkend="mutiple_connections">Handling Multiple Connections</link>.</para>
- <para />
- </sect1>
- <sect1 id="mutiple_connections">
- <title>Handling Multiple Connections</title>
- <para>Using AdminShell, a user can actively manage more than one connection to a single or multiple Teiid
- systems. For example, two separate connections can be maintained, one to the development server and one to
- the integration server at the same time. This is possible because AdminShell supports a feature called named
- connections.</para>
- <para>Every time a connection is made, the connection has an explicit or an implicitly assigned name.
- If another connect command is executed then a new
- connection is made with a unique name and execution will be switched to use the new connection.
- The previous connection will be held as it is in its current state, and will not be closed.</para>
- <para />
- <para>In the interactive mode the name of the connection can found in the command prompt. Also, you could
- use the following command in the interactive and script mode to find out the current connection's name</para>
- <programlisting><![CDATA[
-name = getConnectionName();
- ]]></programlisting>
- <para>Knowing the names of the connection that user is working with is important to switch the active connection to a previous connection.
- To switch the active connection, use the following command and supply the name of the connection to be used</para>
- <para />
- <programlisting><![CDATA[
-useConnection("name");
- ]]></programlisting>
- <para>If user supplies the same name as the active connection as they are currently participating in, then
- this operation will simply return with out any modifications. There is no limitation the number of
- simultaneous connections.</para>
- <para />
- <para>The following shows an example of using and switching between two connections.</para>
- <programlisting><![CDATA[
-// creates a connection
-connectAsAdmin();
-
-//capture the connection name
-conn1 = getConnectionName();
-
-deployVDB("file.vdb")
-
-// creates a second connection
-connectAsAdmin();
-
-conn2 = getConnectionName();
-
-deployVDB("file.vdb")
-
-// switch the connection to "conn1"
-useConnection(conn1);
-
-// close the connection in the "conn1"
-disconnectAll();
- ]]></programlisting>
- </sect1>
-</chapter>
\ No newline at end of file
Deleted: trunk/documentation/admin-guide/src/main/docbook/en-US/content/getting-started.xml
===================================================================
--- trunk/documentation/admin-guide/src/main/docbook/en-US/content/getting-started.xml 2010-06-18 15:44:49 UTC (rev 2246)
+++ trunk/documentation/admin-guide/src/main/docbook/en-US/content/getting-started.xml 2010-06-18 15:46:33 UTC (rev 2247)
@@ -1,138 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
-<chapter id="getting_started">
- <title>Getting Started with AdminShell</title>
- <para>
- To learn the basics of
- <ulink url="http://groovy.codehaus.org/">Groovy</ulink>
- take a look at their documents and tutorials on their website.
- </para>
- <para>
- Basic knowledge of the Java programming language and types is required
- in order to effectively design and develop
- scripts using the AdminShell. To learn Java language find learning resources
- at <ulink url="http://java.sun.com/">http://java.sun.com</ulink>.
- </para>
- <para>You can learn about the Teiid administrative API either using
- “adminHelp()” function or find JavaDoc
- for in the installation directory.</para>
- <para>AdminShell is a specialized version of Groovy which works in
- several different modes: interactive shell, console, or script
- run mode.</para>
- <para>In interactive shell mode (launched via adminshell), the user can invoke connect to a live
- Teiid system and issue any
- ad-hoc commands to control the system. The interactive buffer can be used to
- develop a scipt and the interactive session input and output can be
- captured into a log file, more
- on this later in the document.</para>
- <para>In console mode (lanched via adminconsole), the user can develop and run scripts using a graphical text editor that supports syntax highlighting.</para>
- <para>In the script run mode, the user can execute/play back previously
- developed scripts. This mode especially
- useful to automate any testing or to perform any repeated
- configurations/migrations changes to a Teiid
- system</para>
- <sect1>
- <title>Essential rules to follow in using AdminShell</title>
- <para>To use AdminShell successfully, there are some basic syntactical rules
- you should keep in mind.</para>
- <orderedlist>
- <listitem>
- <para>In interactive mode, most commands (as seen by the help command) are used to control shell behavior and are not general Groovy scripting constructs. Admin methods will typically be called using functional notation:</para>
- <programlisting><![CDATA[
- connectAsAdmin()
- ]]></programlisting>
- </listitem>
- <listitem>
- <para>All commands and functions are case sensitive.</para>
- </listitem>
- <listitem>
- <para>An ending semicolon is optional for Groovy statements.</para>
- </listitem>
- <listitem>
- <para>If a function requires input parameter(s), they should be
- declared inside "(" and ")". A function may have more than
- one parameter. String parameters can be wrapped in double or single quotes. Example:</para>
- <programlisting><![CDATA[
- connectAsAdmin("mm://localhost:34413", "user", "password")
- ]]></programlisting>
- </listitem>
- <listitem>
- <para>Other Java methods and classes can be used from your scripts, if the
- required Java class libraries are already in class path. You may place additional jars in the
- lib directory to have be automatically part of the class path. An example showing an import:
- </para>
- <programlisting><![CDATA[
- import my.package.*;
- myObject = new MyClass();
- myObject.doSomething();
- ]]></programlisting>
- </listitem>
- </orderedlist>
- <para>To execute the commands and arbitrary script in interactive mode you enter them first
- and press enter to execute, then
- enter the next line, so on.</para>
- <para>To exit the tool in the interactive mode, first disconnect if
- you are connected to the Teiid
- system by executing “disconnect();” then type "exit". In the script
- mode, when execution of the
- script finishes the tool will exit automatically, however you still have to
- disconnect from Teiid
- system in the script.</para>
- <para>Note: If SSL is turned on the Teiid server, you would need to
- supply the correct certificates for the connection.
- </para>
- </sect1>
- <sect1>
- <title>Basic commands to get started</title>
- <para>The list below contains some common commands used in AdminShell.</para>
- <programlisting><![CDATA[
-println "xxx"; // print something to console
-
-adminHelp(); // shows all the available admin commands;
-
-sql = connect(); // get an extended Groovy Sql connection using connection.properties file
-
-sql.execute(<SQL>); // run any SQL command.
-
-connectAsAdmin(); // connect as admin; no need have the vdb name. SQL commands will not work under this connection
-
-println getConnectionName(); // returns the current connection name
-
-useConnection(<connection name>); // switches to using the given connection settings
-
-disconnect(); // disconnects the current connection in the context
- ]]></programlisting>
- </sect1>
- <sect1>
- <title>Help</title>
- <para>The adminHelp() methods lists all the available administrative API
- methods in the AdminShell. Please note
- that none of the Groovy Shell commands or other available function calls will be shown in
- this list</para>
- <programlisting><![CDATA[
-adminHelp();
- ]]></programlisting>
- <para>To get a specific definition about a method and it's required
- input parameters, use adminHelp("method")</para>
- <programlisting><![CDATA[
-adminHelp("deployVDB");
-
-/*
- *Deploy a VDB from file
- */
-void deployVDB(
- String /* file name */)
- throws AdminException
- throws FileNotFoundException
- ]]></programlisting>
- <para />
- <para>The sqlHelp() methods lists all Sql extension
- methods.</para>
- <programlisting><![CDATA[
-sqlHelp();
- ]]></programlisting>
- <para>To get a specific definition about a method and it's required
- input parameters, use sqlHelp("method")</para>
- <para />
- </sect1>
-</chapter>
\ No newline at end of file
Modified: trunk/documentation/admin-guide/src/main/docbook/en-US/content/installation.xml
===================================================================
--- trunk/documentation/admin-guide/src/main/docbook/en-US/content/installation.xml 2010-06-18 15:44:49 UTC (rev 2246)
+++ trunk/documentation/admin-guide/src/main/docbook/en-US/content/installation.xml 2010-06-18 15:46:33 UTC (rev 2247)
@@ -1,32 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<!DOCTYPE chapter 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;
+]>
<chapter id="installation">
<title>Installation Guide</title>
<para>Teiid 7.0 installation is entirely different from previous versions. Previously Teiid could be installed
- as a standalone or embedded server. Starting with this release Teiid needs to be installed into an
- existing JBoss AS installation. Teiid does not support the "embedded" mode in 7.0 version. ("embedded" version
- will be coming in a future release soon).
+ as a standalone or embedded server. Starting with 7.0 Teiid needs to be installed into an
+ existing JBoss AS installation. Teiid does not support the "embedded" mode in &versionNumber; version. ("embedded" will be coming in a future release).
</para>
<sect1>
- <title>Installation:</title>
- <para>Here are the steps to follow to install Teiid</para>
+ <title>Installation</title>
<orderedlist numeration="arabic">
+ <para>Steps to install Teiid</para>
<listitem>
<para>Download the <ulink url="http://www.jboss.org/jbossas/downloads.html">JBoss AS 5.1.0</ulink> application server.
Install the server by unzipping into a known location. Ex: /apps/jboss-5.1.0</para>
</listitem>
<listitem>
- <para>Download <ulink url="http://www.jboss.org/teiid/downloads.html">Teiid 7.0</ulink>. Unzip the downloaded artifact inside any "profiles"
- inside the JBoss AS installation. We suggest using either "default" or "all".
- Teiid 7.0 for the administrative purposes uses a service called "profile service" that
- is only installed in "default" and "all" profiles, so installing into one of these
- profiles is required. Ex: /apps/jboss-5.10/server/default</para>
+ <para>Download <ulink url="http://www.jboss.org/teiid/downloads.html">Teiid &versionNumber;</ulink>. Unzip the downloaded artifact inside any "profile"
+ in the JBoss AS installation. Teiid 7.0 uses a JBoss AS service called the "profile service" that
+ is only installed in "default" and "all" profiles, so installing into one of these
+ profiles is required. The default profile is the typical installation location, for example "<jboss-install>/server/default".
+ The Teiid runtime directory structure matches JBoss profiles directly - it is just an overlay.
+ </para>
</listitem>
<listitem>
- <para>Start the JBoss AS server by executing "/apps/jboss-5.1.0/bin/run.sh" if you installed in the
- "default" profile. Other wise use "/apps/jboss-5.1.0/bin/run.sh -c <profilename>"
+ <para>Start the JBoss AS server by executing "<jboss-install>/bin/run.sh" if you installed in the
+ "default" profile. Otherwise use "<jboss-install>/bin/run.sh -c <profilename>"
</para>
</listitem>
@@ -35,7 +38,7 @@
</listitem>
<listitem>
- <para>Users can now connect their JDBC applications to Teiid. If you need help on connecting your application to the
+ <para>Once VDBs have been deployed, users can now connect their JDBC applications to Teiid. If you need help on connecting your application to the
Teiid using JDBC check out the "Client Developer's Guide".
</para>
</listitem>
@@ -43,28 +46,27 @@
</sect1>
<sect1>
<title>Directory Structure Explained</title>
- <para>The below file structure shows the contents of the Teiid 7.0 deployment. This directory
- structure is "exactly" same as what is under any JBoss profile directory structure like "default"</para>
-
- <programlisting><![CDATA[
- teiid
- /conf
- /props
- teiid-security-roles.properties
- teiid-security-users.properties
- jboss-teiid-log4j.xml
- /deploy
- /teiid
- /connectors
- teiid-jboss-beans.xml
- teiid-connector-templates-jboss-beans.xml
- admin-console.war
- /deployers
- /teiid.deployer
- /lib
- /teiid-examples
- ]]></programlisting>
-
+ <example>
+ <title>Directory Structure</title>
+ <para>This shows the contents of the Teiid 7.0 deployment. The directory
+ structure is exactly the same under any JBoss profile.</para>
+ <programlisting><![CDATA[teiid
+ /conf
+ /props
+ teiid-security-roles.properties
+ teiid-security-users.properties
+ jboss-teiid-log4j.xml
+ /deploy
+ /teiid
+ /connectors
+ teiid-jboss-beans.xml
+ teiid-connector-templates-jboss-beans.xml
+ admin-console.war
+ /deployers
+ /teiid.deployer
+ /lib
+ /teiid-examples]]></programlisting>
+ </example>
<sect2>
<title>/deploy/teiid/teiid-jboss-beans.xml</title>
<para>Master configuration file for Teiid system. This file contains its own documentation,
@@ -73,13 +75,20 @@
<sect2>
<title>/deploy/teiid/connectors</title>
- <para>This directory contains all the connector RAR files that are supplied as part of the Teiid installation.</para>
+ <para>This directory contains all the translator JAR and connector RAR files that are supplied as part of the Teiid installation.</para>
</sect2>
<sect2>
<title>/conf/props</title>
- <para> /teiid-security-users.properties</para>
- <para> /teiid-security-roles.properties</para>
+ <itemizedlist>
+ <para>Relevant Files</para>
+ <listitem>
+ <para>/teiid-security-users.properties</para>
+ </listitem>
+ <listitem>
+ <para>/teiid-security-roles.properties</para>
+ </listitem>
+ </itemizedlist>
<para>These files define the allowed users and their defined roles in Teiid using the default security domain. Edit these
files to add uses. If you want to use a different security domain look for details in main configuration file.</para>
</sect2>
@@ -89,7 +98,7 @@
<para>This file contains the Teiid specific logging contexts to be included in the "jboss-log4j.xml" file.
If you need to turn ON or OFF specific logging in Teiid,
then copy the contents of this file into "jboss-log4j.xml" in the
- installation directory. See the Server Extension Guide for more on logging.</para>
+ installation directory. See the Developers Guide for more on customizing logging.</para>
</sect2>
<sect2>
@@ -98,13 +107,8 @@
Teiid's "admin-console", go to http://<host>:<port>/admin-console</para>
</sect2>
- <sect2>
- <title>/deployers/teiid.deployer</title>
- <para>This directory contains all the connector RAR files that are supplied as part of the Teiid installation.</para>
- </sect2>
-
- <sect2>
- <title>/deploy/teiid/connectors</title>
+ <sect2>
+ <title>/deployers/teiid.deployer</title>
<para>This directory contains Teiid runtime specific configuration files and its libraries.
These configuration files define VDB deployers, connector binding deployers etc.
Typically user never need to edit any files in this directory.</para>
@@ -112,8 +116,8 @@
<sect2>
<title>lib</title>
- <para>This directory contains Teiid client libraries. It has the Teiid JDBC driver jar, "teiid-{version}-client.jar",
- and also contains "teiid-hibernate-dialect-{version}.jar" that contains Teiid's Hibernate dialect.</para>
+ <para>This directory contains Teiid client libraries. It has the Teiid JDBC driver jar, "teiid-&versionNumber;-client.jar",
+ and also contains "teiid-hibernate-dialect-&versionNumber;.jar" that contains Teiid's Hibernate dialect.</para>
</sect2>
<sect2>
Modified: trunk/documentation/admin-guide/src/main/docbook/en-US/content/logging.xml
===================================================================
--- trunk/documentation/admin-guide/src/main/docbook/en-US/content/logging.xml 2010-06-18 15:44:49 UTC (rev 2246)
+++ trunk/documentation/admin-guide/src/main/docbook/en-US/content/logging.xml 2010-06-18 15:46:33 UTC (rev 2247)
@@ -178,8 +178,7 @@
configure a separate file appender for the DETAIL logging of the
org.teiid.COMMAND_LOG context. An example of this is shown below and
can also be found in the jboss-log4j.xml distributed with Teiid.
- <programlisting><![CDATA[
- <appender name="COMMAND" class="org.apache.log4j.RollingFileAppender">
+ <programlisting><![CDATA[<appender name="COMMAND" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="log/command.log"/>
<param name="MaxFileSize" value="1000KB"/>
<param name="MaxBackupIndex" value="25"/>
@@ -191,11 +190,9 @@
<category name="org.teiid.COMMAND_LOG">
<priority value="INFO"/>
<appender-ref ref="COMMAND"/>
- </category>
- ]]>
- </programlisting>
+ </category>]]></programlisting>
- See Developer's Guide if the file based logging is not sufficient and would need a custom logging solution.
+ See the Developer's Guide to develop a custom logging solution if file based, or any other built-in Log4j, logging is not sufficient.
</para>
</sect1>
<sect1 id="audit_logging">
@@ -209,7 +206,6 @@
<para>To enable audit logging to an alternative file location,
configure a separate file appender for the DETAIL logging of the
org.teiid.AUDIT_LOG context. An example of this is already in
- the log4j.xml distributed with Teiid. See Developer's Guide if the
- file based logging is not sufficient and would need a custom logging solution.</para>
+ the log4j.xml distributed with Teiid. See the Developer's Guide to develop a custom logging solution if file based, or any other built-in Log4j, logging is not sufficient.</para>
</sect1>
</chapter>
\ No newline at end of file
Modified: trunk/documentation/admin-guide/src/main/docbook/en-US/content/vdb-deployment.xml
===================================================================
--- trunk/documentation/admin-guide/src/main/docbook/en-US/content/vdb-deployment.xml 2010-06-18 15:44:49 UTC (rev 2246)
+++ trunk/documentation/admin-guide/src/main/docbook/en-US/content/vdb-deployment.xml 2010-06-18 15:46:33 UTC (rev 2247)
@@ -5,9 +5,8 @@
<para>
A <ulink url="http://www.jboss.org/teiid/basics/virtualdatabases.html">VDB</ulink>is the primary means to define a
Virtual Database in Teiid. A user can create a VDB using
- <ulink url="http://www.jboss.org/teiiddesigner.html">Teiid Designer</ulink> or follow the instructions in the "reference" guide
- create a "Dynamic VDB" without Designer for data integration purposes. If you do not know what a VDB is,
- then please start with these <ulink url="http://www.jboss.org/teiid/basics/virtualdatabases.html">documents</ulink>
+ <ulink url="http://www.jboss.org/teiiddesigner.html">Teiid Designer</ulink> or follow the instructions in the Reference Guide to
+ create a "Dynamic VDB" without Teiid Designer.
</para>
<sect1>
@@ -15,49 +14,42 @@
<para>Once you have a "VDB" built it can be deployed in Teiid runtime in different ways.</para>
<sect2>
- <title>By Copying the File</title>
+ <title>Direct File Deployment</title>
<para>Copy the VDB file into the "<jboss-install>/server/<profile>/deploy" directory.
Make sure that there are no other VDB files with the same name. If a VDB already exists with
the same name, then this VDB will be replaced with the new VDB. This is the simplest way to deploy a VDB. This is mostly
designed for quick deployment during development, when the Teiid server is available
locally on the developer machine.</para>
</sect2>
+
+ <sect2>
+ <title>Admin Console Deployment (Web)</title>
+ <para>Use the JOPR-based web console configuration system. Check out the JOPR plugin at:</para>
+
+ <programlisting><![CDATA[http://<host>:<port>/admin-console]]></programlisting>
+
+ <para>More details for this can be found in the <link linkend="vdb_deploy">Admin Console VDB deployment section.</link>This is the easiest way
+ to deploy a VDB to a remote server.</para>
+ </sect2>
<sect2>
- <title>By Using Admin API</title>
+ <title>AdminShell Deployment</title>
+ <para>Teiid provides a groovy based AdminShell scripting tool, which can be used to deploy
+ a VDB. Check out the "deployVDB" method. Consult the
+ <link linkend="adminshell">AdminShell documentation</link> for more information. Note that using the AdminShell scripting, you can automate
+ the deployment of artifacts in your environment.</para>
+ </sect2>
+
+ <sect2>
+ <title>Admin API Deployment</title>
<para>The Admin API (look in org.teiid.adminpi.*) provides Java API methods that
lets a user connect to a Teiid runtime and deploy a VDB. If you need to programmatically
deploy a VDB use this method. This method is preferable for OEM users, who are trying to extend the
Teiid's capabilities through their applications.</para>
</sect2>
-
- <sect2>
- <title>By Using Admin Shell</title>
- <para>Teiid provides "groovy" based Admin Shell scripting tool, which can be used to deploy
- a VDB. Check out the "deployVDB" method. Check out more information about <emphasis>Admin Shell</emphasis>
- <link linkend="adminshell_introduction">here</link>. Note that using the AdminShell scripting, you can automate
- the deployment of artifacts in your environment.</para>
- </sect2>
- <sect2>
- <title>By Using Admin-Console (JOPR Based Web tool )</title>
- <para>Use the JOPR-based web console configuration system, which will enable users to connect
- to a running Teiid and provide a way to deploy a VDB. Check out the JOPR plugin at:</para>
-
- <programlisting><![CDATA[
- http://<host>:<port>/admin-console
- ]]></programlisting>
-
- <para>More details for this can be found <link linkend="vdb_deploy">here.</link> This is preferred way
- to deploy a VDB, when the Teiid server is shared among multiple users and/or Teiid Server is in a remote
- location.</para>
- </sect2>
</sect1>
- <para>Option 1 can be used for local development VDB deployment or deployment in a
- manually controlled environment. Options 2, 3 and 4 can be used when your Teiid runtime
- instance is a remote instance or if you need a programmatic way to control your deployment.</para>
-
<sect1>
<title>Deploying VDB Dependencies</title>
<para>Apart from deploying the VDB, the user is also responsible for providing all the necessary
@@ -67,71 +59,73 @@
<para>For example, if you are trying to integrate Oracle and File sources in your VDB, then you are responsible for
providing the JDBC driver for the Oracle source, and any necessary documents and configuration that are needed by the File Translator.</para>
+ <para>Once the VDB and its dependencies are deployed, then client applications can connect using the JDBC API. If there are any errors in the deployment, a connection attempt will not be successful and a message will be logged. You can use the
+ <link linkend="admin-console">admin-console</link> tool or check the log files for errors and correct them before proceeding.</para>
+
<sect2>
- <title>Creating Oracle Data source</title>
+ <title>Creating An Oracle Data Source</title>
<orderedlist>
<listitem> <para>Copy the Oracle JDBC JAR file into "<jboss-install>/server/<profile>/lib" directory </para> </listitem>
<listitem> <para>Create a "data source" to the Oracle instance in the JBoss container. This typically
done by creating "xxx-ds.xml" file and copying this file to the "<jboss-install>/server/%lt;profile>/deploy"
directory. The following shows a "-ds.xml" file template for Oracle. You can also use admin-console to create this data source. </para>
- <programlisting><![CDATA[
- <?xml version="1.0" encoding="UTF-8"?>
- <datasources>
- <xa-datasource>
- <jndi-name>OracleDS</jndi-name>
- <!-- uncomment to enable interleaving <interleaving/> -->
- <isSameRM-override-value>false</isSameRM-override-value>
- <xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
- <xa-datasource-property name="URL">jdbc:oracle:oci8:@tc</xa-datasource-property>
- <xa-datasource-property name="User">scott</xa-datasource-property>
- <xa-datasource-property name="Password">tiger</xa-datasource-property>
- <!-- Uses the pingDatabase method to check a connection is still valid before handing it out from the pool -->
- <!--valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name-->
- <!-- Checks the Oracle error codes and messages for fatal errors -->
- <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
- <!-- Oracles XA datasource cannot reuse a connection outside a transaction once enlisted in a global transaction and vice-versa -->
- <no-tx-separate-pools/>
- <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
- <metadata>
- <type-mapping>Oracle9i</type-mapping>
- </metadata>
- </xa-datasource>
- </datasources>
- ]]></programlisting>
+ <programlisting><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
+<datasources>
+ <xa-datasource>
+ <jndi-name>OracleDS</jndi-name>
+ <!-- uncomment to enable interleaving <interleaving/> -->
+ <isSameRM-override-value>false</isSameRM-override-value>
+ <xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
+ <xa-datasource-property name="URL">jdbc:oracle:oci8:@tc</xa-datasource-property>
+ <xa-datasource-property name="User">scott</xa-datasource-property>
+ <xa-datasource-property name="Password">tiger</xa-datasource-property>
+ <!-- Uses the pingDatabase method to check a connection is still valid before handing it out from the pool -->
+ <!--valid-connection-checker-class-name>
+ org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker
+ </valid-connection-checker-class-name-->
+
+ <!-- Checks the Oracle error codes and messages for fatal errors -->
+ <exception-sorter-class-name>
+ org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter
+ </exception-sorter-class-name>
+
+ <!-- Oracles XA datasource cannot reuse a connection outside a transaction once enlisted in a global transaction and vice-versa -->
+ <no-tx-separate-pools/>
+ <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
+ <metadata>
+ <type-mapping>Oracle9i</type-mapping>
+ </metadata>
+ </xa-datasource>
+</datasources>]]></programlisting>
</listitem>
</orderedlist>
<para>There are templates for all the data sources in the "<jboss-install>/docs/examples/jca" directory.</para>
</sect2>
<sect2>
- <title>Creating File Data source</title>
+ <title>Creating A File Data Source</title>
<para>File data source uses Teiid specific JCA connector. You need to create "-ds.xml" file and copy it to the
- "<jboss-install>/server/%lt;profile>/deploy" directory. The below is template for creating a File based data source</para>
-
- <programlisting><![CDATA[
- <?xml version="1.0" encoding="UTF-8"?>
- <connection-factories>
- <no-tx-connection-factory>
- <jndi-name>text-source</jndi-name>
- <rar-name>connector-file-{version}.rar</rar-name>
- <connection-definition>javax.resource.cci.ConnectionFactory</connection-definition>
- <config-property name="ParentDirectory" type="java.lang.String">path-to-the-directory-of-data-file</config-property>
- <max-pool-size>1</max-pool-size>
- </no-tx-connection-factory>
- </connection-factories>
- ]]></programlisting>
+ "<jboss-install>/server/%lt;profile>/deploy" directory.</para>
+ <example>
+ <title>Template for creating a File based data source</title>
+ <programlisting><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
+<connection-factories>
+ <no-tx-connection-factory>
+ <jndi-name>text-source</jndi-name>
+ <rar-name>connector-file-{version}.rar</rar-name>
+ <connection-definition>javax.resource.cci.ConnectionFactory</connection-definition>
+ <config-property name="ParentDirectory" type="java.lang.String">path-to-the-directory-of-data-file</config-property>
+ <max-pool-size>1</max-pool-size>
+ </no-tx-connection-factory>
+</connection-factories>]]></programlisting></example>
</sect2>
</sect1>
- <para>Once the VDB and its dependencies are deployed, then your client application can connect to the
- deployed VDB using the JDBC API. If there are any errors in the deployment, the connection will not be successful. You can use the
- <link linkend="admin-console">admin-console</link> tool or check the log files for errors and correct them before proceeding.</para>
-
<sect1>
<title>Migrating VDBs from 6.x</title>
<para>VDBs from prior release contain an older configuration file version that is no longer supported.
You can use the migration utility (bin/migrate.sh or bin/migrate.bat) supplied with the
- <link linkend="adminshell_introduction">Admin Shell</link> download
+ <link linkend="adminshell">AdminShell</link> download
to update these VDBs for use with Teiid 7. Note - XML and File based sources from previous releases are changed, so do not work
as is. The VDB models need to be updated for this as these are breaking changes.</para>
</sect1>
Deleted: trunk/documentation/admin-guide/src/main/docbook/en-US/content/working-with-scripts.xml
===================================================================
--- trunk/documentation/admin-guide/src/main/docbook/en-US/content/working-with-scripts.xml 2010-06-18 15:44:49 UTC (rev 2246)
+++ trunk/documentation/admin-guide/src/main/docbook/en-US/content/working-with-scripts.xml 2010-06-18 15:46:33 UTC (rev 2247)
@@ -1,51 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
-<chapter id="working_with_scripts">
- <title>Working with Scripts</title>
- <sect1>
- <title>Executing script file in interactive mode</title>
- <para>To execute a script file "foo.groovy" in a directory "some/directory" in the shell tool, execute as
- following</para>
- <programlisting><![CDATA[
-. some/directory/foo.groovy
- ]]></programlisting>
- <para>"foo.groovy" is read into current context of the shell as if you typed in the whole document. If
- your script only contained method calls, you can explicitly invoke the call to execute.</para>
- <para>Full execute syntax may also be used, and is required outside of the Shell tool:</para>
- <programlisting><![CDATA[
-evaluate("some/directory/foo.groovy" as File)
- ]]></programlisting>
- </sect1>
- <sect1>
- <title>Executing script file in non-interactive mode</title>
- <para>To execute a script file "foo.groovy" in a directory "some/directory" in non-interactive mode, execute as
- following command at the command prompt</para>
- <programlisting><![CDATA[
-adminshell.sh . some/directory/foo.groovy
- ]]></programlisting>
- <para>Parameters can be passed in as Java System properties. For example</para>
- <programlisting><![CDATA[
-adminshell.sh -Dparam=value . some/directory/foo.groovy
- ]]></programlisting>
- <para>Inside the script file, you can access these properties using System.getProperty</para>
- <programlisting><![CDATA[
-value = System.getProperty(“param”); // will return "value"
- ]]></programlisting>
- </sect1>
- <sect1>
- <title>Log File and Recorded Script file</title>
- <para>During the interactive mode, input is recorded in a history file. This file can be accessed via the up arrow in the interactive shell.
- </para>
- <para>User can also capture the commands entered during a interactive session to their own script file by
- using “startRecording” and “stopRecording” commands. For example,</para>
- <para />
- <programlisting><![CDATA[
-record start directory/filename.txt
-<commands and script ..>
-record stop
- ]]></programlisting>
- <para>All input and output between the start and stop are captured in the “directory/filename.txt” file.
- This gives the user an option to capture only certain portions of the interactive session and to later refine a script out of recorded file.</para>
- <para />
- </sect1>
-</chapter>
\ No newline at end of file
Modified: trunk/documentation/quick-start-example/src/main/docbook/en-US/content/connect-vdb.xml
===================================================================
--- trunk/documentation/quick-start-example/src/main/docbook/en-US/content/connect-vdb.xml 2010-06-18 15:44:49 UTC (rev 2246)
+++ trunk/documentation/quick-start-example/src/main/docbook/en-US/content/connect-vdb.xml 2010-06-18 15:46:33 UTC (rev 2247)
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<!DOCTYPE chapter 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;
+]>
<chapter id="OpenConnection">
<title>Connecting to a VDB through JDBC</title>
<para>At this point you have deployed Teiid and your VDB. Now it's time to connect the sample application
@@ -9,7 +12,7 @@
<title>Stand-alone Java Application Deployment</title>
<para>Before you can make a JDBC connection to the Teiid VDB, add the Teiid's driver jar file to your application's classpath</para>
- <programlisting><![CDATA[${jboss-install}/server/${profile}/lib/teiid-${version}-client.jar]]> </programlisting>
+ <programlisting>${jboss-install}/server/${profile}/lib/teiid-&versionNumber;-client.jar</programlisting>
<para>
For a Java application to connect to a JDBC source, it needs a URL, user-id, and password. To
Modified: trunk/documentation/quick-start-example/src/main/docbook/en-US/content/download.xml
===================================================================
--- trunk/documentation/quick-start-example/src/main/docbook/en-US/content/download.xml 2010-06-18 15:44:49 UTC (rev 2246)
+++ trunk/documentation/quick-start-example/src/main/docbook/en-US/content/download.xml 2010-06-18 15:46:33 UTC (rev 2247)
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<!DOCTYPE chapter 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;
+]>
<chapter id="download">
<title>Download</title>
<para>
@@ -12,7 +15,7 @@
<para>Teiid Source - contains all of the source code</para>
</listitem>
<listitem>
- <para>Teiid Adminshell - contains the admin client</para>
+ <para>Teiid AdminShell - contains the admin client</para>
</listitem>
<listitem>
<para>Teiid Runtime - contains the Teiid engine and required 3rd party
@@ -21,11 +24,10 @@
</orderedlist>
<para>
For this Quick Start, download and install <ulink url="http://www.jboss.org/jbossas/downloads.html">JBoss AS 5.1.0</ulink>.
- Then download Teiid runtime and unzip the contents of the Teiid under any of one of the JBoss AS profiles
- like "default" or "all". The default profile is the typical installation location, for example "<jboss-install>/server/default". The Teiid runtime directory structure matches that
- of the JBoss profile directly.
+ Then download the Teiid runtime and unzip the contents under any of the JBoss AS profiles, such as "default" or "all".
+ The default profile is the typical installation location, for example "<jboss-install>/server/default". The Teiid runtime directory structure matches JBoss profiles directly - it is just an overlay.
</para>
- <para>In the "<jboss-install>/server/<profile>/lib" directory, you will find "teiid-${version}-client.jar", which
+ <para>In the "<jboss-install>/server/<profile>/lib" directory, you will find "teiid-&versionNumber;-client.jar", which
is the main client binary jar file for Teiid. This jar file contains the Teiid's JDBC driver and data source classes. </para>
<note>
<para>JBoss AS 5.1 requires <ulink url="http://java.sun.com/javase/downloads">Java 6</ulink> to run.
14 years, 6 months
teiid SVN: r2246 - in trunk: build/assembly and 2 other directories.
by teiid-commits@lists.jboss.org
Author: rareddy
Date: 2010-06-18 11:44:49 -0400 (Fri, 18 Jun 2010)
New Revision: 2246
Added:
trunk/build/assembly/docs.xml
Modified:
trunk/build/assembly/jboss-container/dist.xml
trunk/documentation/pom.xml
trunk/pom.xml
Log:
misc: moving the document building to happen before the kit building, so that we can add the documents to the kit.
Copied: trunk/build/assembly/docs.xml (from rev 2245, trunk/documentation/assembly/docs.xml)
===================================================================
--- trunk/build/assembly/docs.xml (rev 0)
+++ trunk/build/assembly/docs.xml 2010-06-18 15:44:49 UTC (rev 2246)
@@ -0,0 +1,39 @@
+<!--This script builds a JAR for a Teiid Embedded Server Installation -->
+<assembly>
+
+ <id>docs</id>
+
+ <formats>
+ <format>dir</format>
+ </formats>
+
+ <includeBaseDirectory>false</includeBaseDirectory>
+
+ <moduleSets>
+ <moduleSet>
+ <includeSubModules>true</includeSubModules>
+
+ <includes>
+ <include>org.jboss.teiid.documentation:admin-guide</include>
+ <include>org.jboss.teiid.documentation:reference</include>
+ <include>org.jboss.teiid.documentation:developer-guide</include>
+ <include>org.jboss.teiid.documentation:quick-start-example</include>
+ </includes>
+
+ <sources>
+ <includeModuleDirectory>true</includeModuleDirectory>
+ <excludeSubModuleDirectories>false</excludeSubModuleDirectories>
+ <useDefaultExcludes>true</useDefaultExcludes>
+ <fileSets>
+ <fileSet>
+ <directory>./target/docbook/publish</directory>
+ <outputDirectory></outputDirectory>
+ <useDefaultExcludes>true</useDefaultExcludes>
+ </fileSet>
+ </fileSets>
+ </sources>
+
+ </moduleSet>
+ </moduleSets>
+
+</assembly>
\ No newline at end of file
Property changes on: trunk/build/assembly/docs.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/build/assembly/jboss-container/dist.xml
===================================================================
--- trunk/build/assembly/jboss-container/dist.xml 2010-06-18 14:27:29 UTC (rev 2245)
+++ trunk/build/assembly/jboss-container/dist.xml 2010-06-18 15:44:49 UTC (rev 2246)
@@ -39,34 +39,6 @@
</fileSet>
<fileSet>
- <directory>target/distribution/teiid-${version}-docs.dir/admin-guide/en-US/pdf</directory>
- <includes>
- <include>teiid_admin_guide.pdf</include>
- </includes>
- <outputDirectory>teiid-docs</outputDirectory>
- </fileSet>
- <fileSet>
- <directory>target/distribution/teiid-${version}-docs.dir/reference/en-US/pdf</directory>
- <includes>
- <include>teiid_reference.pdf</include>
- </includes>
- <outputDirectory>teiid-docs</outputDirectory>
- </fileSet>
- <fileSet>
- <directory>target/distribution/teiid-${version}-docs.dir/quick-start-example/en-US/pdf</directory>
- <includes>
- <include>quick_start_example.pdf</include>
- </includes>
- <outputDirectory>teiid-docs</outputDirectory>
- </fileSet>
- <fileSet>
- <directory>target/distribution/teiid-${version}-docs.dir/developer-guide/en-US/pdf</directory>
- <includes>
- <include>connector_developer_guide.pdf</include>
- </includes>
- <outputDirectory>teiid-docs</outputDirectory>
- </fileSet>
- <fileSet>
<directory>client/src/main/resources</directory>
<includes>
<include>vdb-deployer.xsd</include>
@@ -75,7 +47,25 @@
</fileSet>
</fileSets>
-
+ <files>
+ <file>
+ <source>target/distribution/teiid-${version}-docs/admin-guide/en-US/pdf/teiid_admin_guide.pdf</source>
+ <outputDirectory>teiid-docs</outputDirectory>
+ </file>
+ <file>
+ <source>target/distribution/teiid-${version}-docs/reference/en-US/pdf/teiid_reference.pdf</source>
+ <outputDirectory>teiid-docs</outputDirectory>
+ </file>
+ <file>
+ <source>target/distribution/teiid-${version}-docs/quick-start-example/en-US/pdf/quick_start_example.pdf</source>
+ <outputDirectory>teiid-docs</outputDirectory>
+ </file>
+ <file>
+ <source>target/distribution/teiid-${version}-docs/developer-guide/en-US/pdf/developer_guide.pdf</source>
+ <outputDirectory>teiid-docs</outputDirectory>
+ </file>
+ </files>
+
<!-- these have external dependent clients like connectors-->
<moduleSets>
Modified: trunk/documentation/pom.xml
===================================================================
--- trunk/documentation/pom.xml 2010-06-18 14:27:29 UTC (rev 2245)
+++ trunk/documentation/pom.xml 2010-06-18 15:44:49 UTC (rev 2246)
@@ -6,7 +6,7 @@
<version>7.0.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
- <groupId>org.jboss.teiid.documentation</groupId>
+ <groupId>org.jboss.teiid</groupId>
<artifactId>documentation</artifactId>
<packaging>pom</packaging>
<name>Documents</name>
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2010-06-18 14:27:29 UTC (rev 2245)
+++ trunk/pom.xml 2010-06-18 15:44:49 UTC (rev 2246)
@@ -77,14 +77,14 @@
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
- <version>2.2-beta-2</version>
+ <version>2.2-beta-5</version>
<configuration>
<descriptors>
<descriptor>build/assembly/src.xml</descriptor>
+ <descriptor>build/assembly/docs.xml</descriptor>
<descriptor>build/assembly/client-jar.xml</descriptor>
<descriptor>build/assembly/jboss-container/dist.xml</descriptor>
- <descriptor>build/assembly/adminshell/adminshell-dist.xml</descriptor>
- <descriptor>documentation/assembly/docs.xml</descriptor>
+ <descriptor>build/assembly/adminshell/adminshell-dist.xml</descriptor>
</descriptors>
<outputDirectory>target/distribution</outputDirectory>
<workDirectory>target/assembly/work</workDirectory>
@@ -106,7 +106,7 @@
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
- <version>2.2-beta-2</version>
+ <version>2.2-beta-5</version>
<configuration>
<descriptors>
<descriptor>build/assembly/client-jar.xml</descriptor>
14 years, 6 months
teiid SVN: r2245 - in trunk/connectors/translator-jdbc/src/main: resources/META-INF and 1 other directory.
by teiid-commits@lists.jboss.org
Author: rareddy
Date: 2010-06-18 10:27:29 -0400 (Fri, 18 Jun 2010)
New Revision: 2245
Modified:
trunk/connectors/translator-jdbc/src/main/java/org/teiid/translator/jdbc/modeshape/ModeShapeExecutionFactory.java
trunk/connectors/translator-jdbc/src/main/resources/META-INF/jboss-beans.xml
Log:
TEIID-1106: adding the code fragment to define the template for the Modeshape translator
Modified: trunk/connectors/translator-jdbc/src/main/java/org/teiid/translator/jdbc/modeshape/ModeShapeExecutionFactory.java
===================================================================
--- trunk/connectors/translator-jdbc/src/main/java/org/teiid/translator/jdbc/modeshape/ModeShapeExecutionFactory.java 2010-06-18 02:57:39 UTC (rev 2244)
+++ trunk/connectors/translator-jdbc/src/main/java/org/teiid/translator/jdbc/modeshape/ModeShapeExecutionFactory.java 2010-06-18 14:27:29 UTC (rev 2245)
@@ -52,13 +52,13 @@
@Translator(name="modeshape")
public class ModeShapeExecutionFactory extends JDBCExecutionFactory {
- private String version = "2.0";
+ private String version = "2.0"; //$NON-NLS-1$
@Override
public void start() throws TranslatorException {
super.start();
- registerFunctionModifier("PATH", new FunctionModifier() {
+ registerFunctionModifier("PATH", new FunctionModifier() { //$NON-NLS-1$
@Override
public List<?> translate(Function function) {
@@ -137,14 +137,14 @@
NamedTable nt = (NamedTable) obj;
List<String> ntlist = new ArrayList<String>(1);
- ntlist.add("[" + nt.getMetadataObject().getNameInSource() + "]");
+ ntlist.add("[" + nt.getMetadataObject().getNameInSource() + "]"); //$NON-NLS-1$ //$NON-NLS-2$
return ntlist;
}
if (obj instanceof ColumnReference) {
ColumnReference elem = (ColumnReference) obj;
List<String> ntlist = new ArrayList<String>(1);
- ntlist.add("[" + elem.getMetadataObject().getNameInSource() + "]");
+ ntlist.add("[" + elem.getMetadataObject().getNameInSource() + "]"); //$NON-NLS-1$ //$NON-NLS-2$
return ntlist;
}
Modified: trunk/connectors/translator-jdbc/src/main/resources/META-INF/jboss-beans.xml
===================================================================
--- trunk/connectors/translator-jdbc/src/main/resources/META-INF/jboss-beans.xml 2010-06-18 02:57:39 UTC (rev 2244)
+++ trunk/connectors/translator-jdbc/src/main/resources/META-INF/jboss-beans.xml 2010-06-18 14:27:29 UTC (rev 2245)
@@ -272,4 +272,20 @@
<parameter class="java.lang.String">teradata</parameter>
</constructor>
</bean>
+
+ <!-- MODESHAPE -->
+ <bean name="translator-modeshape-template" class="org.teiid.templates.TranslatorDeploymentTemplate">
+ <property name="info"><inject bean="translator-modeshape" /> </property>
+ <property name="managedObjectFactory"> <inject bean="ManagedObjectFactory" /> </property>
+ </bean>
+
+ <bean name="translator-modeshape" class="org.teiid.templates.TranslatorTemplateInfo">
+ <constructor factoryMethod="createTemplateInfo">
+ <factory bean="TranslatorDeploymentTemplateInfoFactory" />
+ <parameter class="java.lang.Class">org.teiid.templates.TranslatorTemplateInfo</parameter>
+ <parameter class="java.lang.Class">org.teiid.translator.jdbc.modeshape.ModeShapeExecutionFactory</parameter>
+ <parameter class="java.lang.String">translator-modeshape</parameter>
+ <parameter class="java.lang.String">Modeshape</parameter>
+ </constructor>
+ </bean>
</deployment>
\ No newline at end of file
14 years, 6 months