REQUIREMENT queue.jdbc.firebird |
Type | NEW |
Priority | HIGH |
Status | CLOSED |
Topic | XmlBlaster has an advanced queuing facility. Among others one tested persistence layer is offered by communicating with a Firebird database. | ||||||||||||||||||||||||||||||||||||||||
Des cription |
The generic plugin for jdbc based queues has been tested against Firebird 1.5.2.4731 To make xmlBlaster run with a persistent queue stored on Firebird it is necessary to first install Firebird. You can download it from the Main Downloads section at The Firebird Homepage. Please follow the instructions given there on how to download, install and initially configure Firebird. Keep in mind that you also need to install the jdbc driver that works with Firebird. You can download it from the Main Downloads section at The Firebird Homepage and put it somewhere in your classpath. To keep it simple you can put the jar file (for example jaybird-full-2.0.0.jar) in the $XMLBLASTER_HOME/lib directory. |
||||||||||||||||||||||||||||||||||||||||
Example Java |
<qos> ... <queue relating='callback' maxEntries='1000' maxBytes='4000000' onOverflow='deadMessage'> </qos> |
||||||||||||||||||||||||||||||||||||||||
Configure |
These parameters allow to configure a cache queue running with Firebird
How to switch to FirebirdPlease edit xmlBlaster.properties following the example below, typically you need to change the url setting to suit your environment. JdbcDriver.drivers=org.firebirdsql.jdbc.FBDriver:... JdbcStorage[Firebird]=org.xmlBlaster.util.queue.jdbc.JdbcQueueCommonTablePlugin,\ url=jdbc:firebirdsql:localhost/3050:c:/Firebird/Data/dbTest.fdb,\ user=sysdba,\ password=sysdba,\ connectionPoolSize=1,\ connectionBusyTimeout=90000,\ maxWaitingThreads=300,\ tableNamePrefix=XB_,\ entriesTableName=ENTRIES,\ dbAdmin=true StoragePlugin[JDBC][1.0]=${JdbcStorage[Firebird]} QueuePlugin[JDBC][1.0]=${JdbcStorage[Firebird]} JdbcDriver.mapping[Firebird]=string=VARCHAR(128),"longint=decimal(18,0)", int=integer,boolean=CHAR(1),blob=blob,blobVarName=msg Since 'blob' is a reserved in Firebird, it cannot be used as a field name. Instead, xmlBlaster will use the value specified in blobVarName - which, in this example, is 'msg'
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.CacheQueuePlugin | ||||||||||||||||||||||||||||||||||||||||
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 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.firebird.xml