---
title: "rabbitmq-queueDeclarePassive"
author: "蝶盟紫"
date: "2015-12-01T09:36:48Z"
tags: []
categories: ["企业架构"]
slug: "rabbitmq-queuedeclarepassive"
draft: false
lastmod: "2015-12-01T09:36:48Z"
id: 2260667
url: "https://joandora.iteye.com/blog/2260667"
---

DeclareOk a = channel.queueDeclarePassive(q);

申明队列时，如果q在broker不存在，则会报错：

reply-code=404，reply-text=NOT\_FOUND

 

如果存在则会返回ok