Deploy BPC Modules (JAR/WAR files)
Prerequisites
-
Karaf must be running
-
An API key must exist (BPC Frontend → Core Services → API Keys)
In the example below, Karaf uses the default port 8181.
Summary
The BPC deployment API is used to deploy JAR/WAR files.
Using the deployment API to deploy JAR/WAR files
It must be a MIME multipart data (multipart/form-data) POST request to the /cxf/bpc-deployment/deployment/bundles/import endpoint.
In the example below, CURL is used to deploy the files ‘test.jar’ and ‘test.war’.
curl -X POST \
-H 'X-APIKey: 1f697af5-c147-3d94-c529-e06f3f15bb87' \
-H 'X-InitiatedByUser: inubit' \
-H 'X-InitiatedFromServerName: localhost' \
-H 'X-InitiatedFromServerUUID: inubit-installer' \
-F file=@test.jar \
-F file=@test.war \
'http://localhost:8181/cxf/bpc-deployment/deployment/bundles/import'
Now the two files are deployed to the [Karaf]/deploy folder! :-)
Keywords: