Class JtaResource

java.lang.Object
org.apache.camel.quarkus.component.jta.it.JtaResource

@Path("/jta") @ApplicationScoped public class JtaResource extends Object
  • Field Details

    • dataSource

      @Inject @DataSource("camel-ds") io.agroal.api.AgroalDataSource dataSource
    • producerTemplate

      @Inject org.apache.camel.ProducerTemplate producerTemplate
    • context

      @Inject org.apache.camel.CamelContext context
  • Constructor Details

    • JtaResource

      public JtaResource()
  • Method Details

    • postConstruct

      void postConstruct(@Observes org.apache.camel.quarkus.main.events.AfterStart event) throws SQLException
      Throws:
      SQLException
    • post

      @Path("/{policy}") @POST @Consumes("text/plain") @Produces("text/plain") public jakarta.ws.rs.core.Response post(@PathParam("policy") String policy, String message) throws Exception
      Throws:
      Exception
    • postInTx

      @Path("/in_tx/{policy}") @POST @Consumes("text/plain") @Produces("text/plain") public jakarta.ws.rs.core.Response postInTx(@PathParam("policy") String policy, String message) throws Exception
      Throws:
      Exception
    • route

      @Path("/route/{route}") @POST @Consumes("text/plain") @Produces("text/plain") public jakarta.ws.rs.core.Response route(@PathParam("route") String route, String message) throws Exception
      Throws:
      Exception
    • mock

      @Path("/mock/{name}/{count}/{timeout}") @Produces("text/plain") @GET public String mock(@PathParam("name") String name, @PathParam("count") int count, @PathParam("timeout") int timeout)