{"id":310056,"date":"2020-09-17T03:00:16","date_gmt":"2020-09-17T03:00:16","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=310056"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=310056","title":{"rendered":"Multi connection IBM MQ \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Spring"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/519466\/\">\u041f\u0440\u0438\u0432\u0435\u0434\u0443 \u043f\u0440\u0438\u043c\u0435\u0440 \u043a\u0430\u043a \u0441\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e endpoints \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a IBM MQ.<\/p>\n<p>  \u0426\u0435\u043b\u044c: <\/p>\n<ul>\n<li>\u0447\u0438\u0442\u0430\u0442\u044c \u0438\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043e\u0447\u0435\u0440\u0435\u0434\u0435\u0439, \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e, \u043d\u043e \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u0445\u0441\u044f \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u0445\u043e\u0441\u0442\u0430\u0445\/\u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430\u0445 \u043e\u0447\u0435\u0440\u0435\u0434\u0435\u0439<\/li>\n<li>\u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0442\u0432\u0435\u0442 \u0432 \u0440\u0430\u043d\u0434\u043e\u043c\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u0443\u044e \u043d\u043e\u0434\u0443<\/li>\n<\/ul>\n<p>  0. \u0411\u0443\u0434\u0435\u043c \u0441\u0447\u0438\u0442\u0430\u0442\u044c, \u0447\u0442\u043e \u0432\u044b \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0443\u0436\u0435 \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u043b\u0438 MQ \u0438\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435\u0441\u044c \u0447\u044c\u0435\u0439-\u0442\u043e.<br \/>  <a name=\"habracut\"><\/a><br \/>  1. \u041f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442:<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">maven<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;dependency&gt;     &lt;groupId&gt;com.ibm.mq&lt;\/groupId&gt;     &lt;artifactId&gt;mq-jms-spring-boot-starter&lt;\/artifactId&gt;     &lt;version&gt;2.3.3&lt;\/version&gt; &lt;\/dependency&gt;<\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">gradle<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">compile group: 'com.ibm.mq', name: 'mq-jms-spring-boot-starter', version: '2.3.3'<\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<p>  2. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433, \u0432\u0432\u043e\u0434\u0438\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0432\u0430\u0448\u0438\u0445 \u0442\u043e\u0447\u0435\u043a (\u0432\u044b \u0436\u0435 \u0438\u0445 \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0443\u0436\u0435?). \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043c\u0430\u0441\u0441\u0438\u0432, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u043a\u043e\u043b\u044c \u0443\u0433\u043e\u0434\u043d\u043e \u043c\u043d\u043e\u0433\u043e.<\/p>\n<pre><code class=\"plaintext\">mq:   servers:     - queueManager: QM1       channel: DEV.ADMIN.SVRCONN       connName: ibmmq.ru(1414)       user: admin       password: passw0rd     - queueManager: QM2       channel: DEV.ADMIN.SVRCONN       connName: ibmmq.ru(1415)       user: admin       password: passw0rd   queue1: QUEUE1   queue2: QUEUE2 <\/code><\/pre>\n<p>  3. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u043b\u0430\u0441\u0441\u044b \u0434\u043b\u044f \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u044d\u0442\u0438\u0445 \u043f\u0440\u043e\u043f\u0435\u0440\u0442\u0435\u0439:<\/p>\n<pre><code class=\"java\">import lombok.Data; import lombok.EqualsAndHashCode; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.Configuration;  @Configuration @ConfigurationProperties(prefix = &quot;mq&quot;) @EqualsAndHashCode(callSuper = false) @Data public class MqConfig {     private List&lt;ConnectionConfiguration&gt; servers;     private String queue1;     private String queue2;  } <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"java\">import lombok.Data; import lombok.EqualsAndHashCode;  @Data @EqualsAndHashCode(callSuper = false) public class ConnectionConfiguration {     String queueManager;     String channel;     String connName;     String user;     String password; } <\/code><\/pre>\n<p>  4. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u043b\u0443\u0448\u0430\u0442\u0435\u043b\u044f:<\/p>\n<pre><code class=\"java\">import javax.jms.MessageListener; import lombok.SneakyThrows; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.messaging.handler.annotation.Payload; import org.springframework.stereotype.Component;  @Component @Slf4j public class MqListener implements MessageListener {      @SneakyThrows     @Override     public void onMessage(@Payload javax.jms.Message message) {         log.info(&quot;\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 &lt;&quot; + message + &quot;&gt;&quot;);         \/\/TODO: \u0441\u044e\u0434\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0443 \u043e\u0442\u0432\u0435\u0442\u0430 \u0447\u0443\u0442\u044c \u043f\u043e\u0437\u0436\u0435     } <\/code><\/pre>\n<p>  5. \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c! \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u043a\u043e\u043d\u043d\u0435\u043a\u0448\u0438\u043e\u043d\u0424\u0430\u043a\u0442\u043e\u0440\u0438 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0438\u0437 yml-\u043f\u0440\u043e\u043f\u0435\u0440\u0442\u0435\u0439. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043b\u0438\u0441\u0442 \u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442\u043e\u0432 \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439, \u043d\u0430 \u0432\u0445\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0441\u043a\u0430\u0440\u043c\u043b\u0438\u0432\u0430\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u044b. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0431\u0440\u0438\u043a\u0438 \u0441\u043b\u0443\u0448\u0430\u0442\u0435\u043b\u0435\u0439, \u043d\u0430 \u0432\u0445\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0442\u0430\u043a\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 connectionFactories. <\/p>\n<pre><code class=\"java\"> import com.fasterxml.jackson.databind.ObjectMapper; import com.ibm.mq.jms.MQConnectionFactory; import com.ibm.msg.client.wmq.WMQConstants; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.jms.annotation.EnableJms; import org.springframework.jms.config.*; import org.springframework.jms.connection.CachingConnectionFactory; import org.springframework.jms.core.JmsTemplate; import org.springframework.jms.support.QosSettings; import org.springframework.jms.support.converter.MappingJackson2MessageConverter; import org.springframework.jms.support.converter.MessageConverter; import org.springframework.jms.support.converter.MessageType; import org.springframework.jms.support.converter.SimpleMessageConverter;  import javax.jms.*; import java.util.*;  import static javax.jms.DeliveryMode.NON_PERSISTENT; import static javax.jms.Session.CLIENT_ACKNOWLEDGE;  @Configuration @EnableJms @Slf4j public class MqConfiguration {      @Autowired     MqConfig mqConfig;      @Autowired     private JmsListenerEndpointRegistry registry;  \/\/\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0431\u0440\u0438\u043a\u0438 \u0441\u043b\u0443\u0448\u0430\u0442\u0435\u043b\u0435\u0439, \u043d\u0430 \u0432\u0445\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0442\u0430\u043a\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 connectionFactories     @Bean     public List&lt;JmsListenerContainerFactory&gt; myFactories(             @Qualifier(&quot;myConnFactories&quot;)              List&lt;CachingConnectionFactory&gt; connectionFactories,             MqListener mqListener) {         List&lt;JmsListenerContainerFactory&gt; factories = new ArrayList&lt;&gt;();         connectionFactories.forEach(connectionFactory -&gt; {             DefaultJmsListenerContainerFactory factory = new DefaultJmsListenerContainerFactory();             factory.setConnectionFactory(connectionFactory);             factory.setSessionAcknowledgeMode(CLIENT_ACKNOWLEDGE);              QosSettings qosSettings = new QosSettings();             qosSettings.setDeliveryMode(NON_PERSISTENT);             factory.setReplyQosSettings(qosSettings);              SimpleJmsListenerEndpoint endpoint = new SimpleJmsListenerEndpoint();             endpoint.setId(&quot;myJmsEndpoint-&quot;+ UUID.randomUUID());             endpoint.setDestination(mqConfig.getQueue1());             endpoint.setMessageListener(mqListener);             registry.registerListenerContainer(endpoint, factory);              factories.add(factory);         });         return factories;     } \/\/\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043b\u0438\u0441\u0442 \u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442\u043e\u0432 \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439, \u043d\u0430 \u0432\u0445\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0441\u043a\u0430\u0440\u043c\u043b\u0438\u0432\u0430\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u044b     @Bean     @Qualifier(&quot;myJmsTemplates&quot;)     public List&lt;JmsTemplate&gt; jmsTemplates(             @Qualifier(&quot;myConnFactories&quot;)              List&lt;CachingConnectionFactory&gt; connectionFactories) {         return getJmsTemplates(new ArrayList&lt;ConnectionFactory&gt;(connectionFactories));     }      public List&lt;JmsTemplate&gt; getJmsTemplates(List&lt;ConnectionFactory&gt; connectionFactories) {         List&lt;JmsTemplate&gt; jmsTemplates = new ArrayList&lt;&gt;();         for (ConnectionFactory connectionFactory : connectionFactories) {             JmsTemplate jmsTemplate = new JmsTemplate();             jmsTemplate.setConnectionFactory(connectionFactory);             jmsTemplate.setMessageConverter(new SimpleMessageConverter());             jmsTemplate.setDefaultDestinationName(mqConfig.getQueue2());             jmsTemplate.setDeliveryMode(NON_PERSISTENT);             jmsTemplate.setDeliveryPersistent(false);             jmsTemplate.setExplicitQosEnabled(true);             jmsTemplates.add(jmsTemplate);         }         return jmsTemplates;     }  \/\/\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u043a\u043e\u043d\u043d\u0435\u043a\u0448\u0438\u043e\u043d\u0424\u0430\u043a\u0442\u043e\u0440\u0438 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0438\u0437 yml-\u043f\u0440\u043e\u043f\u0435\u0440\u0442\u0435\u0439     @Bean     @Qualifier(&quot;myConnFactories&quot;)     public List&lt;CachingConnectionFactory&gt; connectionFactories() throws JMSException {         List&lt;CachingConnectionFactory&gt; factories = new ArrayList&lt;&gt;();          for (ConnectionConfiguration server : mqConfig.getServers()) {             CachingConnectionFactory cachingConnectionFactory = new CachingConnectionFactory();             MQConnectionFactory cf = new MQConnectionFactory();             cachingConnectionFactory.setTargetConnectionFactory(cf);             cf.setQueueManager(server.getQueueManager());             cf.setChannel(server.getChannel());             cf.setConnectionNameList(server.getConnName());             cf.setStringProperty(WMQConstants.USERID, server.getUser());             cf.setStringProperty(WMQConstants.PASSWORD, server.getPassword());             cf.setStringProperty(&quot;XMSC_WMQ_CONNECTION_MODE&quot;, &quot;1&quot;);              factories.add(cachingConnectionFactory);         }         return factories;     }  } <\/code><\/pre>\n<p>  <\/p>\n<blockquote><p>endpoint.setMessageListener(mqListener);<\/p><\/blockquote>\n<p> \u0417\u0434\u0435\u0441\u044c \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0441\u043b\u0443\u0448\u0430\u0442\u0435\u043b\u044f (\u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0432 \u043f.4), \u0447\u0442\u043e\u0431\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u0440\u0438 \u043f\u0440\u0438\u0435\u043c\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f.<\/p>\n<p>  6. \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u043d\u044b\u0439 \u0441\u043b\u043e\u0439, \u0433\u0434\u0435 \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c \u0431\u0443\u0434\u0435\u0442 \u043a\u0430\u043a\u0430\u044f-\u0442\u043e \u043b\u043e\u0433\u0438\u043a\u0430 \u0438 \u043f\u043e\u0441\u043b\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u043e\u0442\u0432\u0435\u0442\u0430.<\/p>\n<pre><code class=\"java\">import javax.jms.TextMessage;  public interface MqService {      void sendToMq(TextMessage msg);  } <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"java\">import javax.jms.TextMessage; import org.springframework.jms.JmsException; import org.springframework.jms.core.JmsTemplate; import org.springframework.stereotype.Service;  @Service @Slf4j public class MqServiceImpl implements MqService {      @Autowired     private MqConfig mqConfig;      @Autowired     @Qualifier(&quot;myJmsTemplates&quot;)     List&lt;JmsTemplate&gt; jmsTemplates;       @Override     public void sendToMq(TextMessage msg ) {         \/\/\u043a\u0430\u043a\u0430\u044f-\u0442\u043e \u043b\u043e\u0433\u0438\u043a\u0430         \/\/\u0440\u0430\u043d\u0434\u043e\u043c\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u0432 \u043a\u0430\u043a\u0443\u044e \u043d\u043e\u0434\u0443\/\u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435.         int maxIndex = jmsTemplates.size()-1; \/\/ \u041a\u043e\u043d\u0435\u0447\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430 - &quot;\u0434\u043e&quot;         int randomNumber = (int) Math.round(Math.random() * maxIndex);         jmsTemplates.get(randomNumber).convertAndSend(mqConfig.getQueue2(), msg);     } } <\/code><\/pre>\n<p>  7. \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0443 \u043e\u0442\u0432\u0435\u0442\u0430 \u0432 \u0441\u043b\u0443\u0448\u0430\u0442\u0435\u043b\u044c:<\/p>\n<pre><code class=\"java\">    @Autowired     MqService mqService;      @SneakyThrows     @Override     public void onMessage(@Payload javax.jms.Message message) {         log.info(&quot;\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 &lt;&quot; + message + &quot;&gt;&quot;);         mqService.sentToMq((TextMessage) message);     }  <\/code><\/pre>\n<p>  \u0412\u0443\u0430\u043b\u044f, \u0433\u043e\u0442\u043e\u0432\u043e, \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c.<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/519466\/\"> https:\/\/habr.com\/ru\/post\/519466\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/519466\/\">\u041f\u0440\u0438\u0432\u0435\u0434\u0443 \u043f\u0440\u0438\u043c\u0435\u0440 \u043a\u0430\u043a \u0441\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e endpoints \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a IBM MQ.<\/p>\n<p>  \u0426\u0435\u043b\u044c: <\/p>\n<ul>\n<li>\u0447\u0438\u0442\u0430\u0442\u044c \u0438\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043e\u0447\u0435\u0440\u0435\u0434\u0435\u0439, \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e, \u043d\u043e \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u0445\u0441\u044f \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u0445\u043e\u0441\u0442\u0430\u0445\/\u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430\u0445 \u043e\u0447\u0435\u0440\u0435\u0434\u0435\u0439<\/li>\n<li>\u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0442\u0432\u0435\u0442 \u0432 \u0440\u0430\u043d\u0434\u043e\u043c\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u0443\u044e \u043d\u043e\u0434\u0443<\/li>\n<\/ul>\n<p>  0. \u0411\u0443\u0434\u0435\u043c \u0441\u0447\u0438\u0442\u0430\u0442\u044c, \u0447\u0442\u043e \u0432\u044b \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0443\u0436\u0435 \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u043b\u0438 MQ \u0438\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435\u0441\u044c \u0447\u044c\u0435\u0439-\u0442\u043e.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-310056","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/310056","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=310056"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/310056\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=310056"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=310056"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=310056"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}