REQUIREMENT queue.jdbc.commontable |
Type | NEW |
Priority | HIGH |
Status | DEPRECATED |
Topic | JDBC Plugin which stores all queues on a common table. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Des cription |
This was the default persistence implementation until releas 1.6.4, please read queue.jdbc for migration details. When using the org.xmlBlaster.util.queue.jdbc.JdbcQueuePlugin XmlBlaster handles jdbc persistent storage by using a pool of tables. When a queue is created, such a table is used to store messages of that queue. When the queue is destroyed, the associated table is put back in the pool of free tables. If there is need for further tables, xmlBlaster automatically adds tables to the pool.
For systems where the programmatical creation of tables on the DB is not allowed, it would become
unpractical or even prohibitive to create a sufficient amount of tables for the freetables pool by hand.
Concept
As already said, all entries are put in a common bucket, unaware of which cluster they belong. In many applications this must be avoided. You can isolate the entries on a per cluster basis or on a per cluster-group basis by having defined different names for the different tables. When you start xmlBlaster for the first time you may want to let it create the necessary table. In other situations you would like to prevent it to be done (for example because lack of authorization). For these purposes you can use the dbAdmin flag If there is the need to create the tables manually here follows the code to use (note that it is parameterized). # # General settings (independent from database implementations) # # ${Entries} XMLBLASTERENTRIES # # For postgres: # # ${string} text # ${longint} bigint # ${int} integer # ${boolean} char(1) # ${blob} bytea # # For Oracle: # # ${string} VARCHAR(128) # ${longint} NUMBER(19) # ${int} NUMBER(10) # ${boolean} CHAR(1) # ${blob} long raw # CREATE TABLE ${Entries} (dataId ${longint}, queueName ${string}, prio ${int}, flag ${string}, durable ${boolean}, byteSize ${longint}, blob ${blob}, PRIMARY KEY (dataId, queueName), |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Configure |
persistence/defaultPlugin=CACHE,1.0 queue/defaultPlugin=CACHE,1.0 useTopicStore=true StoragePlugin[JDBC][1.0]=org.xmlBlaster.util.queue.jdbc.JdbcQueueCommonTablePlugin,\ entriesTableName=ENTRIES,\ tableNamePrefix=XB,\ dbAdmin=true,\ configurationIdentifier=mySpecialDB
JdbcDriver.mapping[myStrangeDB]=string=text,\ longint=bigint,\ int=integer,\ boolean=char(1),\ blob=bytea,\ pingStatement=SHOW ALL,\ blobVarName=blob,\ keyAttr=
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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See REQ | queue.jdbc.postgres | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See REQ | queue.jdbc.oracle | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See REQ | queue.jdbc.firebird | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See REQ | queue.jdbc.sqlserver | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See REQ | queue.jdbc.hsqldb | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See REQ | queue.jdbc.mysql | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See REQ | queue.jdbc.ldbc |
This page is generated from the requirement XML file xmlBlaster/doc/requirements/queue.jdbc.commontable.xml