geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: rev 47603 - in geronimo/trunk/itests/naming/client/src: client/META-INF java/org/apache/geronimo/itest/naming/client plan
Date Thu, 30 Sep 2004 18:04:01 GMT
Author: djencks
Date: Thu Sep 30 11:04:00 2004
New Revision: 47603

Modified:
   geronimo/trunk/itests/naming/client/src/client/META-INF/application-client.xml
   geronimo/trunk/itests/naming/client/src/java/org/apache/geronimo/itest/naming/client/App.java
   geronimo/trunk/itests/naming/client/src/plan/plan1.xml
Log:
add message-destination-ref example

Modified: geronimo/trunk/itests/naming/client/src/client/META-INF/application-client.xml
==============================================================================
--- geronimo/trunk/itests/naming/client/src/client/META-INF/application-client.xml	(original)
+++ geronimo/trunk/itests/naming/client/src/client/META-INF/application-client.xml	Thu Sep
30 11:04:00 2004
@@ -23,5 +23,16 @@
         <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
     </resource-env-ref>
 
+    <message-destination-ref>
+        <message-destination-ref-name>jms/Topic</message-destination-ref-name>
+        <message-destination-type>javax.jms.Topic</message-destination-type>
+        <message-destination-usage>Consumes</message-destination-usage>
+        <message-destination-link>SampleTopic</message-destination-link>
+    </message-destination-ref>
+
+    <message-destination>
+        <message-destination-name>SampleTopic</message-destination-name>
+    </message-destination>
+
 </application-client>
 

Modified: geronimo/trunk/itests/naming/client/src/java/org/apache/geronimo/itest/naming/client/App.java
==============================================================================
--- geronimo/trunk/itests/naming/client/src/java/org/apache/geronimo/itest/naming/client/App.java
(original)
+++ geronimo/trunk/itests/naming/client/src/java/org/apache/geronimo/itest/naming/client/App.java
Thu Sep 30 11:04:00 2004
@@ -7,6 +7,7 @@
 import javax.sql.DataSource;
 import javax.jms.ConnectionFactory;
 import javax.jms.Queue;
+import javax.jms.Topic;
 
 import org.apache.geronimo.naming.java.javaURLContextFactory;
 import org.apache.geronimo.naming.java.RootContext;
@@ -36,5 +37,8 @@
 
         o = initialContext.lookup("java:comp/env/jms/Queue");
         Queue jmsQueue = (Queue) o;
+
+        o = initialContext.lookup("java:comp/env/jms/Topic");
+        Topic jmsTopic = (Topic) o;
     }
 }

Modified: geronimo/trunk/itests/naming/client/src/plan/plan1.xml
==============================================================================
--- geronimo/trunk/itests/naming/client/src/plan/plan1.xml	(original)
+++ geronimo/trunk/itests/naming/client/src/plan/plan1.xml	Thu Sep 30 11:04:00 2004
@@ -96,7 +96,7 @@
                       <match-one/>
                     </single-pool>
                   </connectionmanager>
-                  <!--credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface-->
+                  <credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface>
                 </connectiondefinition-instance>
               </connection-definition>
             </outbound-resourceadapter>
@@ -109,11 +109,11 @@
               </adminobject-instance>
             </adminobject>
             <adminobject>
-              <adminobject-interface>javax.jms.Queue</adminobject-interface>
-              <adminobject-class>org.codehaus.activemq.message.ActiveMQQueue</adminobject-class>
+              <adminobject-interface>javax.jms.Topic</adminobject-interface>
+              <adminobject-class>org.codehaus.activemq.message.ActiveMQTopic</adminobject-class>
               <adminobject-instance>
-                <message-destination-name>SendReceiveQueue</message-destination-name>
-                <config-property-setting name="PhysicalName">SendReceiveQueue</config-property-setting>
+                <message-destination-name>SampleTopic</message-destination-name>
+                <config-property-setting name="PhysicalName">SampleTopic</config-property-setting>
               </adminobject-instance>
             </adminobject>
           </resourceadapter>

Mime
View raw message