|
REQUIREMENT queue.jdbc.mysql |
| Type | NEW |
| Priority | LOW |
| Status | INWORK |
| Topic | XmlBlaster has an advanced queuing facility. Among others, one tested persistence layer is offered by communicating with a MySQL database. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Des cription |
The generic plugin for jdbc based queues has been tested against MySQL using the Liberty Database abstraction layer. See also queue.jdbc.ldbc MySQL Server is available from http://www.mysql.org/ where you can find all necessary information and instructions on how to make MySQL Server run. Once you have a running database you can configure xmlBlaster to make it run against it. First you need to download the jdbc driver. http://www.mysql.com/downloads/api-jdbc.html You must put these files in the CLASSPATH (for example you can put them into $XMLBLASTER_HOME/lib and add them to the CLASSPATH or in your runtime library directory jre/lib/ext/. Setup MySQL Server
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Example Java |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Configure |
These parameters allow you to configure a cache queue running with MySQL Server 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
Additionally the configuration parameters for the ram queue and the jdbc queue must be defined.
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.ldbc | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| See TEST | org.xmlBlaster.test.classtest.queue.I_QueueTest | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| See TEST | org.xmlBlaster.test.classtest.queue.JdbcQueueTest | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| See TEST | org.xmlBlaster.test.classtest.queue.CacheQueueTest |
This page is generated from the requirement XML file xmlBlaster/doc/requirements/queue.jdbc.mysql.xml