It is possible to seamlessly integrate FioranoMQ with the Borland Enterprise Server (BES).
Below are the steps required to integrate FioranoMQ with the Borland Enterprise Server:
- Install BES 5.1. A developer version of Borland Enterprise Server 5.1 is available at http://www.borland.com
- Copy fmq-client.jar from %FMQ_DIR%\lib\client\all directory to %BES_HOME%\lib directory of the BES installation package.
- Add the jndi.properties file to the fmq-client.jar present in the library directory of the BES installation package.
- Replace jndi.properties file in %BES_HOME%\lib\asrt.jar with the jndi.properties.
- Start the FioranoMQ server by selecting Start > Programs > Fiorano > FioranoMQ> FioranoMQ Server (%FMQ_DIR%\bin\fmq.bat)
- Start the BES server by clicking on Start > Programs > Borland Enterprise Server > Server.
Deploying of FioranoMQ Libraries
To integrate FioranoMQ with Borland, deploy FioranoMQ libraries to a BES partition.
To deploy the required libraries, follow the steps below:
- Start the BES console by clicking on Start > Programs > Borland Enterprise Server > console. The default username and password are admin and admin, respectively.
- Click on Wizards to open the deployment wizard.
- Add %BES_HOME%\lib\fmq-client.jar to the modules.
- Ensure that Restart Partitions on Deploy is checked. Click on Next.
- Add it to the standard partition and click on Finish.
FioranoMQ libraries are deployed successfully and are seen in the deployed components of standard partition.
Environment Variables
Environment Variables should be appropriately set and all environment variables should follow the steps given below:
1. Appclient
Add FioranoMQ libraries to the Appclient tool to run the samples. The CLASSPATH must first be appended in %BES_HOME%\bin\appclient.config, by adding the following lines:
addpath $var(installRoot)/fmq\lib\client\all\fmq-client.jar
2. Environment
Create a new batch file named setenv.bat (setenv.sh on UNIX) in %BES_HOME% with the lines:
- Set BES_HOME=c:\bes (replace it with your home directory)
- Set VBROKER_ADM=%BES_HOME%\var\servers\aseem\adm
- Set VBROKERDIR=%BES_HOME%
- Set OSAGENT_PORT=14000
- Set PATH=%PATH%;%BES_HOME%\bin;%BES_HOME%\jdk\bin
Samples
To run JMS samples, follow the steps below:
- Integrate FioranoMQ with the Borland Enterprise Server and deploy FioranoMQ libraries to the BES partition.
- Set all the environment variables.
- Unzip the attached MQ sample and navigate to the directory the attached sample is extracted.
Deploy the message_beans.jar in the server using the following code:
Choose option 2 (serverrealm). The default username is admin, and default password is admin.
Figure: OutputRun the client using the following code:
The output, shown below, is displayed: