(no commit message)
authorerik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Fri, 14 Mar 2008 22:11:25 +0000 (22:11 +0000)
committererik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Fri, 14 Mar 2008 22:11:25 +0000 (22:11 +0000)
mythtv/src/scripts/asconfig.sh [new file with mode: 0755]

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
+