/
Setting up the MB Samples
This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
Setting up the MB Samples
The following is a list of prerequisites that need to be carried out before running any of the MB samples.
- To run the samples, you must have the correct versions of the following installed.
- Java Development Kit/JRE
- Apache Ant
- Apache Maven
- If you want to run MB in DEBUG mode, you need to set the log level to
DEBUG
for the relevant appender as explained in Logging Configuration. - A sample can be build using Apache Ant and/or Apache Maven. Make sure that the following dependencies are saved as required:
- A sample built using Apache Ant requires the following files to be saved in
<MB_HOME>/client-lib
directory. Note that these JARs are included in the product binary pack by default.- andes-client-3.1.1.jar
- geronimo-jms_1.1_spec-1.1.1.wso2v1.jar
- log4j-1.2.13.jar
- slf4j-1.5.10.wso2v1.jar
When you build MQTT samples, the Maven repositories required for the samples should be saved in the
pom.xml
file of the MQTT samples. For example, the dependencies for the Simple MQTT Client sample should be included in the<MB_HOME>/samples/SimpleMqttClient/pom.xml
file. Note that these dependencies are added to the MQTT samples shipped by default with WSO2 MB.<dependency> <groupId>org.wso2.andes.wso2</groupId> <artifactId>andes-client</artifactId> <version>0.13.wso2v3</version> </dependency> <dependency> <groupId>org.apache.geronimo.specs.wso2</groupId> <artifactId>geronimo-jms_1.1_spec</artifactId> <version>1.1.0.wso2v1</version> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.17</version> </dependency> <dependency> <groupId>slf4j.wso2</groupId> <artifactId>slf4j</artifactId> <version>1.5.10.wso2v1</version> </dependency> <dependency> <groupId>org.wso2.securevault</groupId> <artifactId>org.wso2.securevault</artifactId> <version>1.0.0-wso2v2</version> </dependency>
- A sample built using Apache Ant requires the following files to be saved in
, multiple selections available,
Related content
Enterprise Integration Patterns with WSO2 Micro Integrator
Enterprise Integration Patterns with WSO2 Micro Integrator
More like this
Deploying Consumer Data Standards Administration API v1.28.0
Deploying Consumer Data Standards Administration API v1.28.0
More like this
Axis2 Properties
Axis2 Properties
More like this
Axis2 Properties
Axis2 Properties
More like this
Deployment Patterns
Deployment Patterns
More like this
Deployment Patterns
Deployment Patterns
More like this