在此链接http://docs.oracle.com/javaee/7/tutorial/doc/resource-creation003.htm显示我们可以创建资源
asadmin create-resources glassfish-resources.xml
但如果从命令行执行此操作我有消息
Command create-resource not found.
Check the entry of command name.
Glassfish Server Open Source Edition 4 (build 89)
答案 0 :(得分:0)
使用
asadmin add-resources glassfish-resources.xml
适合我的工作