Author: antelder
Date: Thu Feb 12 10:38:54 2009
New Revision: 743681

URL: http://svn.apache.org/viewvc?rev=743681&view=rev
Log:
Move jms responsecf itest to its own module to make it eaisier to debug

Added:
    tuscany/branches/sca-java-1.x/itest/jms-responsecf/   (with props)
    tuscany/branches/sca-java-1.x/itest/jms-responsecf/pom.xml
    tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/
    tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/
    tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/java/
    tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/java/org/
    tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/java/org/apache/
    
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/java/org/apache/tuscany/
    
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/java/org/apache/tuscany/sca/
    
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/java/org/apache/tuscany/sca/binding/
    
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/java/org/apache/tuscany/sca/binding/jms/
    
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java
    
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java
    
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java
    tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/resources/
    tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/resources/cf/
    
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/resources/cf/client.composite
    
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/resources/cf/service.composite
    
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/resources/jndi.properties
    tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/test/
    tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/test/java/
    tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/test/java/org/
    tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/test/java/org/apache/
    
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/test/java/org/apache/tuscany/
    
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/test/java/org/apache/tuscany/sca/
    
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/test/java/org/apache/tuscany/sca/binding/
    
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/test/java/org/apache/tuscany/sca/binding/jms/
    
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/test/java/org/apache/tuscany/sca/binding/jms/ResponseCFTestCase.java
Removed:
    tuscany/branches/sca-java-1.x/itest/jms/src/main/resources/cf/
    
tuscany/branches/sca-java-1.x/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/ResponseCFTestCase.java
Modified:
    
tuscany/branches/sca-java-1.x/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/NonSCAClientTestCase.java

Propchange: tuscany/branches/sca-java-1.x/itest/jms-responsecf/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Thu Feb 12 10:38:54 2009
@@ -0,0 +1,20 @@
+target
+work
+dojo
+*.iws
+*.ipr
+*.iml
+derby.log
+maven.log
+maven-eclipse.xml
+build.xml
+build-dependency.xml
+velocity.log*
+junit*.properties
+surefire*.properties
+.project
+.classpath
+.settings
+.deployables
+.wtpmodules
+.externalToolBuilders

Added: tuscany/branches/sca-java-1.x/itest/jms-responsecf/pom.xml
URL: 
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/itest/jms-responsecf/pom.xml?rev=743681&view=auto
==============================================================================
--- tuscany/branches/sca-java-1.x/itest/jms-responsecf/pom.xml (added)
+++ tuscany/branches/sca-java-1.x/itest/jms-responsecf/pom.xml Thu Feb 12 
10:38:54 2009
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    * Licensed to the Apache Software Foundation (ASF) under one
+    * or more contributor license agreements.  See the NOTICE file
+    * distributed with this work for additional information
+    * regarding copyright ownership.  The ASF licenses this file
+    * to you under the Apache License, Version 2.0 (the
+    * "License"); you may not use this file except in compliance
+    * with the License.  You may obtain a copy of the License at
+    * 
+    *   http://www.apache.org/licenses/LICENSE-2.0
+    * 
+    * Unless required by applicable law or agreed to in writing,
+    * software distributed under the License is distributed on an
+    * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    * KIND, either express or implied.  See the License for the
+    * specific language governing permissions and limitations
+    * under the License.    
+-->
+<project>
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-itest</artifactId>
+        <version>1.5-SNAPSHOT</version>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+    <artifactId>itest-jms-responsecf</artifactId>
+    <name>Apache Tuscany SCA iTest JMS Response ConnectionFactory</name>
+
+    <repositories>
+       <repository>
+          <id>apache.incubator</id>
+          <url>http://people.apache.org/repo/m2-incubating-repository</url>
+       </repository>
+    </repositories>
+
+    <dependencies>
+        
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-sca-api</artifactId>
+            <version>1.5-SNAPSHOT</version>
+        </dependency>        
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-host-embedded</artifactId>
+            <version>1.5-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency> 
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-implementation-java-runtime</artifactId>
+            <version>1.5-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+        
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-binding-jms-policy</artifactId>
+            <version>1.5-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>        
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-binding-jms-runtime</artifactId>
+            <version>1.5-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-host-jms-asf</artifactId>
+            <version>1.5-SNAPSHOT</version>
+        </dependency>
+
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>4.5</version>
+            <scope>test</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.activemq</groupId>
+            <artifactId>activemq-core</artifactId>
+            <version>5.2.0</version>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+           <groupId>org.apache.geronimo.specs</groupId>
+           <artifactId>geronimo-jms_1.1_spec</artifactId>
+           <version>1.1</version>
+           <scope>provided</scope>
+           <exclusions>
+               <exclusion>
+                   <groupId>org.apache.geronimo.specs</groupId>
+                   <artifactId>geronimo-jms_1.1_spec</artifactId>
+               </exclusion>
+           </exclusions>
+        </dependency>         
+                
+    </dependencies>
+
+    <build>
+       <finalName>${artifactId}</finalName>
+    </build>
+</project>

Added: 
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java
URL: 
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java?rev=743681&view=auto
==============================================================================
--- 
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java
 (added)
+++ 
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java
 Thu Feb 12 10:38:54 2009
@@ -0,0 +1,41 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package org.apache.tuscany.sca.binding.jms;
+
+import org.osoa.sca.annotations.Reference;
+import org.osoa.sca.annotations.Service;
+
+/**
+ * This class implements the HelloWorld service.
+ */
+...@service(HelloWorldService.class)
+public class HelloWorldClientImpl implements HelloWorldService {
+
+    private HelloWorldService serviceA;
+
+    @Reference
+    public void setServiceA(HelloWorldService service) {
+        this.serviceA = service;
+    }
+
+    public String sayHello(String name) {
+        return serviceA.sayHello(name);
+    }
+
+}

Added: 
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java
URL: 
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java?rev=743681&view=auto
==============================================================================
--- 
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java
 (added)
+++ 
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java
 Thu Feb 12 10:38:54 2009
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package org.apache.tuscany.sca.binding.jms;
+
+import org.osoa.sca.annotations.Remotable;
+
+...@remotable
+public interface HelloWorldService {
+    String sayHello(String name);
+}

Added: 
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java
URL: 
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java?rev=743681&view=auto
==============================================================================
--- 
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java
 (added)
+++ 
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java
 Thu Feb 12 10:38:54 2009
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package org.apache.tuscany.sca.binding.jms;
+
+public class HelloWorldServiceImpl implements HelloWorldService {
+
+    public String sayHello(String name) {
+        if ("bang".equals(name)) {
+            throw new RuntimeException("blem wit");
+        }
+        return "jmsHello " + name;
+    }
+
+}

Added: 
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/resources/cf/client.composite
URL: 
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/resources/cf/client.composite?rev=743681&view=auto
==============================================================================
--- 
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/resources/cf/client.composite
 (added)
+++ 
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/resources/cf/client.composite
 Thu Feb 12 10:38:54 2009
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ -->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0";
+           name="SimpleClientComposite">
+
+    <component name="HelloWorldClient">
+        <implementation.java 
class="org.apache.tuscany.sca.binding.jms.HelloWorldClientImpl"/>
+        <reference name="serviceA" />
+    </component>
+
+    <reference name="serviceA" promote="HelloWorldClient/serviceA">
+        <interface.java 
interface="org.apache.tuscany.sca.binding.jms.HelloWorldService" />
+        <binding.jms>
+            <destination name="DestQueueA"/>
+            <response>
+               <destination name="RespQueueA"/>
+            </response>
+        </binding.jms>  
+    </reference>
+
+</composite>

Added: 
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/resources/cf/service.composite
URL: 
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/resources/cf/service.composite?rev=743681&view=auto
==============================================================================
--- 
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/resources/cf/service.composite
 (added)
+++ 
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/resources/cf/service.composite
 Thu Feb 12 10:38:54 2009
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ -->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0";
+           name="SimpleServiceComposite">
+
+    <component name="HelloWorldService">
+        <implementation.java 
class="org.apache.tuscany.sca.binding.jms.HelloWorldServiceImpl"/>
+        <service name="HelloWorldService">
+            <binding.jms>
+               <destination name="DestQueueA" create="always"/>
+               <response>
+                  <connectionFactory name="ResponseCF"/>
+                  <destination name="RespQueueA" create="always"/>
+               </response>
+            </binding.jms>  
+        </service> 
+    </component>       
+
+</composite>

Added: 
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/resources/jndi.properties
URL: 
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/resources/jndi.properties?rev=743681&view=auto
==============================================================================
--- 
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/resources/jndi.properties
 (added)
+++ 
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/main/resources/jndi.properties
 Thu Feb 12 10:38:54 2009
@@ -0,0 +1,39 @@
+## ---------------------------------------------------------------------------
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements.  See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License.  You may obtain a copy of the License at
+## 
+## http://www.apache.org/licenses/LICENSE-2.0
+## 
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+## ---------------------------------------------------------------------------
+
+# START SNIPPET: jndi
+
+java.naming.factory.initial = 
org.apache.activemq.jndi.ActiveMQInitialContextFactory
+
+# use the following property to configure the default connector
+java.naming.provider.url = vm://localhost?broker.persistent=false
+
+# use the following property to specify the JNDI name the connection factory
+# should appear as. 
+#connectionFactoryNames = connectionFactory, queueConnectionFactory, 
topicConnectionFactry
+connectionFactoryNames = ConnectionFactory, ResponseCF
+
+# register some queues in JNDI using the form
+# queue.[jndiName] = [physicalName]
+queue.RequestQueue = RequestQueue
+queue.ResponseQueue = ResponseQueue
+
+# register some topics in JNDI using the form
+# topic.[jndiName] = [physicalName]
+#topic.MyTopic = example.MyTopic
+
+# END SNIPPET: jndi

Added: 
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/test/java/org/apache/tuscany/sca/binding/jms/ResponseCFTestCase.java
URL: 
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/test/java/org/apache/tuscany/sca/binding/jms/ResponseCFTestCase.java?rev=743681&view=auto
==============================================================================
--- 
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/test/java/org/apache/tuscany/sca/binding/jms/ResponseCFTestCase.java
 (added)
+++ 
tuscany/branches/sca-java-1.x/itest/jms-responsecf/src/test/java/org/apache/tuscany/sca/binding/jms/ResponseCFTestCase.java
 Thu Feb 12 10:38:54 2009
@@ -0,0 +1,53 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package org.apache.tuscany.sca.binding.jms;
+
+import static org.junit.Assert.assertEquals;
+
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ * This shows how to test the JMS binding using a response ConnectionFactory
+ */
+public class ResponseCFTestCase {
+
+    private static SCADomain scaDomain;
+
+    @Before
+    public void init() {
+        scaDomain =
+            SCADomain.newInstance("http://localhost";, "/", 
"cf/client.composite", "cf/service.composite");
+    }
+
+    @Test
+    public void testHelloWorldCreate() throws Exception {
+        HelloWorldService helloWorldService = 
scaDomain.getService(HelloWorldService.class, "HelloWorldClient");
+        assertEquals("jmsHello Petra", helloWorldService.sayHello("Petra"));
+    }
+
+    @After
+    public void end() {
+        if (scaDomain != null) {
+            scaDomain.close();
+        }
+    }
+}

Modified: 
tuscany/branches/sca-java-1.x/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/NonSCAClientTestCase.java
URL: 
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/NonSCAClientTestCase.java?rev=743681&r1=743680&r2=743681&view=diff
==============================================================================
--- 
tuscany/branches/sca-java-1.x/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/NonSCAClientTestCase.java
 (original)
+++ 
tuscany/branches/sca-java-1.x/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/NonSCAClientTestCase.java
 Thu Feb 12 10:38:54 2009
@@ -121,7 +121,7 @@
     }
 
     protected static void sendTextMessage(String destName, String payload) 
throws JMSException, NamingException {
-        JMSResourceFactory rf = new JMSResourceFactoryImpl(null, null, 
"tcp://localhost:61618");
+        JMSResourceFactory rf = new JMSResourceFactoryImpl(null, null, null, 
"tcp://localhost:61618");
         Session session = rf.getConnection().createSession(false, 
Session.AUTO_ACKNOWLEDGE);
         MessageProducer p = 
session.createProducer(rf.lookupDestination(destName));
         rf.getConnection().start();
@@ -131,7 +131,7 @@
     }
 
     protected static void sendObjectMessage(String destName, Object payload) 
throws JMSException, NamingException {
-        JMSResourceFactory rf = new JMSResourceFactoryImpl(null, null, 
"tcp://localhost:61618");
+        JMSResourceFactory rf = new JMSResourceFactoryImpl(null, null, null, 
"tcp://localhost:61618");
         Session session = rf.getConnection().createSession(false, 
Session.AUTO_ACKNOWLEDGE);
         MessageProducer p = 
session.createProducer(rf.lookupDestination(destName));
         rf.getConnection().start();


Reply via email to