12.11.2014 Views

web server - Borland Technical Publications

web server - Borland Technical Publications

web server - Borland Technical Publications

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Other JMS providers<br />

Using Message Driven Beans (MDB) with OpenJMS<br />

Important<br />

For a BES partition to support MDBs, the MDB must be able to access a JMS <strong>server</strong>.<br />

To make the MDB access the OpenJMS <strong>server</strong>, make sure that:<br />

1 OpenJMS is installed and enabled as an in-process service in your partition or<br />

available in the domain. Right-click on the OpenJMS service and select Start from<br />

the menu to enable the service.<br />

2 The resource references are properly configured in the ejb-jar.xml file to point to<br />

the right type of connection factory.<br />

If your MDB needs transactional access, you must use Embedded or RMI<br />

connection factories with your MDB so as to support transaction propagation.<br />

Other JMS providers<br />

For other JMS providers to achieve a runtime level of pluggability, compliance with the<br />

J2EE specifications is necessary. BES requires that the JMS XA APIs support JTA<br />

integration. In addition, the JMS product should support the ConnectionConsumer<br />

interface. Refer to Sun's chapter on the JMS API for specific information on complying<br />

with the specification.<br />

Note<br />

Required client libraries for other JMS providers<br />

When trying to connect to another JMS provider the required libraries must first be<br />

deployed to the target Partition. The steps are:<br />

1 Start your BES <strong>server</strong> and Management Console.<br />

2 From the Console, open the Wizards menu and select the Deployment Wizard. The<br />

wizard allows you to deploy modules to a Partition.<br />

3 “Add” the library file and check the option to restart the Partition on deploy.<br />

4 Proceed to deploy to the chosen Partition(s). Close the wizard.<br />

You should see your libraries listed under the “Deployed Modules” folder of the<br />

Partition(s). The <strong>Borland</strong> Deployment Descriptor Editor panels do not provide as much<br />

custom help for other JMS vendor products as it does for JMS vendors certified to work<br />

with BES. Refer to the other JMS vendor's documentation to ascertain the correct<br />

name of the ConnectionFactory, Topic or Queue implementation class in order to<br />

create JNDI objects.<br />

All required libraries are already configured so nothing extra is needed if you are going<br />

to use JMS services bundled with BES.<br />

Configuring admin objects for other JMS providers<br />

BES provides configurations in the <strong>Borland</strong> Deployment Descriptor Editor for Tibco,<br />

Sonic and other JMS providers. However, there are required properties and classes for<br />

using other JMS providers with BES. These must be configured in the jms.properties<br />

file located in C:\Documents and Settings\username\.bmc60.<br />

Chapter 24: JMS provider pluggability 237

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!