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.

OpenJMS<br />

6 Under the Sonic installation root directory, /jms/sonic, edit database<br />

configuration file db.ini. Set property ENABLE_SECURITY to false and save.<br />

7 Open a Command Prompt window and navigate to the /jms/sonic/bin<br />

directory, and issue the command dbtool/r all to reinitialize the database. For<br />

UNIX use the command dbtool -r all<br />

8 The Sonic JMS broker can now be restarted. The Broker will now run with security<br />

disabled. To establish a connection in the Sonic Management Console should not<br />

require user/password authentication now.<br />

OpenJMS<br />

OpenJMS is tied to the lifecycle of a BES partition. BES contains a complete footprint<br />

of OpenJMS.<br />

OpenJMS provides the following added value:<br />

■<br />

Transparent Installation<br />

■<br />

Support for automatic table creation<br />

■<br />

Out-of-box integration with BES's Naming Service (JNDI), Transaction Service and<br />

Datasource<br />

■<br />

■<br />

Provides partition-level service management<br />

Support for RMI connector using VisiBroker<br />

■<br />

Lifecycle management using <strong>Borland</strong> Management Console<br />

When you install BES AppServer Edition with OpenJMS in BES version 6.5, OpenJMS<br />

comes packaged as a partition level template. This means that partitions created from<br />

this template get OpenJMS as an in-process service.<br />

The following properties in the partition template are set to true by default when you<br />

install BES AppServer Edition with OpenJMS:<br />

■<br />

ejb.mdb.use_jms_threads=true<br />

■<br />

■<br />

This property is needed to allow the transaction that was started by OpenJMS to<br />

propagate into BES<br />

ejb.mdb.local_transaction_optimization=true<br />

This property is needed to allow the use of non-XA JMS connection factories to be<br />

used in transactional scenarios. If not set, the MDBs that have transaction onMessage<br />

method will fail to deploy<br />

jts.allow_unrecoverable_completion=true<br />

By default, BES uses the JDataStore database for message persistence. If your<br />

application database is different from your message persistence database, you will<br />

need to set this property to true in order to achieve the two phase commit.<br />

Refer to Chapter 31, “EJB, JSS, and JTS Properties” for more information on each of<br />

the properties.<br />

Chapter 24: JMS provider pluggability 229

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

Saved successfully!

Ooh no, something went wrong!