(no commit message)
[utils] / mythtv / src / scripts / asconfig.sh
diff --git a/mythtv/src/scripts/asconfig.sh b/mythtv/src/scripts/asconfig.sh
new file mode 100755 (executable)
index 0000000..12aa2a8
--- /dev/null
@@ -0,0 +1,11 @@
+#!/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
+