Author name: Manuel Bogner

PostgreSQL Datasource in JBoss AS7

First add a postgresql module to your modules folder as described in my former post. Then open standalone.xml and insert a datasource and the postgresql driver. Search for subsystem xmlns=”urn:jboss:domain:datasources:1.0″ and insert the datasource. <datasource jndi-name=”java:jboss/datasources/TestDS” pool-name=”TESTDS” enabled=”true” jta=”true” use-java-context=”true” use-ccm=”true”> <connection-url> jdbc:postgresql:test </connection-url> <driver> org.postgresql </driver> <pool> <min-pool-size> 5 </min-pool-size> <max-pool-size> 25 </max-pool-size> <prefill> […]

PostgreSQL Datasource in JBoss AS7 Read More »

JBoss Postgresql Module

Just download the latest jdbc4 driver and place it into JBOSS_HOME/modules/org/postgresql/main. Then create a file module.xml in the same folder with the following content (replace filename if necessary): <?xml version=”1.0″ encoding=”UTF-8″?> <module xmlns=”urn:jboss:module:1.0″ name=”org.postgresql”> <resources> <resource-root path=”postgresql-9.1-901.jdbc4.jar”/> </resources> <dependencies> <module name=”javax.api”/> <module name=”javax.transaction.api”/> </dependencies> </module>  

JBoss Postgresql Module Read More »

SSH config

If you are using special ports or different usernames on different ssh-hosts you can simplify your connect commands with a .ssh/config file like the one in the following example. Host test1 HostName 8.8.8.8 Port 12345 User myname Host test2 HostName fubuntu User horaz Host * User root ssh test1 equals ssh myname@8.8.8.8 -p 12345. The

SSH config Read More »