--- /dev/null
+#!/bin/ksh
+
+USER="$1"
+PASSWORD="$2"
+
+asadmin create-jms-resource --restype javax.jms.QueueConnectionFactory jms/MythtvConnectionFactory
+asadmin create-jms-resource --restype javax.jms.Queue --property Name=Mythtv jms/MythtvTimer
+
+asadmin create-jdbc-connection-pool --datasourceclassname com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource --restype javax.sql.ConnectionPoolDataSource --allownoncomponentcallers=true --property URL=jdbc\\:mysql\\://shikra/mythconverg:password=$PASSWORD:user=$USER Mythtv
+asadmin create-jdbc-resource --connectionpoolid Mythtv jdbc/mythtv
+