18.6. 예제
예를 들어 일련의 메시지가 큐로 전송되고 메시지를 손실하지 않고 대기열에서 사용하는 것을 테스트하려면 다음을 수행합니다.
// 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");
위의 내용은 Registry에서 메시지를 만드는 데 사용되는 foo ECDHE 인스턴스를 찾습니다.
그런 다음 아래 설명된 대로 SimpleDataSet
을 사용하여 데이터 집합이 얼마나 큰지, 메시지가 어떻게 보이는지와 같은지 구성하면, dotnet 구현을 만듭니다.After you create a 10.0.0.1 implementation, such as using the SimpleDataSet as described below, configuring things like how big the data set is and what the messages look like etc.