Skip to content

Commit

Permalink
Use @ApplicationScoped instead of @SessionScoped as there is no sessi…
Browse files Browse the repository at this point in the history
…on in Camel CXF Route (more details at apache/camel-quarkus#6880)
  • Loading branch information
llowinge authored and jamesnetherton committed Jan 7, 2025
1 parent a29b8d9 commit 3b9a783
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
package org.acme.cxf.soap.pojo;

import jakarta.enterprise.context.ApplicationScoped;
import jakarta.enterprise.context.SessionScoped;
import jakarta.enterprise.inject.Produces;
import jakarta.inject.Named;
import org.acme.cxf.soap.pojo.service.ContactService;
Expand All @@ -31,7 +30,7 @@
public class MyPojoRouteBuilder extends RouteBuilder {

@Produces
@SessionScoped
@ApplicationScoped
@Named
CxfEndpoint contact() {
CxfEndpoint contactEndpoint = new CxfEndpoint();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import com.example.customerservice.NoSuchCustomer;
import com.example.customerservice.NoSuchCustomerException;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.enterprise.context.SessionScoped;
import jakarta.enterprise.inject.Produces;
import jakarta.inject.Named;
import org.acme.cxf.soap.wsdl.repository.CustomerRepository;
Expand All @@ -46,7 +45,7 @@ public MyWsdlRouteBuilder(CustomerRepository customerRepository) {
}

@Produces
@SessionScoped
@ApplicationScoped
@Named
CxfEndpoint customer() {
CxfEndpoint customersEndpoint = new CxfEndpoint();
Expand Down

0 comments on commit 3b9a783

Please sign in to comment.