Subscribe one topic to another topic using Microsoft servicebus










-1















Is it possible to subscribe one topic in servicebus to another topic in same service bus.If possible how to achieve this functionality during runtime(through code).
Thank you.










share|improve this question






















  • Do you want to chain a subscription to another topic that is part of the same namespace. If so, you could try to use the service bus auto-forwarding feature. Please refer to this article.

    – Joey Cai
    Nov 15 '18 at 8:44











  • @JoeyCai,Yeah Joey working on it and subscription of one topic to another topic is working perfectly by using auto-forwarding feature.Thank you so much for the help.But still found some issues in some cases and trying to solve them

    – Mounika
    Nov 16 '18 at 9:47















-1















Is it possible to subscribe one topic in servicebus to another topic in same service bus.If possible how to achieve this functionality during runtime(through code).
Thank you.










share|improve this question






















  • Do you want to chain a subscription to another topic that is part of the same namespace. If so, you could try to use the service bus auto-forwarding feature. Please refer to this article.

    – Joey Cai
    Nov 15 '18 at 8:44











  • @JoeyCai,Yeah Joey working on it and subscription of one topic to another topic is working perfectly by using auto-forwarding feature.Thank you so much for the help.But still found some issues in some cases and trying to solve them

    – Mounika
    Nov 16 '18 at 9:47













-1












-1








-1








Is it possible to subscribe one topic in servicebus to another topic in same service bus.If possible how to achieve this functionality during runtime(through code).
Thank you.










share|improve this question














Is it possible to subscribe one topic in servicebus to another topic in same service bus.If possible how to achieve this functionality during runtime(through code).
Thank you.







azureservicebus servicebus azure-servicebus-topics






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 14 '18 at 12:55









MounikaMounika

96




96












  • Do you want to chain a subscription to another topic that is part of the same namespace. If so, you could try to use the service bus auto-forwarding feature. Please refer to this article.

    – Joey Cai
    Nov 15 '18 at 8:44











  • @JoeyCai,Yeah Joey working on it and subscription of one topic to another topic is working perfectly by using auto-forwarding feature.Thank you so much for the help.But still found some issues in some cases and trying to solve them

    – Mounika
    Nov 16 '18 at 9:47

















  • Do you want to chain a subscription to another topic that is part of the same namespace. If so, you could try to use the service bus auto-forwarding feature. Please refer to this article.

    – Joey Cai
    Nov 15 '18 at 8:44











  • @JoeyCai,Yeah Joey working on it and subscription of one topic to another topic is working perfectly by using auto-forwarding feature.Thank you so much for the help.But still found some issues in some cases and trying to solve them

    – Mounika
    Nov 16 '18 at 9:47
















Do you want to chain a subscription to another topic that is part of the same namespace. If so, you could try to use the service bus auto-forwarding feature. Please refer to this article.

– Joey Cai
Nov 15 '18 at 8:44





Do you want to chain a subscription to another topic that is part of the same namespace. If so, you could try to use the service bus auto-forwarding feature. Please refer to this article.

– Joey Cai
Nov 15 '18 at 8:44













@JoeyCai,Yeah Joey working on it and subscription of one topic to another topic is working perfectly by using auto-forwarding feature.Thank you so much for the help.But still found some issues in some cases and trying to solve them

– Mounika
Nov 16 '18 at 9:47





@JoeyCai,Yeah Joey working on it and subscription of one topic to another topic is working perfectly by using auto-forwarding feature.Thank you so much for the help.But still found some issues in some cases and trying to solve them

– Mounika
Nov 16 '18 at 9:47












3 Answers
3






active

oldest

votes


















0














As I have said, the Service Bus autoforwarding feature enables you to chain a queue or subscription to another queue or topic that is part of the same namespace.



When autoforwarding is enabled, Service Bus automatically removes messages that are placed in the first queue or subscription (source) and puts them in the second queue or topic (destination). It is still possible to send a message to the destination entity directly. Also, it is not possible to chain a subqueue, such as a deadletter queue, to another queue or topic.



You can enable autoforwarding by setting the SubscriptionDescription.ForwardTo properties on the SubscriptionDescription objects for the source, as in the following example:



SubscriptionDescription srcSubscription = new SubscriptionDescription (srcTopic, srcSubscriptionName);
srcSubscription.ForwardTo = destTopic;
namespaceManager.CreateSubscription(srcSubscription));


For more details, you could refer to this article.






share|improve this answer






























    0














    You can forward the messages of your topic subscription to another topic using the Auto forward property. The messages from your main queue of your topic subscription can be forwarded to another topic using forwardTo property of your topic subscription. If you want to forward messages in your dead-letter sub queue of topic subscription , you can use forwardDeadLetteredMessagesTo property of topic subscription.




    One limitation in setting the forwardTo property is that you can forward messages only to the queues and topics within the same namespace.To know more on autoforwarding refer here







    share|improve this answer






























      0














      If you want to send Messages from Topic A to Topic B
      Create a subscription under Topic A and forward all messages to Topic B.



      :)



      Hope this helps






      share|improve this answer
























        Your Answer






        StackExchange.ifUsing("editor", function ()
        StackExchange.using("externalEditor", function ()
        StackExchange.using("snippets", function ()
        StackExchange.snippets.init();
        );
        );
        , "code-snippets");

        StackExchange.ready(function()
        var channelOptions =
        tags: "".split(" "),
        id: "1"
        ;
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function()
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled)
        StackExchange.using("snippets", function()
        createEditor();
        );

        else
        createEditor();

        );

        function createEditor()
        StackExchange.prepareEditor(
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        imageUploader:
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        ,
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        );



        );













        draft saved

        draft discarded


















        StackExchange.ready(
        function ()
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53300761%2fsubscribe-one-topic-to-another-topic-using-microsoft-servicebus%23new-answer', 'question_page');

        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        0














        As I have said, the Service Bus autoforwarding feature enables you to chain a queue or subscription to another queue or topic that is part of the same namespace.



        When autoforwarding is enabled, Service Bus automatically removes messages that are placed in the first queue or subscription (source) and puts them in the second queue or topic (destination). It is still possible to send a message to the destination entity directly. Also, it is not possible to chain a subqueue, such as a deadletter queue, to another queue or topic.



        You can enable autoforwarding by setting the SubscriptionDescription.ForwardTo properties on the SubscriptionDescription objects for the source, as in the following example:



        SubscriptionDescription srcSubscription = new SubscriptionDescription (srcTopic, srcSubscriptionName);
        srcSubscription.ForwardTo = destTopic;
        namespaceManager.CreateSubscription(srcSubscription));


        For more details, you could refer to this article.






        share|improve this answer



























          0














          As I have said, the Service Bus autoforwarding feature enables you to chain a queue or subscription to another queue or topic that is part of the same namespace.



          When autoforwarding is enabled, Service Bus automatically removes messages that are placed in the first queue or subscription (source) and puts them in the second queue or topic (destination). It is still possible to send a message to the destination entity directly. Also, it is not possible to chain a subqueue, such as a deadletter queue, to another queue or topic.



          You can enable autoforwarding by setting the SubscriptionDescription.ForwardTo properties on the SubscriptionDescription objects for the source, as in the following example:



          SubscriptionDescription srcSubscription = new SubscriptionDescription (srcTopic, srcSubscriptionName);
          srcSubscription.ForwardTo = destTopic;
          namespaceManager.CreateSubscription(srcSubscription));


          For more details, you could refer to this article.






          share|improve this answer

























            0












            0








            0







            As I have said, the Service Bus autoforwarding feature enables you to chain a queue or subscription to another queue or topic that is part of the same namespace.



            When autoforwarding is enabled, Service Bus automatically removes messages that are placed in the first queue or subscription (source) and puts them in the second queue or topic (destination). It is still possible to send a message to the destination entity directly. Also, it is not possible to chain a subqueue, such as a deadletter queue, to another queue or topic.



            You can enable autoforwarding by setting the SubscriptionDescription.ForwardTo properties on the SubscriptionDescription objects for the source, as in the following example:



            SubscriptionDescription srcSubscription = new SubscriptionDescription (srcTopic, srcSubscriptionName);
            srcSubscription.ForwardTo = destTopic;
            namespaceManager.CreateSubscription(srcSubscription));


            For more details, you could refer to this article.






            share|improve this answer













            As I have said, the Service Bus autoforwarding feature enables you to chain a queue or subscription to another queue or topic that is part of the same namespace.



            When autoforwarding is enabled, Service Bus automatically removes messages that are placed in the first queue or subscription (source) and puts them in the second queue or topic (destination). It is still possible to send a message to the destination entity directly. Also, it is not possible to chain a subqueue, such as a deadletter queue, to another queue or topic.



            You can enable autoforwarding by setting the SubscriptionDescription.ForwardTo properties on the SubscriptionDescription objects for the source, as in the following example:



            SubscriptionDescription srcSubscription = new SubscriptionDescription (srcTopic, srcSubscriptionName);
            srcSubscription.ForwardTo = destTopic;
            namespaceManager.CreateSubscription(srcSubscription));


            For more details, you could refer to this article.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 16 '18 at 9:55









            Joey CaiJoey Cai

            5,4701211




            5,4701211























                0














                You can forward the messages of your topic subscription to another topic using the Auto forward property. The messages from your main queue of your topic subscription can be forwarded to another topic using forwardTo property of your topic subscription. If you want to forward messages in your dead-letter sub queue of topic subscription , you can use forwardDeadLetteredMessagesTo property of topic subscription.




                One limitation in setting the forwardTo property is that you can forward messages only to the queues and topics within the same namespace.To know more on autoforwarding refer here







                share|improve this answer



























                  0














                  You can forward the messages of your topic subscription to another topic using the Auto forward property. The messages from your main queue of your topic subscription can be forwarded to another topic using forwardTo property of your topic subscription. If you want to forward messages in your dead-letter sub queue of topic subscription , you can use forwardDeadLetteredMessagesTo property of topic subscription.




                  One limitation in setting the forwardTo property is that you can forward messages only to the queues and topics within the same namespace.To know more on autoforwarding refer here







                  share|improve this answer

























                    0












                    0








                    0







                    You can forward the messages of your topic subscription to another topic using the Auto forward property. The messages from your main queue of your topic subscription can be forwarded to another topic using forwardTo property of your topic subscription. If you want to forward messages in your dead-letter sub queue of topic subscription , you can use forwardDeadLetteredMessagesTo property of topic subscription.




                    One limitation in setting the forwardTo property is that you can forward messages only to the queues and topics within the same namespace.To know more on autoforwarding refer here







                    share|improve this answer













                    You can forward the messages of your topic subscription to another topic using the Auto forward property. The messages from your main queue of your topic subscription can be forwarded to another topic using forwardTo property of your topic subscription. If you want to forward messages in your dead-letter sub queue of topic subscription , you can use forwardDeadLetteredMessagesTo property of topic subscription.




                    One limitation in setting the forwardTo property is that you can forward messages only to the queues and topics within the same namespace.To know more on autoforwarding refer here








                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Nov 19 '18 at 4:29









                    Ranjith eswaranRanjith eswaran

                    171111




                    171111





















                        0














                        If you want to send Messages from Topic A to Topic B
                        Create a subscription under Topic A and forward all messages to Topic B.



                        :)



                        Hope this helps






                        share|improve this answer





























                          0














                          If you want to send Messages from Topic A to Topic B
                          Create a subscription under Topic A and forward all messages to Topic B.



                          :)



                          Hope this helps






                          share|improve this answer



























                            0












                            0








                            0







                            If you want to send Messages from Topic A to Topic B
                            Create a subscription under Topic A and forward all messages to Topic B.



                            :)



                            Hope this helps






                            share|improve this answer















                            If you want to send Messages from Topic A to Topic B
                            Create a subscription under Topic A and forward all messages to Topic B.



                            :)



                            Hope this helps







                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited Nov 19 '18 at 7:48

























                            answered Nov 15 '18 at 10:57









                            Burim HajrizajBurim Hajrizaj

                            15311




                            15311



























                                draft saved

                                draft discarded
















































                                Thanks for contributing an answer to Stack Overflow!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid


                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.

                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function ()
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53300761%2fsubscribe-one-topic-to-another-topic-using-microsoft-servicebus%23new-answer', 'question_page');

                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                Use pre created SQLite database for Android project in kotlin

                                Darth Vader #20

                                Ondo