Membrane can log metadata about service invocations to any database that can be accessed via JDBC.
In this example we will configure Membrane to log to the Apache Derby database.
To run the example execute the following steps:
-
First we need a JDBC compliant database. For this example we choose Apache Derby.
-
Download the latest Derby distribution from the following URL: http://db.apache.org/derby/derby_downloads.html
-
Extract the zip file and copy the
DERBY_HOME/lib/derbyclient.jar
into theMEMBRANE_HOME/lib
directory. -
Go to the
examples/logging-jdbc
directory. -
Start the network server using the following command:
start DERBY_HOME/bin/startNetworkServer.bat
-
Execute
service-proxy.bat
orservice-proxy.sh
-
Open the URL http://localhost:2000/ in your browser.
-
Start the ij program to query the database:
DERBY_HOME/bin/ij.bat
-
Connect to the database using the following command:
connect 'jdbc:derby://localhost:1527/membranedb';
- Execute the following SQL query:
select * from membrane.statistic;