Skip to content

Commit

Permalink
#16 fix: PartychattingQueue 라우팅 키 #으로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
xhaktmchl committed Nov 7, 2022
1 parent de0b49f commit 5e873ef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class PartyChattingQueue {

static final String EXCHANGE_NAME = "chatting-room-exchange-test2";
static final String QUEUE_NAME = "chatting-room-queue-test2";
static final String ROUTING_KEY = "chatting.test.room.6364eb74fad92030c4841893"; // 라우팅 키, publishing 하는 방법을 결정.
static final String ROUTING_KEY = "chatting.test.room.#"; // 라우팅 키, publishing 하는 방법을 결정.

public PartyChattingQueue(RabbitTemplate rabbitTemplate ) {
this.rabbitTemplate = rabbitTemplate;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package shop.geeksasangchat.rabbitmq;

import com.rabbitmq.client.impl.AMQImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder;
Expand Down Expand Up @@ -75,12 +76,6 @@ public Queue PartyChattingRoomQueueTest2() {
System.out.println("=========chattingRoomQueue 큐 생성 및 빈 등록======");
return new Queue("chatting-room-queue-test2");
}
//
// @Bean
// public Queue PartyChattingRoomQueueTest5() {
// System.out.println("=========chattingRoomQueue5 큐 생성 및 빈 등록======");
// return new Queue("chatting-room-queue-test5");
// }

@Bean
public TopicExchange PartyChattingRoomTopicTest2() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
package shop.geeksasangchat.service;

import com.rabbitmq.client.AMQP;
import lombok.RequiredArgsConstructor;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import shop.geeksasangchat.domain.Chatting;
Expand Down

0 comments on commit 5e873ef

Please sign in to comment.