cxf-soap example - Why use @SessionScoped
for the CXF endpoints?
#6880
Labels
area/cxf-soap
area/examples
bug
Something isn't working
example
question
Further information is requested
Bug description
The cxf-soap example uses
@SessionScoped
for the creation of CXF endpoints in its route builder classes:https://github.com/apache/camel-quarkus-examples/blob/4c399bda9d5515465097df8074c57a79ad792260/cxf-soap/src/main/java/org/acme/cxf/soap/pojo/MyPojoRouteBuilder.java#L33-L42
but it seems
@ApplicationScoped
is just fine for them. Is there a strong reason to use@SessionScoped
?The example works as-is, but I found a problem with
@SessionScoped
as soon as you attach the Hawtio console with the example app.https://hawt.io/docs/get-started.html#_running_a_quarkus_app
The issue can be resolved if we remove
@SessionScoped
or change it to@ApplicationScoped
.The text was updated successfully, but these errors were encountered: