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

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  [] (Controller Boot Thread) JBAS014774: Service status report
JBAS014775:    New missing/unsatisfied dependencies:
      service jboss.cached-connection-manager (missing) dependents: [service]
      service jboss.connector.transactionintegration (missing) dependents: [service]
      service jboss.ironjacamar.connection-validator (missing) dependents: [service]
      service jboss.ironjacamar.idle-remover (missing) dependents: [service]
      service jboss.jdbc-driver.registry (missing) dependents: [service, service]
      service jboss.management_repository (missing) dependents: [service]


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

2) Added subsystem for datasource in profile 
Standalone-outsystems.xml datasource part-
<subsystem xmlns="urn:jboss:domain:datasources:1.1">
<datasource jndi-name="java:jboss/datasource/AR_SHR" pool-name="AR_SHR" enabled="true">
<driver name="oracle" module="oracle.jdbc">
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.