https://github.com/alainpham/sql-transaction
testing sql transactions, rollback & error handling on camel with EAP
https://github.com/alainpham/sql-transaction
Last synced: 2 months ago
JSON representation
testing sql transactions, rollback & error handling on camel with EAP
- Host: GitHub
- URL: https://github.com/alainpham/sql-transaction
- Owner: alainpham
- Created: 2020-07-08T13:41:59.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-09T20:47:42.000Z (almost 5 years ago)
- Last Synced: 2025-01-27T07:42:24.781Z (4 months ago)
- Language: Java
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
Red Hat Fuse on EAP Spring XML Web Application : sql-transaction
==============================================This is a template Apache Camel Spring application for Red Hat Fuse on EAP.
This project is setup to allow you to create a Apache Camel Spring application, which can be deployed to an application
server running Red Hat Fuse on EAP. An example Spring XML Camel Route has been created for you, together with an Arquillian
integration test.mvn clean package wildfly:deploy
Acces to swagger def
http://localhost:8080/sql-transaction/webjars/swagger-ui/3.23.5/index.html?url=/sql-transaction/camel/api-docs
For testing
curl http://localhost:8080/sql-transaction/camel/api-docs
curl http://localhost:8080/sql-transaction/camel/pingPrerequisites
=============* Minimum of Java 1.8
* Maven 3.3 or greater
* JBoss EAP 7.1 application server.Getting started
---------------1. Install the Red Hat Fuse for EAP distribution on your application server
2. Configure a $JBOSS_HOME environment variable to point at your application server installation directory
3. Start the application server from the command line
For Linux:
$JBOSS_HOME/bin/standalone.sh
For Windows:
%JBOSS_HOME%\bin\standalone.bat
Building the application
------------------------To build the application do:
mvn clean install
Run Arquillian Tests
--------------------By default, tests are configured to be skipped as Arquillian requires the use of a container.
If you already have a running application server, you can run integration tests with:
mvn clean test -Parq-remote
Otherwise you can get Arquillian to start and stop the server for you (Note: you must have $JBOSS_HOME configured beforehand):
mvn clean test -Parq-managed
Deploying the application
-------------------------To deploy the application to a running application server do:
mvn clean package wildfly:deploy
The server console should display lines like the following:
(MSC service thread 1-16) Apache Camel (CamelContext: spring-context) is starting
(MSC service thread 1-16) Camel context starting: spring-context
(MSC service thread 1-6) Bound camel naming object: java:jboss/camel/context/spring-context
(MSC service thread 1-16) Route: route4 started and consuming from: Endpoint[direct://start]
(MSC service thread 1-16) Total 1 routes, of which 1 is startedAccess the application
----------------------The application will be available at http://localhost:8080/your-context-root?name=Kermit
Undeploying the application
---------------------------mvn wildfly:undeploy