此内容没有您所选择的语言版本。
3.9. Data Source Deployment
3.9.1. Accumulo Data Sources
| Property | Description | Required? | Default? | 
|---|---|---|---|
| ZooKeeperServerList | 
						A comma-separated list of zoo keeper server locations. Each location can contain an optional port, of the format host:port
					 | 
						True.
					 | 
						None.
					 | 
| Username | 
						Connection User's Name
					 | 
						True.
					 | 
						None.
					 | 
| Password | 
						Connection User's password
					 | 
						True.
					 | 
						None.
					 | 
| InstanceName | 
						Accumulo instance name
					 | 
						True.
					 | 
						None.
					 | 
| Roles | 
						optional visibility for user, supply multiple with comma separated
					 | 
						False.
					 | 
						None.
					 | 
/subsystem=teiid:read-rar-description(rar-name=accumulo)
/subsystem=teiid:read-rar-description(rar-name=accumulo)3.9.2. Cassandra Data Sources
/subsystem=teiid:read-rar-description(rar-name=cassandra)
/subsystem=teiid:read-rar-description(rar-name=cassandra)3.9.3. File Data Source
/subsystem=teiid:read-rar-description(rar-name=file)
/subsystem=teiid:read-rar-description(rar-name=file)3.9.4. Google Spreadsheet Data Sources
| Property | Description | 
|---|---|
| AuthMethod | 
						Method to access Google. This property can be set to OAuth2. If you do so, it is necessary to provide RefreshToken.
					 | 
| SpreadsheetName | 
						Required property with name of the Spreadsheet that is datasource for this connector.
					 | 
| BatchSize | 
						Maximum number of rows that can be fetched at a time. Defaults to 4096.
					 | 
https://accounts.google.com/o/oauth2/auth?scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive+https%3A%2F%2Fspreadsheets.google.com%2Ffeeds&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code&client_id=217138521084.apps.googleusercontent.com
https://accounts.google.com/o/oauth2/auth?scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive+https%3A%2F%2Fspreadsheets.google.com%2Ffeeds&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code&client_id=217138521084.apps.googleusercontent.com
3.9.5. Red Hat JBoss Data Grid Hot Rod Data Sources
3.9.5.1. Red Hat JBoss Data Grid 6.x Configuration
- Minimum requirement: JDG 6.2 - this requires you provide a protobuf definition file and pojo marshaller for the pojo to be cached
- Minimum requirement: JDG 6.6 - this can be used when the pojo has protobuf annotations which trigger the creation of the protobuf definition and pojo marshaller by JDG
| Property Name | Property Template | Description | 
|---|---|---|
| CacheTypeMap | cacheName:className[;pkFieldName[:cacheKeyJavaType]] | For the indicated cache, map the root Java Object class name. Optionally, but required for updates, identify which class attribute is the primary key to the cache. Identify primary key java type when different than class attribute type. | 
- If the pojo is to be used to define the schema, then you should use the protobuf annotations. See JDG Protobuf Annotations in the Custom Fields Indexing with Protobuf section of the Red Hat JBoss Data Grid 7.1 Developer Guide.
- If the protobuf definition and mashaller(s) are to be used, then these should also be packaged in the jar (or a separate jar that is included in the classpath).
- The class should be packaged into a jar so that it can be deployed as a module.
- Deploy the pojo jar as a module in the Red Hat JBoss EAP server.
- Define the "lib" property in the -vdb.xml and assign the correct module name. You can do so using this template:<property name ="lib" value ="{pojo_module_name}"></property><property name ="lib" value ="{pojo_module_name}"></property>Copy to Clipboard Copied! Toggle word wrap Toggle overflow 
| Property Name | Required? | Property Template | Description | 
|---|---|---|---|
| CacheJndiName | No | NA | This is the JNDI name to find the CacheContainer. | 
| RemoteServerList | No | host:port\[;host:port….\] | Specify the host and ports that will be clustered together to access the caches. | 
| HotRodClientPropertiesFile | No | NA | The HotRod properties file for configuring a connection to a remote cache. | 
| Property Name | Required? | Property Template | Description | 
|---|---|---|---|
| ProtobufDefinitionFile | Yes | NA | Path to the Google Protobuf file that is packaged in a jar (here is an example: /quickstart/addressbook.proto) | 
| MessageMarshallers | Yes | marshaller \[,marshaller,..\] | Contains class names mapped to its respective message marshaller (class:marshaller,\[class:marshaller,..\]) that are registered for serialization. | 
| MessageDescriptor | Yes | NA | Message descriptor class name for the root object in cache. | 
| Module | No | NA | JBoss EAP server module where the jar with pojos is located. | 
| Property Name | Required? | Description | 
|---|---|---|
| StagingCacheName | Yes | Cache name for the staging cache used in materialization | 
| AliasCacheName | Yes | Cache name for the alias cache used in tracking aliases of the caches used in materialization. | 
3.9.5.2. Red Hat JBoss Data Grid 7.x Configuration
| Property Name | Required? | Description | 
|---|---|---|
| RemoteServerList | Yes | A comma separated list of server locations. Each location can contain an optional port, of the format host:port. | 
| UserName | No | If remote server is secured, this property used as username to log in. | 
| Password | No | If remote server is secured, this property used as password to log in. | 
| SaslMechanism | No | If remote server is secured, this property defines the type of security. Allowed values are "CRAM-MD5", "DIGEST-MD5", "PLAIN", "EXTERNAL". "EXTERNAL" is when certificate based security at use, all others use username/password. | 
| AuthenticationRealm | No | Realm to use for authentication. | 
| AuthenticationServerName | No | Infinispan server name where the Authentication is handled. | 
| TrustStoreFileName | No | When "EXTERNAL" SaslMechnism used, use this property to define truststore. Alternatively JAVA system property "javax.net.ssl.trustStore" can also be defined instead. | 
| TrustStorePassword | No | When "EXTERNAL" SaslMechnism used, use this property to define truststore password. Alternatively JAVA system property "javax.net.ssl.trustStorePassword" can also be defined instead. | 
| KeyStoreFileName | No | When "EXTERNAL" SaslMechnism used, use this property to define keystore. Alternatively JAVA system property "javax.net.ssl.keyStore" can also be defined instead. | 
| KeyStorePassword | No | When "EXTERNAL" SaslMechnism used, use this property to define keystore password. Alternatively JAVA system property "javax.net.ssl.keyStorePassword" can also be defined instead. | 
/subsystem=teiid:read-rar-description(rar-name=jdghotrod)
/subsystem=teiid:read-rar-description(rar-name=jdghotrod)3.9.6. JDBC Data Sources
3.9.6.1. JDBC Data Sources
EAP_HOME/docs/teiid/datasources directory. A complete description how a data source can be added into JBoss EAP is also described here. Here are two different ways to create a datasource:
	ojdbc6.jar file: deploy /path/to/ojdbc6.jar
	Note
ojdbc6.jar to the EAP_HOME/standalone/deployments directory, to automatically deploy without using the CLI tool.
		/subsystem=datasources/data-source=oracle-ds:add(jndi-name=java:/OracleDS, driver-name=ojdbc6.jar, connection-url=jdbc:oracle:thin:{host}:1521:orcl,user-name={user}, password={password}) 
/subsystem=datasources/data-source=oracle-ds:enable
/subsystem=datasources/data-source=oracle-ds:add(jndi-name=java:/OracleDS, driver-name=ojdbc6.jar, connection-url=jdbc:oracle:thin:{host}:1521:orcl,user-name={user}, password={password}) 
/subsystem=datasources/data-source=oracle-ds:enable3.9.6.2. Configuring JDBC Data Sources
- Install (or deploy) the JDBC JAR driver file.
- Create (or configure) it as a data source in JBoss EAP.
Note
Important
3.9.6.3. Example Configuration
EAP_HOME/docs/teiid/datasources/ directory.
	Note
3.9.6.4. Install a JDBC Driver with the Management CLI
Procedure 3.5. Install a JDBC Driver with the Management CLI
- Start the Management CLI:EAP_HOME/bin/jboss-cli.sh
- Enter theconnectcommand.
- Enter thedeploy PATH/FILE.jarcommand:deploy ojdbc6.jar
- Enter thequitcommand.
Before your application can connect to a JDBC datasource, your datasource vendor's JDBC drivers need to be installed in a location where JBoss EAP 6 can use them. JBoss EAP 6 allows you to deploy these drivers like any other deployment. This means that you can deploy them across multiple servers in a server group, if you use a managed domain.
Before performing this task, you need to meet the following prerequisites:
- Download the JDBC driver from your database vendor.
Note
Procedure 3.6. Modify the JDBC Driver JAR
- Change to, or create, an empty temporary directory.
- Create a META-INF subdirectory.
- Create a META-INF/services subdirectory.
- Create a META-INF/services/java.sql.Driver file, which contains one line indicating the fully-qualified class name of the JDBC driver.
- Use the JAR command-line tool to update the JAR like this:jar \-uf jdbc-driver.jar META-INF/services/java.sql.Driver jar \-uf jdbc-driver.jar META-INF/services/java.sql.DriverCopy to Clipboard Copied! Toggle word wrap Toggle overflow 
- If you use a managed domain, deploy the JAR file to a server group. Otherwise, deploy it to your server. See the Deploy with the Management Console section of the Administration and Configuration Guide for JBoss EAP 6 for more information.
The JDBC driver is deployed, and is available for your applications to use.
This topic covers the steps required to create a non-XA datasource, using either the Management Console or the Management CLI.
Prerequisites
- The JBoss EAP 6 server must be running.
Note
Note
Procedure 3.7. Create a Datasource using either the Management CLI or the Management Console
- Management CLI - Launch the CLI tool and connect to your server.
- Run the following Management CLI command to create a non-XA datasource, configuring the variables as appropriate:Note The value for DRIVER_NAME depends on the number of classes listed in the/META-INF/services/java.sql.Driverfile located in the JDBC driver JAR. If there is only one class, the value is the name of the JAR. If there are multiple classes, the value is the name of the JAR + driverClassName + "_" + majorVersion +"_" + minorVersion. Failure to do so will result in the following error being logged:JBAS014775: New missing/unsatisfied dependencies JBAS014775: New missing/unsatisfied dependenciesCopy to Clipboard Copied! Toggle word wrap Toggle overflow For example, the DRIVER_NAME value required for the MySQL 5.1.31 driver, ismysql-connector-java-5.1.31-bin.jarcom.mysql.jdbc.Driver_5_1.data-source add --name=DATASOURCE_NAME --jndi-name=JNDI_NAME --driver-name=DRIVER_NAME --connection-url=CONNECTION_URL data-source add --name=DATASOURCE_NAME --jndi-name=JNDI_NAME --driver-name=DRIVER_NAME --connection-url=CONNECTION_URLCopy to Clipboard Copied! Toggle word wrap Toggle overflow 
- Enable the datasource:data-source enable --name=DATASOURCE_NAME data-source enable --name=DATASOURCE_NAMECopy to Clipboard Copied! Toggle word wrap Toggle overflow 
 
- Management Console - Login to the Management Console.
- Navigate to the Datasources panel in the Management Console - Select the Configuration tab from the top of the console.
- For Domain mode only, select a profile from the drop-down box in the top left.
- Expand the menu on the left of the console, then expand the menu.
- Select from the menu on the left of the console.
 
- Create a new datasource - Click at the top of the Datasources panel.
- Enter the new datasource attributes in the Create Datasource wizard and proceed with the button.
- Enter the JDBC driver details in the Create Datasource wizard and click to continue.
- Enter the connection settings in the Create Datasource wizard.
- Click the button to test the connection to the datasource and verify the settings are correct.
- Click to finish
 
 
 
			The non-XA datasource has been added to the server. It is now visible in either the standalone.xml or domain.xml file, as well as the management interfaces.
		
This topic covers the steps required to create an XA datasource, using either the Management Console or the Management CLI.
Note
Procedure 3.8. Create an XA Datasource, Using Either the Management CLI or the Management Console
- Management CLI - Run the following Management CLI command to create an XA datasource, configuring the variables as appropriate:Note The value for DRIVER_NAME depends on the number of classes listed in the/META-INF/services/java.sql.Driverfile located in the JDBC driver JAR. If there is only one class, the value is the name of the JAR. If there are multiple classes, the value is the name of the JAR + driverClassName + "_" + majorVersion +"_" + minorVersion. Failure to do so will result in the following error being logged:JBAS014775: New missing/unsatisfied dependencies JBAS014775: New missing/unsatisfied dependenciesCopy to Clipboard Copied! Toggle word wrap Toggle overflow For example, the DRIVER_NAME value required for the MySQL 5.1.31 driver, ismysql-connector-java-5.1.31-bin.jarcom.mysql.jdbc.Driver_5_1.xa-data-source add --name=XA_DATASOURCE_NAME --jndi-name=JNDI_NAME --driver-name=DRIVER_NAME --xa-datasource-class=XA_DATASOURCE_CLASS xa-data-source add --name=XA_DATASOURCE_NAME --jndi-name=JNDI_NAME --driver-name=DRIVER_NAME --xa-datasource-class=XA_DATASOURCE_CLASSCopy to Clipboard Copied! Toggle word wrap Toggle overflow 
- Configure the XA datasource properties - Set the server name Run the following command to configure the server name for the host:- /subsystem=datasources/xa-data-source=XA_DATASOURCE_NAME/xa-datasource-properties=ServerName:add(value=HOSTNAME) - /subsystem=datasources/xa-data-source=XA_DATASOURCE_NAME/xa-datasource-properties=ServerName:add(value=HOSTNAME)- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
- Set the database name Run the following command to configure the database name:- /subsystem=datasources/xa-data-source=XA_DATASOURCE_NAME/xa-datasource-properties=DatabaseName:add(value=DATABASE_NAME) - /subsystem=datasources/xa-data-source=XA_DATASOURCE_NAME/xa-datasource-properties=DatabaseName:add(value=DATABASE_NAME)- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
 
- Enable the datasource:xa-data-source enable --name=XA_DATASOURCE_NAME xa-data-source enable --name=XA_DATASOURCE_NAMECopy to Clipboard Copied! Toggle word wrap Toggle overflow 
 
- Management Console - Navigate to the Datasources panel in the Management Console - Select the Configuration tab from the top of the console.
- For Domain mode only, select a profile from the drop-down box at the top left.
- Expand the menu on the left of the console, then expand the menu.
- Select .
 
- Select the XA Datasource tab.
- Create a new XA datasource - Click .
- Enter the new XA datasource attributes in the Create XA Datasource wizard and click .
- Enter the JDBC driver details in the Create XA Datasource wizard and click .
- Enter the XA properties and click .
- Enter the connection settings in the Create XA Datasource wizard.
- Click the button to test the connection to the XA datasource and verify the settings are correct.
- Click to finish
 
 
 
			The XA datasource has been added to the server. It is now visible in either the standalone.xml or domain.xml file, as well as the management interfaces.
		
3.9.6.8. Datasource Parameters
| Parameter | Description | 
|---|---|
| jndi-name | The unique JNDI name for the datasource. | 
| pool-name | The name of the management pool for the datasource. | 
| enabled | Whether or not the datasource is enabled. | 
| use-java-context | 
						Whether to bind the datasource to global JNDI.
					 | 
| spy | 
						Enable  spyfunctionality on the JDBC layer. This logs all JDBC traffic to the datasource. Note that the logging categoryjboss.jdbc.spymust also be set to the log levelDEBUGin the logging subsystem. | 
| use-ccm | Enable the cached connection manager. | 
| new-connection-sql | A SQL statement which executes when the connection is added to the connection pool. | 
| transaction-isolation | 
						One of the following:
					 
 | 
| url-selector-strategy-class-name | A class that implements interface org.jboss.jca.adapters.jdbc.URLSelectorStrategy. | 
| security | 
						Contains child elements which are security settings. See Table 3.13, “Security parameters”.
					 | 
| validation | 
						Contains child elements which are validation settings. See Table 3.14, “Validation parameters”.
					 | 
| timeout | 
						Contains child elements which are timeout settings. See Table 3.15, “Timeout parameters”.
					 | 
| statement | 
						Contains child elements which are statement settings. See Table 3.16, “Statement parameters”.
					 | 
| Parameter | Description | 
|---|---|
| jta | Enable JTA integration for non-XA datasources. Does not apply to XA datasources. | 
| connection-url | The JDBC driver connection URL. | 
| driver-class | The fully-qualified name of the JDBC driver class. | 
| connection-property | 
						Arbitrary connection properties passed to the method  Driver.connect(url,props). Each connection-property specifies a string name/value pair. The property name comes from the name, and the value comes from the element content. | 
| pool | 
						Contains child elements which are pooling settings. See Table 3.11, “Pool parameters common to non-XA and XA datasources”.
					 | 
| url-delimiter | 
						The delimiter for URLs in a connection-url for High Availability (HA) clustered databases.
					 | 
| Parameter | Description | 
|---|---|
| xa-datasource-property | 
						A property to assign to implementation class  XADataSource. Specified by name=value. If a setter method exists, in the formatsetName, the property is set by calling a setter method in the format ofsetName(value). | 
| xa-datasource-class | 
						The fully-qualified name of the implementation class  javax.sql.XADataSource. | 
| driver | 
						A unique reference to the class loader module which contains the JDBC driver. The accepted format is driverName#majorVersion.minorVersion.
					 | 
| xa-pool | 
						Contains child elements which are pooling settings. See Table 3.11, “Pool parameters common to non-XA and XA datasources” and Table 3.12, “XA pool parameters”.
					 | 
| recovery | 
						Contains child elements which are recovery settings. See Table 3.17, “Recovery parameters”.
					 | 
| Parameter | Description | 
|---|---|
| min-pool-size | The minimum number of connections a pool holds. | 
| max-pool-size | The maximum number of connections a pool can hold. | 
| prefill | Whether to try to prefill the connection pool. An empty element denotes a truevalue. The default isfalse. | 
| use-strict-min | Whether the idle connection scan should strictly stop marking for closure of any further connections, once the min-pool-sizehas been reached. The default value isfalse. | 
| flush-strategy | 
						Whether the pool is flushed in the case of an error. Valid values are:
					 
 
						The default is  FailingConnectionOnly. | 
| allow-multiple-users | Specifies if multiple users will access the datasource through the getConnection(user, password) method, and whether the internal pool type accounts for this behavior. | 
| Parameter | Description | 
|---|---|
| is-same-rm-override | Whether the javax.transaction.xa.XAResource.isSameRM(XAResource)class returnstrueorfalse. | 
| interleaving | Whether to enable interleaving for XA connection factories. | 
| no-tx-separate-pools | 
						Whether to create separate sub-pools for each context. This is required for Oracle datasources, which do not allow XA connections to be used both inside and outside of a JTA transaction.
					 
						Using this option will cause your total pool size to be twice  max-pool-size, because two actual pools will be created. | 
| pad-xid | Whether to pad the Xid. | 
| wrap-xa-resource | 
						Whether to wrap the XAResource in an  org.jboss.tm.XAResourceWrapperinstance. | 
| Parameter | Description | 
|---|---|
| user-name | The username to use to create a new connection. | 
| password | The password to use to create a new connection. | 
| security-domain | Contains the name of a JAAS security-manager which handles authentication. This name correlates to the application-policy/name attribute of the JAAS login configuration. | 
| reauth-plugin | Defines a reauthentication plug-in to use to reauthenticate physical connections. | 
| Parameter | Description | 
|---|---|
| valid-connection-checker | 
						An implementation of interface  org.jboss.jca.adaptors.jdbc.ValidConnectionCheckerwhich provides aSQLException.isValidConnection(Connection e)method to validate a connection. An exception means the connection is destroyed. This overrides the parametercheck-valid-connection-sqlif it is present. | 
| check-valid-connection-sql | An SQL statement to check validity of a pool connection. This may be called when a managed connection is taken from a pool for use. | 
| validate-on-match | 
						Indicates whether connection level validation is performed when a connection factory attempts to match a managed connection for a given set.
					 
						Specifying "true" for  validate-on-matchis typically not done in conjunction with specifying "true" forbackground-validation.Validate-on-matchis needed when a client must have a connection validated prior to use. This parameter is false by default. | 
| background-validation | 
						Specifies that connections are validated on a background thread. Background validation is a performance optimization when not used with  validate-on-match. Ifvalidate-on-matchis true, usingbackground-validationcould result in redundant checks. Background validation does leave open the opportunity for a bad connection to be given to the client for use (a connection goes bad between the time of the validation scan and prior to being handed to the client), so the client application must account for this possibility. | 
| background-validation-millis | The amount of time, in milliseconds, that background validation runs. | 
| use-fast-fail | 
						If true, fail a connection allocation on the first attempt, if the connection is invalid. Defaults to  false. | 
| stale-connection-checker | 
						An instance of  org.jboss.jca.adapters.jdbc.StaleConnectionCheckerwhich provides a BooleanisStaleConnection(SQLException e)method. If this method returnstrue, the exception is wrapped in anorg.jboss.jca.adapters.jdbc.StaleConnectionException, which is a subclass ofSQLException. | 
| exception-sorter | 
						An instance of  org.jboss.jca.adapters.jdbc.ExceptionSorterwhich provides a BooleanisExceptionFatal(SQLException e)method. This method validates whether an exception is broadcast to all instances ofjavax.resource.spi.ConnectionEventListeneras aconnectionErrorOccurredmessage. | 
| Parameter | Description | 
|---|---|
| use-try-lock | Uses tryLock()instead oflock(). This attempts to obtain the lock for the configured number of seconds, before timing out, rather than failing immediately if the lock is unavailable. Defaults to60seconds. As an example, to set a timeout of 5 minutes, set<use-try-lock>300</use-try-lock>. | 
| blocking-timeout-millis | The maximum time, in milliseconds, to block while waiting for a connection. After this time is exceeded, an exception is thrown. This blocks only while waiting for a permit for a connection, and does not throw an exception if creating a new connection takes a long time. Defaults to 30000, which is 30 seconds. | 
| idle-timeout-minutes | 
						The maximum time, in minutes, before an idle connection is closed. The actual maximum time depends upon the idleRemover scan time, which is half of the smallest  idle-timeout-minutesof any pool. | 
| set-tx-query-timeout | 
						Whether to set the query timeout based on the time remaining until transaction timeout. Any configured query timeout is used if no transaction exists. Defaults to  false. | 
| query-timeout | Timeout for queries, in seconds. The default is no timeout. | 
| allocation-retry | The number of times to retry allocating a connection before throwing an exception. The default is 0, so an exception is thrown upon the first failure. | 
| allocation-retry-wait-millis | 
						How long, in milliseconds, to wait before retrying to allocate a connection. The default is 5000, which is 5 seconds.
					 | 
| xa-resource-timeout | 
						If non-zero, this value is passed to method  XAResource.setTransactionTimeout. | 
| Parameter | Description | 
|---|---|
| track-statements | 
						Whether to check for unclosed statements when a connection is returned to a pool and a statement is returned to the prepared statement cache. If false, statements are not tracked.
					 
 | 
| prepared-statement-cache-size | The number of prepared statements per connection, in a Least Recently Used (LRU) cache. | 
| share-prepared-statements | 
						Whether asking for the same statement twice without closing it uses the same underlying prepared statement. The default is  false. | 
| Parameter | Description | 
|---|---|
| recover-credential | A username/password pair or security domain to use for recovery. | 
| recover-plugin | 
						An implementation of the  org.jboss.jca.core.spi.recoveryRecoveryPluginclass, to be used for recovery. | 
3.9.6.9. JDBC Driver Download Locations
Note
| Vendor | Download Location | 
|---|---|
| MySQL | |
| PostgreSQL | |
| Oracle | |
| IBM | |
| Sybase | |
| Microsoft | 
3.9.7. LDAP Data Sources
/subsystem=teiid:read-rar-description(rar-name=ldap)
/subsystem=teiid:read-rar-description(rar-name=ldap)3.9.8. MongoDB Data Sources
| Property | Description | Required? | Default | 
|---|---|---|---|
| RemoteServerList | 
						A comma-separated list of server locations. Each location can contain an optional port, of the format host:port
					 | 
						False.
					 | 
						Not applicable.
					 | 
| Username | 
						Connection User's Name
					 | 
						False.
					 | 
						None.
					 | 
| Password | 
						Connection User's password
					 | 
						False.
					 | 
						None.
					 | 
| Database | 
						MongoDB database name
					 | 
						True.
					 | 
						None.
					 | 
/subsystem=teiid:read-rar-description(rar-name=mongodb)
/subsystem=teiid:read-rar-description(rar-name=mongodb)3.9.9. Apache Phoenix Data Source
module add --name=org.apache.phoenix --resources=/path/to/phoenix-[version]-client.jar --dependencies=javax.api,sun.jdk,org.apache.log4j,javax.transaction.api /subsystem=datasources/jdbc-driver=phoenix:add(driver-name=phoenix,driver-module-name=org.apache.phoenix,driver-class-name=org.apache.phoenix.jdbc.PhoenixDriver
module add --name=org.apache.phoenix --resources=/path/to/phoenix-[version]-client.jar --dependencies=javax.api,sun.jdk,org.apache.log4j,javax.transaction.api /subsystem=datasources/jdbc-driver=phoenix:add(driver-name=phoenix,driver-module-name=org.apache.phoenix,driver-class-name=org.apache.phoenix.jdbc.PhoenixDriver
/subsystem=datasources/data-source=phoenixDS:add(jndi-name=java:/phoenixDS, driver-name=phoenix, connection-url=jdbc:phoenix:{zookeeper quorum server}, enabled=true, use-java-context=true, user-name={user}, password={password})
/subsystem=datasources/data-source=phoenixDS:add(jndi-name=java:/phoenixDS, driver-name=phoenix, connection-url=jdbc:phoenix:{zookeeper quorum server}, enabled=true, use-java-context=true, user-name={user}, password={password})
jdbc:phoenix [ :<zookeeper quorum> [ :<port number> ] [ :<root node> ] ], 'jdbc:phoenix:127.0.0.1:2181'
 jdbc:phoenix [ :<zookeeper quorum> [ :<port number> ] [ :<root node> ] ], 'jdbc:phoenix:127.0.0.1:2181'CREATE TABLE IF NOT EXISTS "Customer"("ROW_ID" VARCHAR PRIMARY KEY, "customer"."city" VARCHAR, "customer"."name" VARCHAR, "sales"."amount" VARCHAR, "sales"."product" VARCHAR)
CREATE TABLE IF NOT EXISTS "Customer"("ROW_ID" VARCHAR PRIMARY KEY, "customer"."city" VARCHAR, "customer"."name" VARCHAR, "sales"."amount" VARCHAR, "sales"."product" VARCHAR)3.9.10. Salesforce Data Sources
/subsystem=teiid:read-rar-description(rar-name=salesforce)
/subsystem=teiid:read-rar-description(rar-name=salesforce)3.9.11. Solr Data Sources
/subsystem=teiid:read-rar-description(rar-name=solr)
/subsystem=teiid:read-rar-description(rar-name=solr)3.9.12. Web Service Data Sources
/subsystem=teiid:read-rar-description(rar-name=webservice)
/subsystem=teiid:read-rar-description(rar-name=webservice)| Property | Application | Required? | Default? | Description | 
|---|---|---|---|---|
| EndPoint | 
						HTTP and SOAP.
					 | 
						True
					 | 
						Not applicable.
					 | 
						URL for HTTP ans service endpoint for SOAP.
					 | 
| SecurityType | 
						HTTP and SOAP.
					 | 
						false
					 | 
						none
					 | 
						Type of Authentication to used with the web service. Allowed values are "None","HTTPBasic","WSSecurity" and "Kerberos".
					 | 
| AuthUserName | 
						HTTP and SOAP.
					 | 
						false
					 | 
						Not applicable.
					 | 
						Name value for authentication, used in HTTPBasic and WsSecurity.
					 | 
| AuthPassword | 
						HTTP and SOAP.
					 | 
						false
					 | 
						Not applicable.
					 | 
						Password value for authentication, used in HTTPBasic and WsSecurity
					 | 
| ConfigFile | 
						HTTP and SOAP.
					 | 
						False
					 | 
						Not applicable.
					 | 
						CXF client configuration File or URL.
					 | 
| ConfigName | 
						HTTP and SOAP.
					 | 
						False
					 | 
						Not applicable.
					 | 
						Note that this property is deprecated.
					 | 
| EndPointName | 
						HTTP and SOAP.
					 | 
						False
					 | 
						Teiid
					 | 
						Local part of the end point QName to use with this connection, needs to match one defined in CXF file.
					 | 
| ServiceName | 
						SOAP
					 | 
						False
					 | 
						Not applicable.
					 | 
						Local part of the service QName to use with this connection.
					 | 
| NamespaceUri | 
						SOAP.
					 | 
						False
					 | 
						http://teiid.org
					 | 
						Namespace URI of the service QName to use with this connection
					 | 
| RequestTimeout | 
						HTTP and SOAP.
					 | 
						False
					 | 
						Not applicable.
					 | 
						Timeout for request.
					 | 
| ConnectTimeout | 
						HTTP and SOAP.
					 | 
						False
					 | 
						Not applicable.
					 | 
						Timeout for connection.
					 | 
| Wsdl | 
						SOAP.
					 | 
						False
					 | 
						Not applicable.
					 | 
						WSDL file or URL for the web service.
					 |