Contents

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:

  1. Install BES 5.1. A developer version of Borland Enterprise Server 5.1 is available at http://www.borland.com
  2. Copy fmq-client.jar from %FMQ_DIR%\lib\client\all directory to %BES_HOME%\lib directory of the BES installation package.
  3. Add the jndi.properties file to the fmq-client.jar present in the library directory of the BES installation package.
  4. Replace jndi.properties file in %BES_HOME%\lib\asrt.jar with the jndi.properties.
  5. Start the FioranoMQ server by selecting Start > Programs > Fiorano > FioranoMQ> FioranoMQ Server (%FMQ_DIR%\bin\fmq.bat)
  6. Start the BES server by clicking on Start > Programs > Borland Enterprise Server > Server.

29.9.1 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:

  1. Start the BES console by clicking on Start > Programs > Borland Enterprise Server > console. The default username and password are admin and admin, respectively.
  2. Click on Wizards to open the deployment wizard.
  3. Add %BES_HOME%\lib\fmq-client.jar to the modules.
  4. Ensure that Restart Partitions on Deploy is checked. Click on Next.
  5. 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.

29.9.2 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:

  1. Set BES_HOME=c:\bes (replace it with your home directory)
  2. Set VBROKER_ADM=%BES_HOME%\var\servers\aseem\adm
  3. Set VBROKERDIR=%BES_HOME%
  4. Set OSAGENT_PORT=14000
  5. Set PATH=%PATH%;%BES_HOME%\bin;%BES_HOME%\jdk\bin

29.9.3 Samples

To run JMS samples, follow the steps below:

  1. Integrate FioranoMQ with the Borland Enterprise Server and deploy FioranoMQ libraries to the BES partition.
  2. Set all the environment variables.
  3. Unzip the attached MQ sample and navigate to the directory the attached sample is extracted.
  4. 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: Output

  5. Run the client using the following code:

    The output, shown below, is displayed:

Adaptavist ThemeBuilder EngineAtlassian Confluence