12.11.2014 Views

web server - Borland Technical Publications

web server - Borland Technical Publications

web server - Borland Technical Publications

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

OpenJMS<br />

Table 24.1<br />

openjms.datasource<br />

openjms.sql_file<br />

Partition level porperties for OpenJMS (continued)<br />

Property Name Description Default Value<br />

openjms.datasource_lookup_interval<br />

openjms.max_datasource_lookup_retries<br />

openjms.recreate_database_on_startup<br />

This property specifies the JNDI<br />

name of the datasource that is used<br />

to persist messages in OpenJMS. If<br />

this datasource is the same as the<br />

one that your application uses, then<br />

the JDBC connection pool will be<br />

shared among them and a single<br />

JDBC connection will be used both<br />

to persist messages and provide<br />

data access to your application,<br />

thereby avoiding a need for 2PC. If<br />

the specified datasource is not<br />

available in the JNDI namespace at<br />

the startup time, the startup code<br />

will use the properties<br />

openjms.datasource_lookup_interval,<br />

and<br />

openjms.max_datasource_lookup_retrie<br />

s described below, to make multiple<br />

attempts to access the target<br />

datasource. Despite that, if the<br />

lookup fails, the initialization code<br />

will internally construct a datasource<br />

from the information specified in the<br />

configuration (openjms.xml) file.<br />

Note<br />

The startup code will use the<br />

information from openjms.xml file<br />

only if the user specified<br />

datasource is not available. If<br />

the datasource is pre-deployed<br />

or available in JNDI, RDBMS<br />

configuration in the openjms.xml<br />

file will be ignored.<br />

This property is used to specify the<br />

file that contains the SQL<br />

statements to drop, and create<br />

database tables. These tables are<br />

used by OpenJMS for message<br />

persistence.<br />

This property specifies the duration<br />

between successive datasource<br />

lookup attempts. See the property<br />

openjms.datasource property above.<br />

This property specifies the number<br />

of attempts to lookup for the<br />

datasource before attempting to use<br />

the default datasource.See the<br />

property openjms.datasource property<br />

above.<br />

This property when set will cause<br />

re-creation of database across each<br />

startup of the service. This is useful<br />

for cases where previous messages<br />

are not needed in the subsequent<br />

runs (for example, while testing).<br />

serial://<br />

datasources/<br />

JDSLocal<br />

adm/openjms/<br />

conf/<br />

openjms.sql<br />

1 second<br />

5 seconds<br />

false<br />

Chapter 24: JMS provider pluggability 235

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

Saved successfully!

Ooh no, something went wrong!