Skip to main content

[jms-spec~repository:259] Update JMS20Demo to use glassfish-4.0-b80-03_13_2013 (modified resourceAd

  • From: nigeldeakin@...
  • To: commits@...
  • Subject: [jms-spec~repository:259] Update JMS20Demo to use glassfish-4.0-b80-03_13_2013 (modified resourceAd
  • Date: Thu, 14 Mar 2013 16:53:40 +0000

Project:    jms-spec
Repository: repository
Revision:   259
Author:     nigeldeakin
Date:       2013-03-14 16:53:37 UTC
Link:       

Log Message:
------------
Update JMS20Demo to use glassfish-4.0-b80-03_13_2013 (modified 
resourceAdapter element)


Revisions:
----------
259


Modified Paths:
---------------
jms2.0/demos/JMS20Demo/web/WEB-INF/web.xml
jms2.0/demos/JMS20Demo/nbproject/project.properties
jms2.0/demos/JMS20Demo/src/java/servlets/Servlet1.java


Diffs:
------
Index: jms2.0/demos/JMS20Demo/nbproject/project.properties
===================================================================
--- jms2.0/demos/JMS20Demo/nbproject/project.properties (revision 258)
+++ jms2.0/demos/JMS20Demo/nbproject/project.properties (revision 259)
@@ -31,7 +31,7 @@
 j2ee.copy.static.files.on.save=true
 j2ee.deploy.on.save=true
 j2ee.platform=1.6
-j2ee.platform.classpath=${j2ee.server.home}/modules/javax.persistence.jar:${j2ee.server.home}/modules/endorsed/javax.annotation-api.jar:${j2ee.server.home}/modules/javax.websocket-api.jar:${j2ee.server.middleware}/mq/lib/jaxm-api.jar:${j2ee.server.home}/modules/javax.el.jar:${j2ee.server.home}/modules/javax.security.jacc.jar:${j2ee.server.home}/modules/javax.json.jar:${j2ee.server.home}/modules/javax.jms-api.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api-osgi.jar:${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/javax.faces.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl-api.jar:${j2ee.server.home}/modules/weld-osgi-bundle.jar:${j2ee.server.home}/modules/javax.xml.registry-api.jar:${j2ee.server.home}/modules/javax.enterprise.deploy-api.jar:${j2ee.server.home}/modules/javax.servlet-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp-api.jar:${j2ee.server.home}/modules/javax.ws.rs-api.jar:${j2ee.s
 
erver.home}/modules/javax.resource-api.jar:${j2ee.server.home}/modules/javax.xml.rpc-api.jar:${j2ee.server.home}/modules/javax.enterprise.concurrent-api.jar:${j2ee.server.home}/modules/javax.ejb-api.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl.jar:${j2ee.server.home}/modules/javax.transaction-api.jar:${j2ee.server.home}/modules/bean-validator.jar:${j2ee.server.home}/modules/javax.mail.jar:${j2ee.server.home}/modules/javax.management.j2ee-api.jar:${j2ee.server.home}/modules/javax.security.auth.message.jar
+j2ee.platform.classpath=${j2ee.server.home}/modules/javax.servlet.jsp.jstl.jar:${j2ee.server.home}/modules/javax.servlet-api.jar:${j2ee.server.home}/modules/javax.security.auth.message-api.jar:${j2ee.server.home}/modules/bean-validator.jar:${j2ee.server.home}/modules/javax.resource-api.jar:${j2ee.server.home}/modules/javax.enterprise.deploy-api.jar:${j2ee.server.home}/modules/javax.jms-api.jar:${j2ee.server.home}/modules/javax.xml.rpc-api.jar:${j2ee.server.home}/modules/javax.json.jar:${j2ee.server.home}/modules/javax.transaction-api.jar:${j2ee.server.home}/modules/javax.xml.registry-api.jar:${j2ee.server.home}/modules/javax.ejb-api.jar:${j2ee.server.home}/modules/javax.el.jar:${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/javax.mail.jar:${j2ee.server.home}/modules/javax.websocket-api.jar:${j2ee.server.home}/modules/endorsed/jaxb-api-osgi.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl-api.jar:${j2ee.server.home}/modules/javax.ws.rs-api.j
 
ar:${j2ee.server.home}/modules/javax.persistence.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/endorsed/javax.annotation-api.jar:${j2ee.server.home}/modules/javax.enterprise.concurrent-api.jar:${j2ee.server.home}/modules/javax.management.j2ee-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp-api.jar:${j2ee.server.home}/modules/javax.security.jacc-api.jar:${j2ee.server.middleware}/mq/lib/jaxm-api.jar:${j2ee.server.home}/modules/javax.faces.jar:${j2ee.server.home}/modules/weld-osgi-bundle.jar
 
j2ee.platform.embeddableejb.classpath=${j2ee.server.home}/lib/embedded/glassfish-embedded-static-shell.jar
 
j2ee.platform.wscompile.classpath=${j2ee.server.home}/modules/webservices-osgi.jar
 
j2ee.platform.wsgen.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api-osgi.jar
Index: jms2.0/demos/JMS20Demo/src/java/servlets/Servlet1.java
===================================================================
--- jms2.0/demos/JMS20Demo/src/java/servlets/Servlet1.java      (revision 258)
+++ jms2.0/demos/JMS20Demo/src/java/servlets/Servlet1.java      (revision 259)
@@ -55,14 +55,15 @@
 
 @JMSDestinationDefinition(
     name = "java:global/jms/demoQueue",
-    resourceAdapterName= "jmsra",
+    // resourceAdapter is set (by the deployer) in web.xml
     description = "Queue to use in demonstration", 
-    className = "javax.jms.Queue", 
-    destinationName="demoQueue")
+    className = "javax.jms.Queue"
+    // destinationName is set (by the deployer) in web.xml
+  )
 
 @JMSConnectionFactoryDefinition(
     name="java:global/jms/demoConnectionFactory",
-    resourceAdapterName= "jmsra",
+    // resourceAdapter is set (by the deployer) in web.xml
     className= "javax.jms.ConnectionFactory",
     description="ConnectionFactory to use in demonstration"
 )       
Index: jms2.0/demos/JMS20Demo/web/WEB-INF/web.xml
===================================================================
--- jms2.0/demos/JMS20Demo/web/WEB-INF/web.xml  (revision 258)
+++ jms2.0/demos/JMS20Demo/web/WEB-INF/web.xml  (revision 259)
@@ -4,12 +4,11 @@
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"    ;
     xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee web-app_3_1.xsd"  ;
  
     version="3.1">
-       
-    <!-- Removed temporarily as GlassFish doesn't support the latest schema 
yet -->
-    
-    <!-- jms-destination>
+         
+    <jms-destination>
         <name>java:global/jms/demoQueue</name>
         <resource-adapter>jmsra</resource-adapter>
+        <destination-name>demoQueue</destination-name>
     </jms-destination>
 
     <jms-connection-factory>
@@ -25,6 +24,6 @@
        
         <max-pool-size>30</max-pool-size>
         <min-pool-size>20</min-pool-size>
-    </jms-connection-factory -->
+    </jms-connection-factory>
     
 </web-app>





[jms-spec~repository:259] Update JMS20Demo to use glassfish-4.0-b80-03_13_2013 (modified resourceAd

nigeldeakin 03/14/2013
 
 
Close
loading
Please Confirm
Close