diff --git a/nut-archetype/src/main/resources/archetype-resources/src/main/resources/logback.xml b/nut-archetype/src/main/resources/archetype-resources/src/main/resources/logback.xml index 500227c..f9dd846 100644 --- a/nut-archetype/src/main/resources/archetype-resources/src/main/resources/logback.xml +++ b/nut-archetype/src/main/resources/archetype-resources/src/main/resources/logback.xml @@ -10,8 +10,8 @@ - - - + + + \ No newline at end of file diff --git a/nut-corelationid/src/main/java/com/nutcore/nut/correlationid/ClientProducer.java b/nut-corelationid/src/main/java/com/nutcore/nut/correlationid/ClientProducer.java new file mode 100644 index 0000000..7407a3f --- /dev/null +++ b/nut-corelationid/src/main/java/com/nutcore/nut/correlationid/ClientProducer.java @@ -0,0 +1,19 @@ +package com.nutcore.nut.correlationid; + +import javax.enterprise.inject.Produces; +import javax.ws.rs.client.Client; +import javax.ws.rs.client.ClientBuilder; + +/** + * Created by davidecerbo on 14/11/2016. + */ +public class ClientProducer +{ + @Produces + public Client newClient() + { + return ClientBuilder + .newClient() + .register(new CorrelationIdClientRequestFilter()); + } +}