Get a Producer Example Code

<p class="shortdesc">This chapter describes how to get a producer example code.</p> <section class="section prereq" id="code_producer__prereq_kmw_kbx_cmb"><div class="tasklabel"><h2 class="doc-tairway">Before you begin</h2></div> <p class="p">You have successfully applied for publishing. For more information, see <a class="xref" href="https://pinganyun.com/ssr/help/middleware/pamq/quickstart.publish" target="_blank">Publish Manage</a>.</p> </section> <section class="section context"><div class="tasklabel"><h2 class="doc-tairway">About this task</h2></div> <p class="p">Producer example code provides example codes for message sending on the producer client, which can automatically enter Topic, Producer ID, Access Point, and other parameters. Without manual operation, it helps you quickly integrate SDK into producer client application.</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">Publish Manage</span></span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">On the <span class="keyword wintitle">Publish Management</span> page, select the target region.</span> </li><li class="li step stepexpand"> <span class="ph cmd">In the <span class="ph uicontrol">Operation</span> column of the target producer, click <span class="ph uicontrol">Example Code</span>.</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_producer__image_n5j_htx_dmb" src="https://obs-cn-shanghai.yun.pingan.com/pcp-portal/20202209170658-125b68b29b42.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