Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
5.8. Configuring the JMS user manager
The JMS User Manager maps pre-configured client IDs to users. It also manages user and role tables, depending on the configured login module.
The following is an example
JMSUserManager configuration:
5.8.1. JMSUserManager MBean Attributes Link kopierenLink in die Zwischenablage kopiert!
Link kopierenLink in die Zwischenablage kopiert!
- CreateTablesOnStartup
- Set this to
trueif you wish the JMS user manager to attempt to create the tables (and indexes) when it starts. If the tables (or indexes) already exist aSQLExceptionwill be thrown by the JDBC driver and ignored by the Persistence Manager, allowing it to continue.By default the value ofCreateTablesOnStartupattribute is set totrue - UsingBatchUpdates
- Set this to
trueif the database supports JDBC batch updates. The JDBC Persistence Manager will then group multiple database updates in batches to aid performance.By default the value ofUsingBatchUpdatesattribute is set tofalse - SQLProperties
- This is where the DDL and DML for the particular database is specified. If a particular DDL or DML statement is not overridden, the default Hypersonic configuration will be used for that statement.Default user and role data can also be specified here. Any data to be inserted must be specified with property names starting with
POPULATE.TABLESas in the above example.
Database Connection Retry Parameters control whether a connection should be re-established when a connection failure is detected, how many attempts to reconnect should be made, and at what interval each attempt should be made.
- RetryOnConnectionFailure
- Specifies whether the MBean should attempt to reconnect to the database. The default is
false. - MaxRetry
- Specifies the maximum limit for DataSource connection failures. The default is
25. Set the parameter to-1to activate "retry forever" mode. This parameter is valid whenRetryOnConnectionFailureis set totrue.Important
Clients that consume messages from a clustered destination can become unresponsive when closed. This happens if the node has the valueMaxRetryset to-1, and loses the connection to the database. To avoid the problem, set the node parameterMaxRetryto a value greater than-1. You can set the attribute value in the MBeansPersistenceManager,PostOffice, andJMSUserManagerin the file[database]-persistence-service.xml - RetryInterval
- Specifies the retry interval between two consecutive retries. The default is 1000 (milliseconds). This parameter is valid when
RetryOnConnectionFailureis set totrue.