2015年12月7日 | Leave a comment 问题: queue 不需要手工创建 解决: src/main/setup/glassfish-resources.xml 可以设置自动创建 queue /topic /other resources 如: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE resources PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Resource Definitions//EN" "http://glassfish.org/dtds/glassfish-resources_1_5.dtd"> <resources> <admin-object-resource enabled="true" jndi-name="jms/queue1" res-type="javax.jms.Queue" res-adapter="jmsra"> <property name="Name" value="PhysicalQueue"/> </admin-object-resource> </resources> 1234567 <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE resources PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Resource Definitions//EN" "http://glassfish.org/dtds/glassfish-resources_1_5.dtd"><resources> <admin-object-resource enabled="true" jndi-name="jms/queue1" res-type="javax.jms.Queue" res-adapter="jmsra"> <property name="Name" value="PhysicalQueue"/> </admin-object-resource></resources>