LibraryLink ToToggle FramesPrintFeedback

Using JDBC without the Journal

For instances when journaling is not appropriate, or you wish to use your own journaling system, you can used the JDBC persistence adapter without the FUSE Message Broker high performance journal.

To configure FUSE Message Broker to use the JDBC persistence adapter without the high performance journal you add the jdbcPersistenceAdapter element to the persistenceAdapter element in your broker's configuration as shown in Example 3.6.

Table 3.3 describes the attributes used to configure the non-journaled JDBC persistence adapter.


Example 3.6 shows a configuration snip-it that configures the JDBC adapter to use the default database.

Example 3.6. Configuring FUSE Message Broker to use the Plain JDBC Persistence Adapter

<beans ...>
  <broker ...>
  ...
1  <persistenceAdapter>
2    <journaledJDBC dataSource="derby-ds" />
    </persistenceAdapter>
    ...
  <broker>
  ...
3<bean id="#derby-ds" class="org.apache.derby.jdbc.EmbeddedDataSource">
    <property name="databaseName" value="derbydb"/>
    <property name="createDatabase" value="create"/>
  </bean>

The configuration in Example 3.6 has three noteworthy elements:

1

The persistenceAdapter element wraps the configuration for the JDBC persistence adapter.

2

The jdbcPersistenceAdapter element specifies that the broker will use the plain JDBC persistence adapter and that the JDBC driver's configuration is specified in a bean element with the id derby-ds.

3

The bean element specified the configuration for the Derby JDBC driver.