From 6beae4b9ec5a5026cd2a8c8a274089fa25a123a9 Mon Sep 17 00:00:00 2001
From: ubuntu-12 <mperdikeas@ubuntu.(none)>
Date: Fri, 22 Jun 2012 19:26:26 -0700
Subject: [PATCH] defined postgresql 9.1 driver but haven't configured
 datasource yet

---
 jboss-as-7.1.1.Final/.gitignore                    |    3 +++
 jboss-as-7.1.1.Final/bin/jboss-start               |    1 +
 .../domain/configuration/mgmt-users.properties     |    3 ++-
 .../modules/org/postgresql/main/module.xml         |   12 ++++++++++++
 .../standalone/configuration/mgmt-users.properties |    3 ++-
 .../standalone/configuration/standalone.xml        |    5 ++++-
 6 files changed, 24 insertions(+), 3 deletions(-)
 create mode 100644 jboss-as-7.1.1.Final/.gitignore
 create mode 100755 jboss-as-7.1.1.Final/bin/jboss-start
 create mode 100644 jboss-as-7.1.1.Final/modules/org/postgresql/main/module.xml

diff --git a/jboss-as-7.1.1.Final/.gitignore b/jboss-as-7.1.1.Final/.gitignore
new file mode 100644
index 0000000..6afa3c6
--- /dev/null
+++ b/jboss-as-7.1.1.Final/.gitignore
@@ -0,0 +1,3 @@
+standalone/configuration/standalone_xml_history
+*.log
+*.jar
diff --git a/jboss-as-7.1.1.Final/bin/jboss-start b/jboss-as-7.1.1.Final/bin/jboss-start
new file mode 100755
index 0000000..37d6b2c
--- /dev/null
+++ b/jboss-as-7.1.1.Final/bin/jboss-start
@@ -0,0 +1 @@
+./standalone.sh -Djboss.bind.address=192.168.2.5 -bmanagement=192.168.2.5
\ No newline at end of file
diff --git a/jboss-as-7.1.1.Final/domain/configuration/mgmt-users.properties b/jboss-as-7.1.1.Final/domain/configuration/mgmt-users.properties
index 9e0ba20..c68695e 100644
--- a/jboss-as-7.1.1.Final/domain/configuration/mgmt-users.properties
+++ b/jboss-as-7.1.1.Final/domain/configuration/mgmt-users.properties
@@ -22,4 +22,5 @@
 # The following illustrates how an admin user could be defined, this
 # is for illustration only an does not correspond to a usable password.
 #
-#admin=2a0923285184943425d1f53ddd58ec7a
\ No newline at end of file
+#admin=2a0923285184943425d1f53ddd58ec7a
+mperdikeas=87b3c792267ecec73d665983c3c4a804
diff --git a/jboss-as-7.1.1.Final/modules/org/postgresql/main/module.xml b/jboss-as-7.1.1.Final/modules/org/postgresql/main/module.xml
new file mode 100644
index 0000000..a669994
--- /dev/null
+++ b/jboss-as-7.1.1.Final/modules/org/postgresql/main/module.xml
@@ -0,0 +1,12 @@
+<module xmlns="urn:jboss:module:1.1" name="org.postgresql">
+   <!-- Load with jboss-cli command:
+        /subsystem=datasources/jdbc-driver=postgresql-driver:add(driver-name=postgresql-driver, driver-class-name=org.postgresql.Driver, driver-module-name=org.postgresql)
+   -->
+   <resources>
+     <resource-root path="postgresql-9.1-902.jdbc4.jar"/>
+   </resources>
+   <dependencies>
+     <module name="javax.api"/>
+     <module name="javax.transaction.api"/>
+   </dependencies>
+</module>
\ No newline at end of file
diff --git a/jboss-as-7.1.1.Final/standalone/configuration/mgmt-users.properties b/jboss-as-7.1.1.Final/standalone/configuration/mgmt-users.properties
index 7c464df..39b35ad 100644
--- a/jboss-as-7.1.1.Final/standalone/configuration/mgmt-users.properties
+++ b/jboss-as-7.1.1.Final/standalone/configuration/mgmt-users.properties
@@ -19,4 +19,5 @@
 # The following illustrates how an admin user could be defined, this
 # is for illustration only and does not correspond to a usable password.
 #
-#admin=2a0923285184943425d1f53ddd58ec7a
\ No newline at end of file
+#admin=2a0923285184943425d1f53ddd58ec7a
+mperdikeas=87b3c792267ecec73d665983c3c4a804
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 2fcbf1e..e206730 100644
--- a/jboss-as-7.1.1.Final/standalone/configuration/standalone.xml
+++ b/jboss-as-7.1.1.Final/standalone/configuration/standalone.xml
@@ -102,6 +102,9 @@
                     <driver name="h2" module="com.h2database.h2">
                         <xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
                     </driver>
+                    <driver name="postgresql9.1" module="org.postgresql">
+                        <xa-datasource-class>org.postgresql.xa.PGXADataSource</xa-datasource-class>
+                    </driver>
                 </drivers>
             </datasources>
         </subsystem>
@@ -293,7 +296,7 @@
         <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>
         <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9443}"/>
         <socket-binding name="ajp" port="8009"/>
-        <socket-binding name="http" port="8080"/>
+        <socket-binding name="http" port="8888"/>
         <socket-binding name="https" port="8443"/>
         <socket-binding name="osgi-http" interface="management" port="8090"/>
         <socket-binding name="remoting" port="4447"/>
-- 
1.7.9.5

