Membrane API Gateway uses exchange stores to save requests and responses. Using the ExchangeStoreInterceptor
you can plug in different exchange stores. Each exchange store implements a different storing strategy. The FileExchangeStore
saves exchanges into the file system.
In this example we will configure an ExchangeStoreInterceptor
with a FileExchangeStore
.
To run the example execute the following steps:
-
Have a look at
file-exchangestore-beans.xml
-
Execute
examples/file-exchangestore/service-proxy.bat
-
Open http://localhost:2000/ in your browser.
-
Take a look at the directory `examples/file-exchangestore/exchanges it contains the exchanges of the previous call.
See:
- exchangeStore reference
- fileExchangeStore reference