Can datasource be configured in standalone-outsystems.xml to use it in java extension

Can datasource be configured in standalone-outsystems.xml to use it in java extension

  
Hi,
I need to connect a database in Java Extension, can we configure the datasource in standalone-outsystmes.xml and get it in java extentsion by jndi look-up. I am using Outsystems 9 with JBoss eap 6.

I am getting below error while doing this, please let me know if am doing something wrong here? do i need to modify any other file to make it work?
==============================================
13:02:48,772 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
JBAS014775:    New missing/unsatisfied dependencies:
      service jboss.cached-connection-manager (missing) dependents: [service jboss.data-source.java:jboss/AR_SHR]
      service jboss.connector.transactionintegration (missing) dependents: [service jboss.data-source.java:jboss/AR_SHR]
      service jboss.ironjacamar.connection-validator (missing) dependents: [service jboss.data-source.java:jboss/AR_SHR]
      service jboss.ironjacamar.idle-remover (missing) dependents: [service jboss.data-source.java:jboss/AR_SHR]
      service jboss.jdbc-driver.registry (missing) dependents: [service jboss.jdbc-driver.oracle, service jboss.data-source.java:jboss/AR_SHR]
      service jboss.management_repository (missing) dependents: [service jboss.data-source.java:jboss/AR_SHR]

================================================

Configuration details:
1) Created module
module.xml file content-
<module xmlns="urn:jboss:module:1.1" name="oracle.jdbc">
    <resources>
        <resource-root path="ojdbc6.jar"/>
    </resources>
    <dependencies>
        <module name="javax.api"/>
        <module name="javax.transaction.api"/>
    </dependencies>
</module>

2) Added subsystem for datasource in profile 
Standalone-outsystems.xml datasource part-
<subsystem xmlns="urn:jboss:domain:datasources:1.1">
<datasources>
<datasource jndi-name="java:jboss/datasource/AR_SHR" pool-name="AR_SHR" enabled="true">
<connection-url>jdbc:oracle:thin:@hostname:1521:sid</connection-url>
<driver>oracle</driver>
<security>
<user-name>AR_SHR</user-name>
<password>password</password>
</security>
</datasource>
<drivers>
<driver name="oracle" module="oracle.jdbc">
<xa-datasource-class>oracle.jdbc.OracleDriver</xa-datasource-class>
</driver>
</drivers>
</datasources>
</subsystem>
 
 
I notice that you're trying to connect to an Oracle database.

Why not simply use the OutSystems Platform Database Connection functionality to achieve this?
Ricardo -

They wanted a more complex connection scenario than the built-in conenction configuration allows. I don't know the details. They figured it out and we documented internally.

J.Ja