|
From: Sherman W. <sw...@ga...> - 2004-03-12 17:16:47
|
>Does anybody have a sample of configuration data for a database configuration? Is this what you meant? sql/config.properties --------------------- journalType=postgresql journal/sql/config.properties ----------------------------- resourceName=babel-journal resource/babel-journal.properties ------------------------------------------------------------------ # Type is required. type=jndi datasourceName=java:galenworksDS Sherman Wood GalenWorks LLC 415 516-4894 |
|
From: Sherman W. <sw...@ga...> - 2004-03-13 04:38:36
|
Ignoring the journal part, I think what I showed is essentially right. Did you find: http://www.babeldoc.com/development/readme/userguide.xml.html#N1186D If you set up the datasource myDbDS and then create: resource/myDb.properties ------------------------------------------------------------------ # Type is required. type=jndi datasourceName=java:myDbDS You can do: <stage-inst> <stage-name>writer</stage-name> <stage-desc>this writes stuff</stage-desc> <stage-type>SqlWriter</stage-type> <option> <option-name>resourceName</option-name> <option-value>myDb</option-value> </option> <option> <option-name>sql</option-name> <option-value>insert into document (blah, blah, blah) values ($document.get("document_id"), blah, blah)</option-value> </option> </stage-inst> Sherman |
|
From: Michael A. <mic...@ze...> - 2004-03-12 20:36:10
|
Hi, Thanks Sherman. Though, what I was actually looking for was some sample data for using the sql configuration, not the sql journal, i.e.: some sample pipeline configuration data that actually goes into a database, along with the file configuration data to make it work. Cheers... MikeA On Fri, 2004-03-12 at 17:07, Sherman Wood wrote: > >Does anybody have a sample of configuration data for a database > configuration? >=20 > =20 >=20 > Is this what you meant? >=20 > =20 >=20 > sql/config.properties >=20 > --------------------- >=20 > journalType=3Dpostgresql >=20 > =20 >=20 > =20 >=20 > =20 >=20 > journal/sql/config.properties >=20 > ----------------------------- >=20 > resourceName=3Dbabel-journal >=20 > =20 >=20 > =20 >=20 > =20 >=20 > resource/babel-journal.properties >=20 > ------------------------------------------------------------------ >=20 > # Type is required. >=20 > type=3Djndi >=20 > datasourceName=3Djava:galenworksDS >=20 > =20 >=20 > =20 >=20 > Sherman Wood >=20 > GalenWorks LLC >=20 > 415 516-4894 >=20 > =20 >=20 >=20 |
|
From: Dejan K. <dej...@nb...> - 2004-03-15 10:02:45
|
Mike, if I understood you are asking about storing configuration data into database (instead of properties files) , right? I haven't used Babeldoc this way, but it is possible to configure it to use database. In fact, one of our developers, Erik Klein have done it in one production system so it should work well. Try to search mail archive ( I think it was last year) or contact him or Leong M. Dong (he works in the company where Erik has implemented that system) for further information. Dejan >Thanks Sherman. Though, what I was actually looking for was some sample >data for using the sql configuration, not the sql journal, i.e.: some >sample pipeline configuration data that actually goes into a database, >along with the file configuration data to make it work. |
|
From: Michael A. <mic...@ze...> - 2004-03-16 00:08:45
|
Hi, Dejan, Yes, you understood right. Thanks for the info. I managed to finally get the SQLConfigurationLoader working, and got the example config data into a Postgres database. Things are looking up. I'm pleased to hear that the sql configuration code is in production. Cheers... MikeA On Mon, 2004-03-15 at 10:01, Dejan Krsmanovic wrote: > Mike, >=20 > if I understood you are asking about storing configuration data into > database (instead of properties files) , right? >=20 > I haven't used Babeldoc this way, but it is possible to configure it to u= se > database. In fact, one of our developers, Erik Klein have done it in one > production system so it should work well. Try to search mail archive ( I > think it was last year) or contact him or Leong M. Dong (he works in the > company where Erik has implemented that system) for further information. >=20 > Dejan >=20 > >Thanks Sherman. Though, what I was actually looking for was some sample >=20 > >data for using the sql configuration, not the sql journal, i.e.: some >=20 > >sample pipeline configuration data that actually goes into a database, >=20 > >along with the file configuration data to make it work. >=20 >=20 >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dcli= ck > _______________________________________________ > Babeldoc-devel mailing list > Bab...@li... > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel |