package com.megatim.fdxconsultation.service.impl.camel.routes.in;
|
|
import com.fdx.messaging.common.FdxMessagingContext;
|
import com.fdx.messaging.common.StandaloneServerState;
|
import com.megatim.fdxconsultation.service.impl.camel.consumer.StandaloneServerStateConsumer;
|
import com.megatim.fdxconsultation.service.resolvers.JacksonMapperFormat;
|
import org.apache.camel.builder.RouteBuilder;
|
|
/**
|
*
|
* @author ASUS
|
*/
|
public class StandaloneServerStateConsumerRoute extends RouteBuilder {
|
|
@Override
|
public void configure() throws Exception {
|
|
from("rabbitmq:"
|
+ FdxMessagingContext.STANDALONE_SERVER_EXCHANGE
|
+ "?queue=" + FdxMessagingContext.STANDALONE_SERVER_QUEUE
|
+ "&routingKey=" + FdxMessagingContext.STANDALONE_SERVER_ROUTING_KEY
|
+ "&autoDelete=false")
|
.unmarshal(JacksonMapperFormat.jacksonDataFormat(StandaloneServerState.class))
|
.bean(StandaloneServerStateConsumer.class);
|
}
|
}
|