cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r998718 - in /cxf/trunk/distribution/src/main/release/samples/java_first_jms: pom.xml src/main/java/demo/server/ServerJMS.java src/main/resources/cxf.xml
Date Sun, 19 Sep 2010 19:12:57 GMT
Author: bimargulies
Date: Sun Sep 19 19:12:57 2010
New Revision: 998718

URL: http://svn.apache.org/viewvc?rev=998718&view=rev
Log:
Move to new JMS config universe.

Removed:
    cxf/trunk/distribution/src/main/release/samples/java_first_jms/src/main/resources/cxf.xml
Modified:
    cxf/trunk/distribution/src/main/release/samples/java_first_jms/pom.xml
    cxf/trunk/distribution/src/main/release/samples/java_first_jms/src/main/java/demo/server/ServerJMS.java

Modified: cxf/trunk/distribution/src/main/release/samples/java_first_jms/pom.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/java_first_jms/pom.xml?rev=998718&r1=998717&r2=998718&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/java_first_jms/pom.xml (original)
+++ cxf/trunk/distribution/src/main/release/samples/java_first_jms/pom.xml Sun Sep 19 19:12:57
2010
@@ -33,6 +33,7 @@
 
 	<properties>
 	  <cxf.version>${project.version}</cxf.version>
+	  <cxf.amq.version>5.3.0</cxf.amq.version>
 	</properties>
     <build>
         <plugins>
@@ -102,7 +103,7 @@
 		<dependency>
 			<groupId>org.apache.activemq</groupId>
    			<artifactId>activemq-core</artifactId>
-    		<version>5.4.0</version>
+    		<version>${cxf.amq.version}</version>
 		</dependency>
         <dependency>
             <groupId>org.apache.cxf</groupId>

Modified: cxf/trunk/distribution/src/main/release/samples/java_first_jms/src/main/java/demo/server/ServerJMS.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/java_first_jms/src/main/java/demo/server/ServerJMS.java?rev=998718&r1=998717&r2=998718&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/java_first_jms/src/main/java/demo/server/ServerJMS.java
(original)
+++ cxf/trunk/distribution/src/main/release/samples/java_first_jms/src/main/java/demo/server/ServerJMS.java
Sun Sep 19 19:12:57 2010
@@ -22,6 +22,7 @@ package demo.server;
 import java.lang.reflect.Method;
 
 import org.apache.cxf.jaxws.JaxWsServerFactoryBean;
+import org.apache.cxf.transport.jms.spec.JMSSpecConstants;
 
 import demo.service.HelloWorld;
 import demo.service.impl.HelloWorldImpl;
@@ -56,7 +57,8 @@ public final class ServerJMS {
         Object implementor = new HelloWorldImpl();
         JaxWsServerFactoryBean svrFactory = new JaxWsServerFactoryBean();
         svrFactory.setServiceClass(HelloWorld.class);
-        svrFactory.setAddress("jms://");
+        svrFactory.setTransportId(JMSSpecConstants.SOAP_JMS_SPECIFICIATION_TRANSPORTID);
+        svrFactory.setAddress("jms:queue:test.cxf.jmstransport.queue?timeToLive=1000");
         svrFactory.setServiceBean(implementor);
         svrFactory.create();
 



Mime
View raw message