80.4. 예제
예를 들어 일련의 메시지가 큐로 전송되었는지 테스트하려면 메시지를 손실하지 않고 큐에서 사용합니다.
// send the dataset to a queue from("dataset:foo").to("activemq:SomeQueue"); // now lets test that the messages are consumed correctly from("activemq:SomeQueue").to("dataset:foo");
// send the dataset to a queue
from("dataset:foo").to("activemq:SomeQueue");
// now lets test that the messages are consumed correctly
from("activemq:SomeQueue").to("dataset:foo");
위의 내용은 레지스트리를 참조하여 메시지를 생성하는 데 사용되는 foo ECDHE 인스턴스를 찾습니다.
그런 다음 아래에 설명된 것처럼 SimpleDataSet
을 사용하여 데이터 세트가 얼마나 큰지와 메시지가 어떻게 보이는지와 같은ECDHE 구현을 만듭니다.