You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "willem Jiang (JIRA)" <ji...@apache.org> on 2007/05/25 12:54:16 UTC

[jira] Created: (CXF-690) durable subscriptions is not set in JMS transport

durable subscriptions is not set in JMS transport
-------------------------------------------------

                 Key: CXF-690
                 URL: https://issues.apache.org/jira/browse/CXF-690
             Project: CXF
          Issue Type: Bug
          Components: Transports
    Affects Versions: 2.0-RC
            Reporter: willem Jiang
         Assigned To: willem Jiang
             Fix For: 2.0


I started working on cxf jms systems against Sonic MQ and have a question about JMS durable subscription.

 

In the system test jms_test.wsdl file, a durable subscriber name is defined.

 

    <service name="HelloWorldService">

           <port binding="tns:HelloWorldPortBinding" name="HelloWorldPort">

               <jms:address

                   jndiConnectionFactoryName="ConnectionFactory"

                   jndiDestinationName="dynamicQueues/test.jmstransport.text">

                   <jms:JMSNamingProperty name="java.naming.factory.initial" value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>

                   <jms:JMSNamingProperty name="java.naming.provider.url" value="tcp://localhost:61500"/>

               </jms:address>

           

               <jms:server durableSubscriberName="CXF_subscriber"/>

           </port>

</service>
 

It seems a durable subscription will be created by client, according to the line 469 in the file \rt\transports\jms\src\main\java\org\apache\cxf\transport\jms\JMSSessionFactory.java


When I ran the test with this service, the test ran fine, but I didn't see any created durable subscriptions from Sonic management console. Can you view durable subscriptions when testing ActiveMQ?  

The error was reproduced in ActiveMQ. 


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CXF-690) durable subscriptions is not set in JMS transport

Posted by "willem Jiang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

willem Jiang resolved CXF-690.
------------------------------

    Resolution: Fixed

CXF-jms-transport only support the topic pub&sub mode with the durable subscription.
The upper configuration will not setup the durable subscription in CXF even the server configured with the durableSubscirberName.

Added the unit tests in cxf-rt-transports-jms to show how to setup the durable subscription.
please see the revision 542137'  testDurableSubscriber() in JMSDestinationTest.

NOTE:
First you should define a the destinationStyle in address element, then you need to setup the durableSubscriptionClientId in server configuration which is loaded by spring.

> durable subscriptions is not set in JMS transport
> -------------------------------------------------
>
>                 Key: CXF-690
>                 URL: https://issues.apache.org/jira/browse/CXF-690
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 2.0-RC
>            Reporter: willem Jiang
>            Assignee: willem Jiang
>             Fix For: 2.0
>
>
> I started working on cxf jms systems against Sonic MQ and have a question about JMS durable subscription.
>  
> In the system test jms_test.wsdl file, a durable subscriber name is defined.
>  
>     <service name="HelloWorldService">
>            <port binding="tns:HelloWorldPortBinding" name="HelloWorldPort">
>                <jms:address
>                    jndiConnectionFactoryName="ConnectionFactory"
>                    jndiDestinationName="dynamicQueues/test.jmstransport.text">
>                    <jms:JMSNamingProperty name="java.naming.factory.initial" value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
>                    <jms:JMSNamingProperty name="java.naming.provider.url" value="tcp://localhost:61500"/>
>                </jms:address>
>            
>                <jms:server durableSubscriberName="CXF_subscriber"/>
>            </port>
> </service>
>  
> It seems a durable subscription will be created by client, according to the line 469 in the file \rt\transports\jms\src\main\java\org\apache\cxf\transport\jms\JMSSessionFactory.java
> When I ran the test with this service, the test ran fine, but I didn't see any created durable subscriptions from Sonic management console. Can you view durable subscriptions when testing ActiveMQ?  
> The error was reproduced in ActiveMQ. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.