Get Consumer Example Code

<p class="shortdesc">This article describes how to get a consumer example code.</p> <section class="section prereq" id="code_consumer__prereq_kmw_kbx_cmb"><div class="tasklabel"><h2 class="doc-tairway">Before you begin</h2></div> <p class="p">You have successfully applied for Subscription. For more information, see <a class="xref" href="https://pinganyun.com/ssr/help/middleware/pamq/quickstart.subscribe" target="_blank">Subscribe</a>.</p> </section> <section class="section context"><div class="tasklabel"><h2 class="doc-tairway">About this task</h2></div> <p class="p">Example code provides example codes for message consuming on consumer client, which can automatically enter Topic, Consumer ID, Access Point, and other parameters. Without manual operation, it helps you quickly integrate SDK into the client application of consumers.</p> </section> <section><div class="tasklabel"><h2 class="doc-tairway">Procedure</h2></div><ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">Log in to the <a class="xref" href="https://pinganyun.com/console/mq/topic/list" target="_blank">MQ Console</a>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">In the left navigation pane, click <span class="ph menucascade"><span class="ph uicontrol">Publish/Subscribe</span><abbr title="and then"> > </abbr><span class="ph uicontrol">Subscribe Manage</span></span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">On the <span class="keyword wintitle">Subscribe Management</span> page, select the target region.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Click <span class="ph uicontrol">Example Code</span> in the <span class="ph uicontrol">Operation</span> column of the target consumer.</span> </li><li class="li step stepexpand"> <span class="ph cmd">On the <span class="keyword wintitle">Example Code(java)</span> page, click<span class="ph uicontrol">Copy</span>.</span> <div class="itemgroup info"> <img class="image" id="code_consumer__image_afh_3vx_dmb" src="https://obs-cn-shanghai.yun.pingan.com/pcp-portal/20202209170658-1ab650249228.png"> </div> </li></ol></section>
Did the above content solve your problem? Yes No
Please complete information!

Call us

400-151-8800

Email us

cloud@pingan.com

Online customer service

Instant reply

Technical Support

cloud products