I wish to make use of the Write-Ahead Logging feature of SQLite inside a j2se program. Help me having a java implemention example.

You have to perform Sqlite specific command (much like you'd execute other SQL queries):

pragma journal_mode=wal

For that more knowledge about by using this pragma, please read http://www.sqlite.org/pragma.html#pragma_journal_mode

Here are a few highlights:

  • Your Sqlite library should be >= 3.7..
  • This journal_mode is persistent (or sticky), ie you will need to disable it clearly if you wish to access your database having a < 3.7. Sqlite.