From 35611b193a1ee82feb8ec090710063b9ac57969b Mon Sep 17 00:00:00 2001
From: ubuntu-12 <mperdikeas@ubuntu.(none)>
Date: Fri, 22 Jun 2012 19:49:21 -0700
Subject: [PATCH] configured postgresql9.1 datasource

---
 jboss-as-7.1.1.Final/.gitignore                    |    1 +
 .../standalone/configuration/standalone.xml        |   35 ++++++++++++++------
 2 files changed, 26 insertions(+), 10 deletions(-)

diff --git a/jboss-as-7.1.1.Final/.gitignore b/jboss-as-7.1.1.Final/.gitignore
index 6afa3c6..e29314f 100644
--- a/jboss-as-7.1.1.Final/.gitignore
+++ b/jboss-as-7.1.1.Final/.gitignore
@@ -1,3 +1,4 @@
 standalone/configuration/standalone_xml_history
 *.log
 *.jar
+*.jar.index
diff --git a/jboss-as-7.1.1.Final/standalone/configuration/standalone.xml b/jboss-as-7.1.1.Final/standalone/configuration/standalone.xml
index e206730..b86e91b 100644
--- a/jboss-as-7.1.1.Final/standalone/configuration/standalone.xml
+++ b/jboss-as-7.1.1.Final/standalone/configuration/standalone.xml
@@ -1,6 +1,7 @@
 <?xml version='1.0' encoding='UTF-8'?>
 
 <server xmlns="urn:jboss:domain:1.2">
+
     <extensions>
         <extension module="org.jboss.as.clustering.infinispan"/>
         <extension module="org.jboss.as.configadmin"/>
@@ -26,6 +27,7 @@
         <extension module="org.jboss.as.webservices"/>
         <extension module="org.jboss.as.weld"/>
     </extensions>
+
     <management>
         <security-realms>
             <security-realm name="ManagementRealm">
@@ -48,6 +50,7 @@
             </http-interface>
         </management-interfaces>
     </management>
+
     <profile>
         <subsystem xmlns="urn:jboss:domain:logging:1.1">
             <console-handler name="CONSOLE">
@@ -98,6 +101,22 @@
                         <password>sa</password>
                     </security>
                 </datasource>
+                <datasource jta="false" jndi-name="java:/postgres" pool-name="postgres" enabled="true" use-ccm="false">
+                    <connection-url>jdbc:postgresql://127.0.0.1:5432/dbfoo</connection-url>
+                    <driver-class>org.postgresql.Driver</driver-class>
+                    <driver>postgresql9.1</driver>
+                    <security>
+                        <user-name>mperdikeas</user-name>
+                        <password>mperdikeas</password>
+                    </security>
+                    <validation>
+                        <validate-on-match>false</validate-on-match>
+                        <background-validation>false</background-validation>
+                    </validation>
+                    <statement>
+                        <share-prepared-statements>false</share-prepared-statements>
+                    </statement>
+                </datasource>
                 <drivers>
                     <driver name="h2" module="com.h2database.h2">
                         <xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
@@ -199,14 +218,13 @@
         <subsystem xmlns="urn:jboss:domain:naming:1.1"/>
         <subsystem xmlns="urn:jboss:domain:osgi:1.2" activation="lazy">
             <properties>
-                <!-- Specifies the beginning start level of the framework -->
-                <property name="org.osgi.framework.startlevel.beginning">1</property>
+                <property name="org.osgi.framework.startlevel.beginning">
+                    1
+                </property>
             </properties>
             <capabilities>
-                <!-- modules registered with the OSGi layer on startup -->
                 <capability name="javax.servlet.api:v25"/>
                 <capability name="javax.transaction.api"/>
-                <!-- bundles started in startlevel 1 -->
                 <capability name="org.apache.felix.log" startlevel="1"/>
                 <capability name="org.jboss.osgi.logging" startlevel="1"/>
                 <capability name="org.apache.felix.configadmin" startlevel="1"/>
@@ -275,6 +293,7 @@
         </subsystem>
         <subsystem xmlns="urn:jboss:domain:weld:1.0"/>
     </profile>
+
     <interfaces>
         <interface name="management">
             <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
@@ -282,15 +301,11 @@
         <interface name="public">
             <inet-address value="${jboss.bind.address:127.0.0.1}"/>
         </interface>
-        <!-- TODO - only show this if the jacorb subsystem is added  -->
         <interface name="unsecure">
-            <!--
-              ~  Used for IIOP sockets in the standard configuration.
-              ~                  To secure JacORB you need to setup SSL 
-              -->
             <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>
         </interface>
     </interfaces>
+
     <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
         <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/>
         <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>
@@ -306,4 +321,4 @@
             <remote-destination host="localhost" port="25"/>
         </outbound-socket-binding>
     </socket-binding-group>
-</server>
\ No newline at end of file
+</server>
-- 
1.7.9.5

