Skip to content

Rest API using Camel CXF and event based routing using Active MQ. This project is configured for JBoss EAP.

Notifications You must be signed in to change notification settings

tuhingupta/restapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

restapi Project

====================

This project uses Camel CXF REST API and Active MQ. This project is created to run as a web archive on JBoss EAP server.

It contains all the configurations required to use following components:

  • Camel CXF REST API
  • Apache MQ
  • configuration using Spring XML schema
  • CamelSpringTestSupport Unit testing framework

See working code to HTTP GET and POST messages to REST APIs.

When a message is posted to REST API, it is also sent to an Active MQ topic.

To build this project:

$mvn clean install

To run this project: This project can be deployed as a war file in JBOSS EAP 6.x (I tested with JBOSS EAP 6.4) Just drop the war file into deployments directory

Endpoint to try out:

HTTP 1.1/POST http://localhost:8080/restapi/v1/customer/{id} Sample Payload: { "Customer":{ "name": "Cust-A", "address": "address a", "country": "US-A" } }

HTTP 1.1/GET http://localhost:8080/restapi/v1/customer/{id}

HTTP 1.1/POST http://localhost:8080/restapi/v1/message/{id}

About

Rest API using Camel CXF and event based routing using Active MQ. This project is configured for JBoss EAP.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages