Author: rareddy
Date: 2012-04-11 14:52:57 -0400 (Wed, 11 Apr 2012)
New Revision: 3994
Removed:
trunk/build/kits/jboss-as7/domain/
Modified:
trunk/build/kits/jboss-as7/bin/scripts/teiid-domain-mode-install.cli
Log:
TEIID-2000: CLI script for installing Teiid in "HA" profile in domain mode
Modified: trunk/build/kits/jboss-as7/bin/scripts/teiid-domain-mode-install.cli
===================================================================
--- trunk/build/kits/jboss-as7/bin/scripts/teiid-domain-mode-install.cli 2012-04-11
17:45:00 UTC (rev 3993)
+++ trunk/build/kits/jboss-as7/bin/scripts/teiid-domain-mode-install.cli 2012-04-11
18:52:57 UTC (rev 3994)
@@ -1,5 +1,62 @@
connect
-deploy --all-server-groups ../standalone/deployments/teiid-connector-file.rar
-deploy --all-server-groups ../standalone/deployments/teiid-connector-ldap.rar
-deploy --all-server-groups ../standalone/deployments/teiid-connector-salesforce.rar
-deploy --all-server-groups ../standalone/deployments/teiid-connector-ws.rar
+/extension=org.jboss.teiid:add(module=org.jboss.teiid)
+/socket-binding-group=ha-sockets/socket-binding=teiid-jdbc:add(port=31000)
+/socket-binding-group=ha-sockets/socket-binding=teiid-odbc:add(port=35432)
+/server-group=main-server-group:write-attribute(name=profile, value=ha)
+/server-group=main-server-group:write-attribute(name=socket-binding-group,
value=ha-sockets)
+
+/profile=ha/subsystem=infinispan/cache-container=teiid-cache:add(default-cache=result-set)
+/profile=ha/subsystem=infinispan/cache-container=teiid-cache/transport=TRANSPORT:add(lock-timeout=60000)
+/profile=ha/subsystem=infinispan/cache-container=teiid-cache/replicated-cache=resultset:add(mode=SYNC,
batching=true)
+/profile=ha/subsystem=infinispan/cache-container=teiid-cache/replicated-cache=resultset/locking=LOCKING:add(isolation=READ_COMMITTED)
+/profile=ha/subsystem=infinispan/cache-container=teiid-cache/replicated-cache=resultset/expiration=EXPIRATION:add(lifespan=7200000)
+/profile=ha/subsystem=infinispan/cache-container=teiid-cache/replicated-cache=resultset/eviction=EVICTION:add(max-entries=1024,
strategy=LRU)
+
+/profile=ha/subsystem=security/security-domain=teiid-security:add(cache-type=default)
+/profile=ha/subsystem=security/security-domain=teiid-security/authentication=classic:add(login-modules=[{"code"=>"UserRoles",
"flag"=>"required",
"module-options"=>[("userProperties"=>"teiid-security-user.properties"),
("rolesProperties"=>"teiid-security-roles.properties")]}])
+/profile=ha/subsystem=threads/bounded-queue-thread-pool=teiid-async:add(name=teiid-async,
max-threads=4, queue-length=100)
+
+/profile=ha/subsystem=teiid:add(async-thread-pool=teiid-async,
distributed-cache-jgroups-stack=udp, resultset-cache-infinispan-container=teiid-cache)
+/profile=ha/subsystem=teiid/transport=embedded:add()
+/profile=ha/subsystem=teiid/transport=jdbc:add(protocol=teiid, socket-binding=teiid-jdbc,
ssl-mode=login, authentication-security-domain=teiid-security)
+/profile=ha/subsystem=teiid/transport=odbc:add(protocol=pg, socket-binding=teiid-odbc,
authentication-security-domain=teiid-security)
+
+/profile=ha/subsystem=teiid/translator=jdbc-simple:add(module=org.jboss.teiid.translator.jdbc)
+/profile=ha/subsystem=teiid/translator=jdbc-ansi:add(module=org.jboss.teiid.translator.jdbc)
+/profile=ha/subsystem=teiid/translator=access:add(module=org.jboss.teiid.translator.jdbc)
+/profile=ha/subsystem=teiid/translator=db2:add(module=org.jboss.teiid.translator.jdbc)
+/profile=ha/subsystem=teiid/translator=derby:add(module=org.jboss.teiid.translator.jdbc)
+/profile=ha/subsystem=teiid/translator=h2:add(module=org.jboss.teiid.translator.jdbc)
+/profile=ha/subsystem=teiid/translator=hsql:add(module=org.jboss.teiid.translator.jdbc)
+/profile=ha/subsystem=teiid/translator=informix:add(module=org.jboss.teiid.translator.jdbc)
+/profile=ha/subsystem=teiid/translator=metamatrix:add(module=org.jboss.teiid.translator.jdbc)
+/profile=ha/subsystem=teiid/translator=mysql:add(module=org.jboss.teiid.translator.jdbc)
+/profile=ha/subsystem=teiid/translator=mysql5:add(module=org.jboss.teiid.translator.jdbc)
+/profile=ha/subsystem=teiid/translator=oracle:add(module=org.jboss.teiid.translator.jdbc)
+/profile=ha/subsystem=teiid/translator=postgresql:add(module=org.jboss.teiid.translator.jdbc)
+/profile=ha/subsystem=teiid/translator=sqlserver:add(module=org.jboss.teiid.translator.jdbc)
+/profile=ha/subsystem=teiid/translator=sybase:add(module=org.jboss.teiid.translator.jdbc)
+/profile=ha/subsystem=teiid/translator=teiid:add(module=org.jboss.teiid.translator.jdbc)
+/profile=ha/subsystem=teiid/translator=teradata:add(module=org.jboss.teiid.translator.jdbc)
+/profile=ha/subsystem=teiid/translator=modeshape:add(module=org.jboss.teiid.translator.jdbc)
+/profile=ha/subsystem=teiid/translator=ingres:add(module=org.jboss.teiid.translator.jdbc)
+/profile=ha/subsystem=teiid/translator=ingres93:add(module=org.jboss.teiid.translator.jdbc)
+/profile=ha/subsystem=teiid/translator=intersystems-cache:add(module=org.jboss.teiid.translator.jdbc)
+/profile=ha/subsystem=teiid/translator=netezza:add(module=org.jboss.teiid.translator.jdbc)
+/profile=ha/subsystem=teiid/translator=file:add(module=org.jboss.teiid.translator.file)
+/profile=ha/subsystem=teiid/translator=ldap:add(module=org.jboss.teiid.translator.ldap)
+/profile=ha/subsystem=teiid/translator=loopback:add(module=org.jboss.teiid.translator.loopback)
+/profile=ha/subsystem=teiid/translator=olap:add(module=org.jboss.teiid.translator.olap)
+/profile=ha/subsystem=teiid/translator=ws:add(module=org.jboss.teiid.translator.ws)
+/profile=ha/subsystem=teiid/translator=salesforce:add(module=org.jboss.teiid.translator.salesforce)
+/profile=ha/subsystem=teiid/translator=hive:add(module=org.jboss.teiid.translator.hive)
+
+/profile=ha/subsystem=datasources/jdbc-driver=teiid:add(driver-name=teiid,
driver-module-name=org.jboss.teiid.client, driver-class-name=org.teiid.jdbc.TeiidDriver,
driver-xa-datasource-class-name=org.teiid.jdbc.TeiidDataSource)
+/profile=ha/subsystem=datasources/jdbc-driver=teiid-local:add(driver-name=teiid-local,
driver-module-name=org.jboss.teiid, driver-class-name=org.teiid.jdbc.TeiidDriver,
driver-xa-datasource-class-name=org.teiid.jdbc.TeiidDataSource)
+
+deploy --server-groups=main-server-group
../standalone/deployments/teiid-connector-file.rar
+deploy --server-groups=main-server-group
../standalone/deployments/teiid-connector-ldap.rar
+deploy --server-groups=main-server-group
../standalone/deployments/teiid-connector-salesforce.rar
+deploy --server-groups=main-server-group
../standalone/deployments/teiid-connector-ws.rar
+
+/server-group=main-server-group:restart-servers
\ No newline at end of file