Skip to content

Commit 8f87a99

Browse files
author
Peter Pilgrim
committed
Update to code. Is there way to create JMS resource dynamically with a managed Glassfish server? No. The only way is to manually administer GlassFish with the required JMS resources at the command line or use the Admin UI web interface.
1 parent 13fcf72 commit 8f87a99

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
@Echo off
2+
REM =====================================================================================================
3+
REM Run this Windows command script in the GlassFish Home Bin folder
4+
REM e.g. C:\opt\glassfish-4.1-b13-04_01_2015\bin
5+
REM Peter Pilgrim 2015
6+
REM =====================================================================================================
7+
8+
pushd C:\opt\glassfish-4.1-b13-04_01_2015\bin
9+
10+
asadmin start-domain
11+
12+
asadmin create-jms-resource --restype javax.jms.ConnectionFactory jms/demoConnectionFactory
13+
14+
asadmin create-jms-resource --restype javax.jms.Queue jms/demoQueue
15+
16+
asadmin list-jms-resources
17+
18+
asadmin stop-domain
19+
20+
popd
21+
echo Done.

0 commit comments

Comments
 (0)