|
REQUIREMENT queue.jdbc.ldbc |
| Type | NEW |
| Priority | LOW |
| Status | INWORK |
| Topic | The common table plugin supports using the Liberty Database Connectivity Abstraction Layer. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Des cription |
The Liberty data base connectivity package http://ldbc.sourceforge.net/
provides vendor-independant database access. The org.xmlBlaster.util.queue.jdbc.JdbcQueueCommonTablePlugin
is able to support the Liberty Abstraction Layer and has been See queue.jdbc.commontable for a description of the common table architecture. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Example Java |
This is a configuration example from xmlBlaster.properties: Configuration for the ldbc driver in debug mode.
JdbcStorage[MySQL]=org.xmlBlaster.util.queue.jdbc.JdbcQueueCommonTablePlugin,\
url=jdbc:ldbc:mysql://localhost/xmlb[ldbc.trace=detailed],\
It is not possible to use the ldbc trace to file functionality as the parameter format
to pass the file name to ldbc will break [ldbc.trace=on] Method calls, parameters, exceptions and statements. [ldbc.trace=detailed] All of On plus prepared statement and result set calls. [ldbc.trace=off] Default is off. See queue.jdbc.mysql for a full configuration example. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Configure |
To activate persistence please add the following to your properties file:
persistence/topicStore/defaultPlugin=JDBC,1.0
persistence/msgUnitStore/defaultPlugin=CACHE,1.0
QueuePlugin[JDBC][1.0]=org.xmlBlaster.util.queue.jdbc.JdbcQueueCommonTablePlugin,\
url=jdbc:ldbc:mysql://localhost/xmlb,\
user=xmlb,\
password=secret,\
connectionPoolSize=1,\
connectionBusyTimeout=90000,\
maxWaitingThreads=300,\
tableNamePrefix=XB_,\
entriesTableName=ENTRIES,\
dbAdmin=true,\
cascadeDeleteSupported=false,\
nestedBracketsSupported=false,\
configurationIdentifier=ldbc
QueuePlugin[RAM][1.0]=org.xmlBlaster.util.queue.ram.RamQueuePlugin
QueuePlugin[CACHE][1.0]=org.xmlBlaster.util.queue.cache.CacheQueueInterceptorPlugin,\
persistentQueue=JDBC,transientQueue=RAM
queue/subject/defaultPlugin=CACHE,1.0
queue/history/defaultPlugin=CACHE,1.0
queue/callback/defaultPlugin=CACHE,1.0
useTopicStore=true
JdbcDriver.drivers=org.ldbc.jdbc.jdbcDriver
JdbcDriver.mapping[ldbc]=string=varchar(128),"longint=decimal(19,0)",int=int,boolean=char(1),\
blob=blob,pingStatement=Show All,blobVarName=ablob, keyAttr=not null
NOTE: Configuration parameters are specified on command line (-someValue 17) or in the
xmlBlaster.properties file (someValue=17). See requirement "util.property" for details. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| See API | org.xmlBlaster.util.queue.I_Queue | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| See API | org.xmlBlaster.util.queue.jdbc.JdbcQueueCommonTablePlugin | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| See API | org.xmlBlaster.util.queue.QueuePluginManager | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| See API | org.xmlBlaster.util.queue.I_QueueEntry | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| See API | org.xmlBlaster.util.qos.storage.QueuePropertyBase | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| See API | org.xmlBlaster.util.I_Plugin | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| See API | org.xmlBlaster.util.Global | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| See REQ | queue | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| See REQ | queue.jdbc.mysql | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| See TEST | org.xmlBlaster.test.classtest.queue.I_QueueTest | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| See TEST | org.xmlBlaster.test.classtest.queue.JdbcQueueTest |
This page is generated from the requirement XML file xmlBlaster/doc/requirements/queue.jdbc.ldbc.xml