web server - Borland Technical Publications

web server - Borland Technical Publications web server - Borland Technical Publications

techpubs.borland.com
from techpubs.borland.com More from this publisher
12.11.2014 Views

Other JMS providers Using Message Driven Beans (MDB) with OpenJMS Important For a BES partition to support MDBs, the MDB must be able to access a JMS server. To make the MDB access the OpenJMS server, make sure that: 1 OpenJMS is installed and enabled as an in-process service in your partition or available in the domain. Right-click on the OpenJMS service and select Start from the menu to enable the service. 2 The resource references are properly configured in the ejb-jar.xml file to point to the right type of connection factory. If your MDB needs transactional access, you must use Embedded or RMI connection factories with your MDB so as to support transaction propagation. Other JMS providers For other JMS providers to achieve a runtime level of pluggability, compliance with the J2EE specifications is necessary. BES requires that the JMS XA APIs support JTA integration. In addition, the JMS product should support the ConnectionConsumer interface. Refer to Sun's chapter on the JMS API for specific information on complying with the specification. Note Required client libraries for other JMS providers When trying to connect to another JMS provider the required libraries must first be deployed to the target Partition. The steps are: 1 Start your BES server and Management Console. 2 From the Console, open the Wizards menu and select the Deployment Wizard. The wizard allows you to deploy modules to a Partition. 3 “Add” the library file and check the option to restart the Partition on deploy. 4 Proceed to deploy to the chosen Partition(s). Close the wizard. You should see your libraries listed under the “Deployed Modules” folder of the Partition(s). The Borland Deployment Descriptor Editor panels do not provide as much custom help for other JMS vendor products as it does for JMS vendors certified to work with BES. Refer to the other JMS vendor's documentation to ascertain the correct name of the ConnectionFactory, Topic or Queue implementation class in order to create JNDI objects. All required libraries are already configured so nothing extra is needed if you are going to use JMS services bundled with BES. Configuring admin objects for other JMS providers BES provides configurations in the Borland Deployment Descriptor Editor for Tibco, Sonic and other JMS providers. However, there are required properties and classes for using other JMS providers with BES. These must be configured in the jms.properties file located in C:\Documents and Settings\username\.bmc60. Chapter 24: JMS provider pluggability 237

Other JMS providers The following are the required properties that must be configured in the jms.properties file: Tibco.QueueConnectionFactory.props=serverUrl,clientID,userName,userPassword Tibco.XAQueueConnectionFactory.props=serverUrl,clientID,userName,userPassword Tibco.TopicConnectionFactory.props=serverUrl,clientID,userName,userPassword Tibco.XATopicConnectionFactory.props=serverUrl,clientID,userName,userPassword Tibco.Queue.props=address Tibco.Topic.props=address Sonic.QueueConnectionFactory.props=connectionURLs,defaultUser,defaultPassword,c onnectID,clientID,sequential,loadBalancing Sonic.TopicConnectionFactory.props=connectionURLs,defaultUser,defaultPassword,c onnectID,clientID,sequential,loadBalancing Sonic.XAQueueConnectionFactory.props=connectionURLs,defaultUser,defaultPassword ,connectID,clientID,sequential,loadBalancing Sonic.XATopicConnectionFactory.props=connectionURLs,defaultUser,defaultPassword ,connectID,clientID,sequential,loadBalancing Sonic.Queue.props=queueName Sonic.Topic.props=topicName Other.QueueConnectionFactory.props= Other.TopicConnectionFactory.props= Other.XAQueueConnectionFactory.props= Other.XATopicConnectionFactory.props= Other.Queue.props= Other.Topic.props= Tibco.QueueConnectionFactory.class=com.tibco.tibjms.TibjmsQueueConnectionFactor y Tibco.TopicConnectionFactory.class=com.tibco.tibjms.TibjmsTopicConnectionFactor y Tibco.XAQueueConnectionFactory.class=com.tibco.tibjms.TibjmsXAQueueConnectionFa ctory Tibco.XATopicConnectionFactory.class=com.tibco.tibjms.TibjmsXATopicConnectionFa ctory Tibco.Queue.class=com.tibco.tibjms.TibjmsQueue Tibco.Topic.class=com.tibco.tibjms.TibjmsTopic Sonic.QueueConnectionFactory.class=progress.message.jclient.QueueConnectionFact ory Sonic.TopicConnectionFactory.class=progress.message.jclient.TopicConnectionFact ory Sonic.XAQueueConnectionFactory.class=progress.message.jclient.xa.XAQueueConnect ionFactory Sonic.XATopicConnectionFactory.class=progress.message.jclient.xa.XATopicConnect ionFactory Sonic.Queue.class=progress.message.jclient.Queue Sonic.Topic.class=progress.message.jclient.Topic Other.QueueConnectionFactory.class= Other.TopicConnectionFactory.class= Other.XAQueueConnectionFactory.class= Other.XATopicConnectionFactory.class= Other.Queue.class= Other.Topic.class= PropertyName=type, default type=QueueConnectionFactory|TopicConnectionFactory|XAQueueConnectionFactory| XATopicConnectionFactory|Queue|Topic connectionURLs=String,localhost:2506 defaultUser=String defaultPassword=String connectID=String clientID=String sequential=Boolean,false 238 BES Developer’s Guide

Other JMS providers<br />

The following are the required properties that must be configured in the jms.properties<br />

file:<br />

Tibco.QueueConnectionFactory.props=<strong>server</strong>Url,clientID,userName,userPassword<br />

Tibco.XAQueueConnectionFactory.props=<strong>server</strong>Url,clientID,userName,userPassword<br />

Tibco.TopicConnectionFactory.props=<strong>server</strong>Url,clientID,userName,userPassword<br />

Tibco.XATopicConnectionFactory.props=<strong>server</strong>Url,clientID,userName,userPassword<br />

Tibco.Queue.props=address<br />

Tibco.Topic.props=address<br />

Sonic.QueueConnectionFactory.props=connectionURLs,defaultUser,defaultPassword,c<br />

onnectID,clientID,sequential,loadBalancing<br />

Sonic.TopicConnectionFactory.props=connectionURLs,defaultUser,defaultPassword,c<br />

onnectID,clientID,sequential,loadBalancing<br />

Sonic.XAQueueConnectionFactory.props=connectionURLs,defaultUser,defaultPassword<br />

,connectID,clientID,sequential,loadBalancing<br />

Sonic.XATopicConnectionFactory.props=connectionURLs,defaultUser,defaultPassword<br />

,connectID,clientID,sequential,loadBalancing<br />

Sonic.Queue.props=queueName<br />

Sonic.Topic.props=topicName<br />

Other.QueueConnectionFactory.props=<br />

Other.TopicConnectionFactory.props=<br />

Other.XAQueueConnectionFactory.props=<br />

Other.XATopicConnectionFactory.props=<br />

Other.Queue.props=<br />

Other.Topic.props=<br />

Tibco.QueueConnectionFactory.class=com.tibco.tibjms.TibjmsQueueConnectionFactor<br />

y<br />

Tibco.TopicConnectionFactory.class=com.tibco.tibjms.TibjmsTopicConnectionFactor<br />

y<br />

Tibco.XAQueueConnectionFactory.class=com.tibco.tibjms.TibjmsXAQueueConnectionFa<br />

ctory<br />

Tibco.XATopicConnectionFactory.class=com.tibco.tibjms.TibjmsXATopicConnectionFa<br />

ctory<br />

Tibco.Queue.class=com.tibco.tibjms.TibjmsQueue<br />

Tibco.Topic.class=com.tibco.tibjms.TibjmsTopic<br />

Sonic.QueueConnectionFactory.class=progress.message.jclient.QueueConnectionFact<br />

ory<br />

Sonic.TopicConnectionFactory.class=progress.message.jclient.TopicConnectionFact<br />

ory<br />

Sonic.XAQueueConnectionFactory.class=progress.message.jclient.xa.XAQueueConnect<br />

ionFactory<br />

Sonic.XATopicConnectionFactory.class=progress.message.jclient.xa.XATopicConnect<br />

ionFactory<br />

Sonic.Queue.class=progress.message.jclient.Queue<br />

Sonic.Topic.class=progress.message.jclient.Topic<br />

Other.QueueConnectionFactory.class=<br />

Other.TopicConnectionFactory.class=<br />

Other.XAQueueConnectionFactory.class=<br />

Other.XATopicConnectionFactory.class=<br />

Other.Queue.class=<br />

Other.Topic.class=<br />

PropertyName=type, default<br />

type=QueueConnectionFactory|TopicConnectionFactory|XAQueueConnectionFactory|<br />

XATopicConnectionFactory|Queue|Topic<br />

connectionURLs=String,localhost:2506<br />

defaultUser=String<br />

defaultPassword=String<br />

connectID=String<br />

clientID=String<br />

sequential=Boolean,false<br />

238 BES Developer’s Guide

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

Saved successfully!

Ooh no, something went wrong!