You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Rob Godfrey (JIRA)" <ji...@apache.org> on 2014/01/15 14:25:20 UTC

[jira] [Commented] (QPID-4991) JMS AMQP 1.0 API Session.createTopic( "TEST" ) does not work as expected

    [ https://issues.apache.org/jira/browse/QPID-4991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13872040#comment-13872040 ] 

Rob Godfrey commented on QPID-4991:
-----------------------------------

Properties  "queuePrefix" and "topicPrefix" were added to the ConnectionFactory to allow for a ConnectionFactory to prefix the AMQP addresses generated from JMS names in a way which would give the same behaviour as the ActiveMQ client.  That is by setting the topicPrefix to "topic://" on the ConnectionFactory, the client will translate a request for Session.createTopic("TEST") into a request to link to AMQP address "topic://TEST".  This onviously has to be set up on a per-ConnectionFactory basis.

> JMS AMQP 1.0 API Session.createTopic( "TEST" ) does not work as expected
> ------------------------------------------------------------------------
>
>                 Key: QPID-4991
>                 URL: https://issues.apache.org/jira/browse/QPID-4991
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: 0.22
>         Environment: all
>            Reporter: Axel Podehl
>            Priority: Minor
>
> I've read that AMQP topics should start with "topic://" prefix, but that's really not JMS standard (compare TIBCO EMS or IBM MQSeries implementation). 
> If you create a consumer with Session.createTopic( "TEST" ), this call does return a org.apache.qpid.amqp_1_0.jms.impl.TopicImpl, but when I publish to it with a producer using Session.createTopic( "topic://TEST" ) the message is not received.
> I think, the call to Session.createTopic( String dest ) should automatically add the "topic://" prefix if it's not there such that createTopic() always creates a working topic.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org