File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed
endpointdsl/src/main/resources
rest-cxf/src/main/java/org/apache/camel/example/springboot/cxf Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -20,3 +20,5 @@ camel.main.name = MyCamel
2020
2121# what to say
2222greeting = Hello World
23+
24+ management.endpoints.web.exposure.include =health,info
Original file line number Diff line number Diff line change 11{
22 "id" : 555 ,
3- "name" : " Daisy the parrot"
3+ "name" : " Daisy the parrot" ,
4+ "photoUrls" : []
45}
Original file line number Diff line number Diff line change 1818
1919import org .apache .camel .Exchange ;
2020import org .apache .camel .builder .RouteBuilder ;
21- import org .apache .camel .component .bean .BeanConstants ;
2221import org .apache .camel .component .bean .validator .BeanValidationException ;
2322
2423import org .springframework .stereotype .Component ;
@@ -44,8 +43,7 @@ public void configure() throws Exception {
4443 "&loggingFeatureEnabled=true" )
4544 .to ("bean-validator:user" )
4645 .to ("log:camel-cxf-log?showAll=true" )
47- .setHeader (BeanConstants .BEAN_METHOD_NAME , simple ("${header.operationName}" ))
48- .bean (UserServiceImpl .class );
46+ .toD ("bean:userServiceImpl?method=${header.operationName}" );
4947 // @formatter:on
5048 }
5149
Original file line number Diff line number Diff line change 2020import java .util .Map ;
2121import java .util .TreeMap ;
2222
23+ import org .springframework .stereotype .Component ;
24+
2325import jakarta .ws .rs .core .Response ;
2426
27+ @ Component
2528public class UserServiceImpl implements UserService {
2629
2730 private final Map <Integer , User > users = new TreeMap <>();
You can’t perform that action at this time.
0 commit comments