You can subscribe to this list here.
| 2003 |
Jan
|
Feb
(14) |
Mar
(107) |
Apr
(211) |
May
(93) |
Jun
(158) |
Jul
(159) |
Aug
(368) |
Sep
(188) |
Oct
(151) |
Nov
(115) |
Dec
(98) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(25) |
Feb
|
Mar
(33) |
Apr
(28) |
May
(116) |
Jun
(2) |
Jul
(117) |
Aug
(19) |
Sep
(9) |
Oct
(2) |
Nov
|
Dec
(4) |
| 2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
(9) |
Dec
|
| 2006 |
Jan
|
Feb
|
Mar
(22) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2007 |
Jan
|
Feb
|
Mar
(6) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(267) |
Sep
|
Oct
|
Nov
(6) |
Dec
(512) |
| 2008 |
Jan
(187) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
(6) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2012 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <tr...@us...> - 2003-07-01 12:48:11
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core
In directory sc8-pr-cvs1:/tmp/cvs-serv1905
Added Files:
TieredConfigurationHelper.java
Log Message:
--- NEW FILE: TieredConfigurationHelper.java ---
package com.babeldoc.core;
import com.babeldoc.core.config.IConfig;
import java.util.*;
/**
*/
public class TieredConfigurationHelper {
private IConfig config;
private Map configs;
public TieredConfigurationHelper(IConfig config) {
this.config = config;
}
public Map getNamedConfigs() {
if(configs==null) {
extractedTieredConfigs();
}
return configs;
}
protected void extractedTieredConfigs() {
configs = new HashMap();
Set keys = config.keys();
for(Iterator i = keys.iterator(); i.hasNext();) {
String key = (String)i.next();
int dotIndex = key.indexOf('.');
if(dotIndex>0) {
String name = key.substring(0, dotIndex);
String rest = key.substring(dotIndex+1);
String value = config.getString(key);
Map tconfig = (Map)configs.get(name);
if(tconfig==null) {
tconfig = new HashMap();
configs.put(name, tconfig);
}
tconfig.put(rest, value);
}
}
}
public static void main(String[] args) {
class TestConfig extends Named implements IConfig {
Properties props;
TestConfig(String name, Properties props) {
super(name);
this.props = props;
}
public boolean isDirty() {
return false;
}
public void setString(String key, String value) {
props.setProperty(key, value);
}
public String getString(String name) {
return props.getProperty(name);
}
public boolean hasKey(String name) {
return props.getProperty(name)!=null;
}
public Set keys() {
return props.keySet();
}
}
TestConfig cfg = new TestConfig("test", new Properties());
cfg.setString("roger.this", "that");
cfg.setString("roger.one", "1");
cfg.setString("roger.two", "2");
cfg.setString("roger.three", "3");
cfg.setString("roger.four", "4");
cfg.setString("roger.five", "5");
cfg.setString("mike.two", "2");
cfg.setString("mike.three", "3");
cfg.setString("mike.four", "4");
cfg.setString("mike.five", "5");
cfg.setString("peter.four.alpha", "4");
cfg.setString("peter.five.beta", "5");
cfg.setString(".info.broken", "aaa");
Map map = new TieredConfigurationHelper(cfg).getNamedConfigs();
for (Iterator iterator = map.keySet().iterator(); iterator.hasNext();) {
String name = (String) iterator.next();
System.out.println("Map name: "+name);
Map inner = (Map)map.get(name);
for (Iterator iterator1 = inner.keySet().iterator(); iterator1.hasNext();) {
String s = (String) iterator1.next();
String v = (String)inner.get(s);
System.out.println(" "+s+"="+v);
}
}
}
}
|
|
From: Bruce M. <br...@mc...> - 2003-07-01 12:46:34
|
Yes - I have just committed it. On Tuesday 01 July 2003 05:27 am, Dejan Krsmanovic wrote: > It seems to me that you haven't commited FeederFactory yet... > > Dejan > > ----- Original Message ----- > From: "Bruce McDonald" <br...@mc...> > To: <bab...@li...> > Sent: Tuesday, July 01, 2003 12:21 AM > Subject: [Babeldoc-devel] FeederFactory implemented > > > All, > > > > I have implemented a FeederFactory. This makes running documents through > > pipelines a whole lot easier. Basically the feeders are now defined in > > the > > > config/feeder/config.properties file. This allows for you to add all > > kinds > > > of specialized feeders. You can get a defined feeder by calling > > getFeeder(String name) on the feeder factory. At the moment there is an > > synchrounous and in-memory asynchronous feeder (called "sync" and "async" > > repectively). I have changed some of the code in the scanner module > > (heads > > > up Dejan!!!!) to use this code. you will probably need to check this > > code before running your scanners. > > > > regards, > > Bruce. > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > > Data Reports, E-commerce, Portals, and Forums are available now. > > Download today and enter to win an XBOX or Visual Studio .NET. > > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > > _______________________________________________ > > Babeldoc-devel mailing list > > Bab...@li... > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > _______________________________________________ > Babeldoc-devel mailing list > Bab...@li... > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel |
|
From: <tr...@us...> - 2003-07-01 12:46:00
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/feeder In directory sc8-pr-cvs1:/tmp/cvs-serv1709 Added Files: FeederFactory.java Log Message: missing file --- NEW FILE: FeederFactory.java --- /* ==================================================================== * The Apache Software License, Version 1.1 * * Copyright (c) 2000 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Apache" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact ap...@ap.... * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * * Portions of this software are based upon public domain software * originally written at the National Center for Supercomputing Applications, * University of Illinois, Urbana-Champaign. * ==================================================================== * * Babeldoc: The Universal Document Processor * * $Header: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/feeder/FeederFactory.java,v 1.1 2003/07/01 12:45:57 triphop Exp $ * $Author: triphop $ * */ package com.babeldoc.core.pipeline.feeder; import com.babeldoc.core.config.IConfig; import com.babeldoc.core.config.ConfigService; import com.babeldoc.core.TieredConfigurationHelper; import com.babeldoc.core.GeneralException; import com.babeldoc.core.service.ServiceFactory; import com.babeldoc.core.service.ServiceException; import java.util.Collection; import java.util.Map; import java.util.HashMap; /** * The feeder factory provides an easy way to feed documents into the pipelines in * babeldoc. There exists a number of "feeders" which are implemented in a number of * generally useful ways. Each of the feeders have a name and are stored in the * feeder/config configuration file. Each feeder has to have a type associated with it. * There are two defined feeders in the system: sync & async. The sync feeder * synchronously feeds each document to the pipeline. The async feeder uses a multithread * queue with producer/collector pattern to separate the feedign from thr processing. * * Please look at the process methods which provide a number of generally useful and easy * methods of getting data into the system. */ public class FeederFactory { private static FeederFactory instance; private Map feeders; private TieredConfigurationHelper configHelper; public static final String FEEDER_CONFIG = "feeder/config"; public static final String FEEDER_TYPE = "type"; public static final String SERVICE_FEEDER = "Feeder."; public static final String SYNC = "sync"; public static final String ASYNC = "async"; /** * Private constructor - this must be instantiated through the feeder factory * getInstance method */ private FeederFactory() { feeders = new HashMap(); } /** * Get the current instance of this singleton class. If there is not a current * implementation, create a new implementation. * * @return */ public static FeederFactory getInstance() { if(instance==null) { instance = new FeederFactory(); } return instance; } /** * Get the feeder with this name. If this feeder does not exist, then * create it. This is done by reading the feeder/config configuration file. * This file is arranged as follows: * * feeder-name.type=Synchonous|Asynchronous|etc * feeder-name.cfg-1=value-1 * ... * feeder-name.cfg-n=value-n * * @param name * @return * @throws ServiceException */ public IFeeder getFeeder(String name) throws GeneralException { // System.out.println("Getting feeder)"); IFeeder feeder = (IFeeder)feeders.get(name); if(feeder==null) { // System.out.println("Creating feeder)"); if(configHelper==null) { // System.out.println("Creating configHelper"); IConfig config = ConfigService.getInstance().getConfig(FEEDER_CONFIG); configHelper = new TieredConfigurationHelper(config); } Map feederConfig = (Map)configHelper.getNamedConfigs().get(name); if(feederConfig!=null) { // System.out.println("config data not null: "+feederConfig.toString()); String feederType = (String)feederConfig.get(FEEDER_TYPE); feeder = (IFeeder)(ServiceFactory.getService(SERVICE_FEEDER+feederType)); feeder.initialize(feederConfig); } } return feeder; } /** * Feed the document according to the name of the feeder. This method takes a * feed document. * * @param name feeder name * @param feedDoc document to feed * @return * @throws GeneralException */ public Collection process(String name, FeedDocument feedDoc) throws GeneralException { return getFeeder(name).process(feedDoc); } /** * Feed the document according to the name of the feeder. This method takes * all the data to construct a full feed document * * @param name feeder name * @param pipelineName name of the pipeline * @param data array of bytes that is the document to process * @param attributes map of attributes * @param isBinary sets the isBinary flag on the document * @param noJournal allows for the journal to be turned on or off for this processing. * @return * @throws GeneralException */ public Collection process(String name, String pipelineName, byte[] data, Map attributes, boolean isBinary, boolean noJournal) throws GeneralException { return getFeeder(name).process( new FeedDocument(pipelineName, data, attributes, isBinary, noJournal)); } /** * Feed the document according to the name of the feeder. This method constructs * a feed document with the data BUT assumes that the data is NOT binary and * that the journalling is ENABLED. * * @param name feeder name * @param pipelineName name of the pipeline * @param data array of bytes that is the document to process * @param attributes map of attributes * @return * @throws GeneralException */ public Collection process(String name, String pipelineName, byte[] data, Map attributes) throws GeneralException { return getFeeder(name).process( new FeedDocument(pipelineName, data, attributes, false, false)); } /** * Feed the document according to the name of the feeder. This method constructs * a feed document with the data BUT assumes that the data is NOT binary and * that the journalling is ENABLED and NO attributes. * * @param name feeder name * @param pipelineName name of the pipeline * @param data array of bytes that is the document to process * @return * @throws GeneralException */ public Collection process(String name, String pipelineName, byte[] data) throws GeneralException { return getFeeder(name).process( new FeedDocument(pipelineName, data, new HashMap(), false, false)); } } |
|
From: <de...@us...> - 2003-07-01 12:11:55
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv29628/modules/core/lib
Added Files:
Tag: branch_1_0
commons-net.jar
Removed Files:
Tag: branch_1_0
commons-net-1.0.0-dev.jar
Log Message:
Updated commons-net library to 1.0 final release for branch_1_0
--- NEW FILE: commons-net.jar ---
(This appears to be a binary file; contents omitted.)
--- commons-net-1.0.0-dev.jar DELETED ---
|
|
From: Dejan K. <dej...@nb...> - 2003-07-01 09:28:53
|
It seems to me that you haven't commited FeederFactory yet... Dejan ----- Original Message ----- From: "Bruce McDonald" <br...@mc...> To: <bab...@li...> Sent: Tuesday, July 01, 2003 12:21 AM Subject: [Babeldoc-devel] FeederFactory implemented > All, > > I have implemented a FeederFactory. This makes running documents through > pipelines a whole lot easier. Basically the feeders are now defined in the > config/feeder/config.properties file. This allows for you to add all kinds > of specialized feeders. You can get a defined feeder by calling > getFeeder(String name) on the feeder factory. At the moment there is an > synchrounous and in-memory asynchronous feeder (called "sync" and "async" > repectively). I have changed some of the code in the scanner module (heads > up Dejan!!!!) to use this code. you will probably need to check this code > before running your scanners. > > regards, > Bruce. > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > _______________________________________________ > Babeldoc-devel mailing list > Bab...@li... > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel |
|
From: Leech, J. <jl...@vi...> - 2003-07-01 00:04:12
|
OK, I see how you could control threading per pipeline, and just split the configuration into enough pipelines to do what you want with threading. Perhaps the stage level would be a good place for it as well -- e.g. router.threading=parallel. -Jonathan -----Original Message----- From: Bruce McDonald [mailto:br...@mc...] Sent: Monday, June 30, 2003 5:45 PM To: Leech, Jonathan; bab...@li... Subject: Re: [Babeldoc-devel] threading Jonathan, Ok, lots to consider here: On Monday 30 June 2003 06:42 pm, Leech, Jonathan wrote: > I agree. If you consider it a threading preference, you can have the > pipeline configuration basically saying "I would prefer you do these N > stages all at once", but whether they really happen in parallel is up to > whether you're allowed threads at all, whether there's any threads > available in a pool, etc. etc. Why not split your pipeline in several pipelines and then govern the calling into those pipelines using an enhanced version of the CallStagePipelineStage. > What I really would want is to be able to > configure different parts of the pipeline to operate in serial / parallel; > e.g. for my application I need to route a document down two different > paths, which I would like to do in parallel. But for one of the paths, I > will be breaking the document up further into parts, and according to our > partner, can only send one part at a time. So I have to be able to specify > serial there. Maybe your prototype some of this and then report back - maybe include snippets of configuration files, code, etc. > What are your thoughts on consolidating various XML bits back > into a single document, once I have split it up and retrieved data from > various sources? This is one of the "Holy Grails" - I would love to hear your ideas about this. Dejan and I have discussed this at length. We had some ideas but they were all rather "wild". >I am thinking along the lines of writing all the data to a > database and then querying for it at the end. It seems like that strategy > would be more compatible with replaying steps than others I have thought > of. > > -Jonathan > > -----Original Message----- > From: Bruce McDonald [mailto:br...@mc...] > Sent: Monday, June 30, 2003 4:31 PM > To: Leech, Jonathan; bab...@li... > Subject: Re: [Babeldoc-devel] threading > > > Whoa!!! > > Sorry, I misunderstood (I just wrote a hammer - and now all I see is nails) > no, this is not something that can be just done in an ad-hoc fashion. The > running of stages in a pipeline must be switchable between multi- and > single-threaded. This is because certain environments do not tolerate > application spawned threads (J2EE). > > What I think can be done here is introducing a "ThreadingPolicy" object > that > > can be configured for each environment. So usually its MultiThreaded > (using > > a thread pool) but it can also operate synchronously. > > What do you think? > > regards, > B ruce. > > On Monday 30 June 2003 06:23 pm, Bruce McDonald wrote: > > Jonathan, > > > > Ok, I have just implemented a feederfactory which should make this kind > > of thing easy. So just submit the document using the asynchronous feeder > > instead of the synchronous feeder and you are done. > > > > regards, > > Bruce. > > > > On Monday 30 June 2003 01:19 pm, Leech, Jonathan wrote: > > > I'm using a Router pipeline stage to send the same document down > > multiple > > > > paths... Is there currently any way to make these pipeline stages get > > > processed in parallel instead of sequentially? If not, maybe something > > > along the lines of the <parallel> and <sequential> tags in ant would > > > work... > > > > > > Sincerely, > > > Jonathan Leech > > > Senior Software Engineer > > > Virtela Communications, Inc. > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > > Data Reports, E-commerce, Portals, and Forums are available now. > > Download today and enter to win an XBOX or Visual Studio .NET. > > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > > _______________________________________________ > > Babeldoc-devel mailing list > > Bab...@li... > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > _______________________________________________ > Babeldoc-devel mailing list > Bab...@li... > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel |
|
From: Bruce M. <br...@mc...> - 2003-06-30 23:45:11
|
Jonathan, Ok, lots to consider here: On Monday 30 June 2003 06:42 pm, Leech, Jonathan wrote: > I agree. If you consider it a threading preference, you can have the > pipeline configuration basically saying "I would prefer you do these N > stages all at once", but whether they really happen in parallel is up to > whether you're allowed threads at all, whether there's any threads > available in a pool, etc. etc. Why not split your pipeline in several pipelines and then govern the calling into those pipelines using an enhanced version of the CallStagePipelineStage. > What I really would want is to be able to > configure different parts of the pipeline to operate in serial / parallel; > e.g. for my application I need to route a document down two different > paths, which I would like to do in parallel. But for one of the paths, I > will be breaking the document up further into parts, and according to our > partner, can only send one part at a time. So I have to be able to specify > serial there. Maybe your prototype some of this and then report back - maybe include snippets of configuration files, code, etc. > What are your thoughts on consolidating various XML bits back > into a single document, once I have split it up and retrieved data from > various sources? This is one of the "Holy Grails" - I would love to hear your ideas about this. Dejan and I have discussed this at length. We had some ideas but they were all rather "wild". >I am thinking along the lines of writing all the data to a > database and then querying for it at the end. It seems like that strategy > would be more compatible with replaying steps than others I have thought > of. > > -Jonathan > > -----Original Message----- > From: Bruce McDonald [mailto:br...@mc...] > Sent: Monday, June 30, 2003 4:31 PM > To: Leech, Jonathan; bab...@li... > Subject: Re: [Babeldoc-devel] threading > > > Whoa!!! > > Sorry, I misunderstood (I just wrote a hammer - and now all I see is nails) > no, this is not something that can be just done in an ad-hoc fashion. The > running of stages in a pipeline must be switchable between multi- and > single-threaded. This is because certain environments do not tolerate > application spawned threads (J2EE). > > What I think can be done here is introducing a "ThreadingPolicy" object > that > > can be configured for each environment. So usually its MultiThreaded > (using > > a thread pool) but it can also operate synchronously. > > What do you think? > > regards, > B ruce. > > On Monday 30 June 2003 06:23 pm, Bruce McDonald wrote: > > Jonathan, > > > > Ok, I have just implemented a feederfactory which should make this kind > > of thing easy. So just submit the document using the asynchronous feeder > > instead of the synchronous feeder and you are done. > > > > regards, > > Bruce. > > > > On Monday 30 June 2003 01:19 pm, Leech, Jonathan wrote: > > > I'm using a Router pipeline stage to send the same document down > > multiple > > > > paths... Is there currently any way to make these pipeline stages get > > > processed in parallel instead of sequentially? If not, maybe something > > > along the lines of the <parallel> and <sequential> tags in ant would > > > work... > > > > > > Sincerely, > > > Jonathan Leech > > > Senior Software Engineer > > > Virtela Communications, Inc. > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > > Data Reports, E-commerce, Portals, and Forums are available now. > > Download today and enter to win an XBOX or Visual Studio .NET. > > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > > _______________________________________________ > > Babeldoc-devel mailing list > > Bab...@li... > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > _______________________________________________ > Babeldoc-devel mailing list > Bab...@li... > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel |
|
From: <tr...@us...> - 2003-06-30 22:47:06
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/config/feeder In directory sc8-pr-cvs1:/tmp/cvs-serv17597/feeder Log Message: Directory /cvsroot/babeldoc/babeldoc/modules/core/config/feeder added to the repository |
|
From: Leech, J. <jl...@vi...> - 2003-06-30 22:43:27
|
I agree. If you consider it a threading preference, you can have the pipeline configuration basically saying "I would prefer you do these N stages all at once", but whether they really happen in parallel is up to whether you're allowed threads at all, whether there's any threads available in a pool, etc. etc. What I really would want is to be able to configure different parts of the pipeline to operate in serial / parallel; e.g. for my application I need to route a document down two different paths, which I would like to do in parallel. But for one of the paths, I will be breaking the document up further into parts, and according to our partner, can only send one part at a time. So I have to be able to specify serial there. What are your thoughts on consolidating various XML bits back into a single document, once I have split it up and retrieved data from various sources? I am thinking along the lines of writing all the data to a database and then querying for it at the end. It seems like that strategy would be more compatible with replaying steps than others I have thought of. -Jonathan -----Original Message----- From: Bruce McDonald [mailto:br...@mc...] Sent: Monday, June 30, 2003 4:31 PM To: Leech, Jonathan; bab...@li... Subject: Re: [Babeldoc-devel] threading Whoa!!! Sorry, I misunderstood (I just wrote a hammer - and now all I see is nails) no, this is not something that can be just done in an ad-hoc fashion. The running of stages in a pipeline must be switchable between multi- and single-threaded. This is because certain environments do not tolerate application spawned threads (J2EE). What I think can be done here is introducing a "ThreadingPolicy" object that can be configured for each environment. So usually its MultiThreaded (using a thread pool) but it can also operate synchronously. What do you think? regards, B ruce. On Monday 30 June 2003 06:23 pm, Bruce McDonald wrote: > Jonathan, > > Ok, I have just implemented a feederfactory which should make this kind of > thing easy. So just submit the document using the asynchronous feeder > instead of the synchronous feeder and you are done. > > regards, > Bruce. > > On Monday 30 June 2003 01:19 pm, Leech, Jonathan wrote: > > I'm using a Router pipeline stage to send the same document down multiple > > paths... Is there currently any way to make these pipeline stages get > > processed in parallel instead of sequentially? If not, maybe something > > along the lines of the <parallel> and <sequential> tags in ant would > > work... > > > > Sincerely, > > Jonathan Leech > > Senior Software Engineer > > Virtela Communications, Inc. > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > _______________________________________________ > Babeldoc-devel mailing list > Bab...@li... > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel |
|
From: <tr...@us...> - 2003-06-30 22:39:06
|
Update of /cvsroot/babeldoc/babeldoc/modules/scanner/config/feeder In directory sc8-pr-cvs1:/tmp/cvs-serv19895/feeder Log Message: Directory /cvsroot/babeldoc/babeldoc/modules/scanner/config/feeder added to the repository |
|
From: Bruce M. <br...@mc...> - 2003-06-30 22:30:45
|
Whoa!!! Sorry, I misunderstood (I just wrote a hammer - and now all I see is nails) no, this is not something that can be just done in an ad-hoc fashion. The running of stages in a pipeline must be switchable between multi- and single-threaded. This is because certain environments do not tolerate application spawned threads (J2EE). What I think can be done here is introducing a "ThreadingPolicy" object that can be configured for each environment. So usually its MultiThreaded (using a thread pool) but it can also operate synchronously. What do you think? regards, B ruce. On Monday 30 June 2003 06:23 pm, Bruce McDonald wrote: > Jonathan, > > Ok, I have just implemented a feederfactory which should make this kind of > thing easy. So just submit the document using the asynchronous feeder > instead of the synchronous feeder and you are done. > > regards, > Bruce. > > On Monday 30 June 2003 01:19 pm, Leech, Jonathan wrote: > > I'm using a Router pipeline stage to send the same document down multiple > > paths... Is there currently any way to make these pipeline stages get > > processed in parallel instead of sequentially? If not, maybe something > > along the lines of the <parallel> and <sequential> tags in ant would > > work... > > > > Sincerely, > > Jonathan Leech > > Senior Software Engineer > > Virtela Communications, Inc. > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > _______________________________________________ > Babeldoc-devel mailing list > Bab...@li... > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel |
|
From: Bruce M. <br...@mc...> - 2003-06-30 22:23:03
|
Jonathan, Ok, I have just implemented a feederfactory which should make this kind of thing easy. So just submit the document using the asynchronous feeder instead of the synchronous feeder and you are done. regards, Bruce. On Monday 30 June 2003 01:19 pm, Leech, Jonathan wrote: > I'm using a Router pipeline stage to send the same document down multiple > paths... Is there currently any way to make these pipeline stages get > processed in parallel instead of sequentially? If not, maybe something > along the lines of the <parallel> and <sequential> tags in ant would > work... > > Sincerely, > Jonathan Leech > Senior Software Engineer > Virtela Communications, Inc. |
|
From: Bruce M. <br...@mc...> - 2003-06-30 22:21:58
|
All, I have implemented a FeederFactory. This makes running documents through pipelines a whole lot easier. Basically the feeders are now defined in the config/feeder/config.properties file. This allows for you to add all kinds of specialized feeders. You can get a defined feeder by calling getFeeder(String name) on the feeder factory. At the moment there is an synchrounous and in-memory asynchronous feeder (called "sync" and "async" repectively). I have changed some of the code in the scanner module (heads up Dejan!!!!) to use this code. you will probably need to check this code before running your scanners. regards, Bruce. |
|
From: <tr...@us...> - 2003-06-30 22:16:45
|
Update of /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner
In directory sc8-pr-cvs1:/tmp/cvs-serv22611/src/com/babeldoc/scanner
Modified Files:
Scanner.java ScannerFactory.java
Log Message:
updated the scanner code to use the feeder factory code.
Index: Scanner.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/Scanner.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** Scanner.java 27 Jun 2003 14:00:12 -0000 1.19
--- Scanner.java 30 Jun 2003 22:16:42 -0000 1.20
***************
*** 66,75 ****
package com.babeldoc.scanner;
! import com.babeldoc.core.BabeldocCommand;
! import com.babeldoc.core.I18n;
! import com.babeldoc.core.LogService;
! import com.babeldoc.core.RmiRegistry;
import com.babeldoc.core.pipeline.feeder.AsynchronousFeeder;
import com.babeldoc.core.pipeline.feeder.IFeederQueue;
import com.babeldoc.scanner.rmi.IRemoteScanner;
--- 66,74 ----
package com.babeldoc.scanner;
! import com.babeldoc.core.*;
import com.babeldoc.core.pipeline.feeder.AsynchronousFeeder;
import com.babeldoc.core.pipeline.feeder.IFeederQueue;
+ import com.babeldoc.core.pipeline.feeder.FeederFactory;
+ import com.babeldoc.core.pipeline.feeder.IFeeder;
import com.babeldoc.scanner.rmi.IRemoteScanner;
***************
*** 93,101 ****
public class Scanner extends BabeldocCommand {
private static LogService log = LogService.getInstance(Scanner.class.getName());
! private AsynchronousFeeder feeder;
private Collection workers;
private ScannerFactory factory;
private ScannerWorkerScheduler scheduler;
/**
* Constructor with all the command line arguments
--- 92,102 ----
public class Scanner extends BabeldocCommand {
private static LogService log = LogService.getInstance(Scanner.class.getName());
! private IFeeder feeder;
private Collection workers;
private ScannerFactory factory;
private ScannerWorkerScheduler scheduler;
+ public static final String SCANNER_FEEDER = "scanner";
+
/**
* Constructor with all the command line arguments
***************
*** 136,141 ****
/**
! *
! */
public void finishUp() {
this.stop();
--- 137,142 ----
/**
! *
! */
public void finishUp() {
this.stop();
***************
*** 181,187 ****
}
! /**
! *
! */
public void saveConfiguration() {
// TODO Auto-generated method stub
--- 182,188 ----
}
! /**
! *
! */
public void saveConfiguration() {
// TODO Auto-generated method stub
***************
*** 194,217 ****
super.setupCommandLine(options);
options.addOption(OptionBuilder.isRequired(false).hasArg(true)
! .withDescription(I18n.get(
! "scanner.Scanner.option.scanner")).withLongOpt("scanner").create('s'));
options.addOption(OptionBuilder.isRequired(false).hasArg(false)
! .withDescription(I18n.get(
! "scanner.Scanner.option.rmi")).withLongOpt("rmi").create('r'));
options.addOption(OptionBuilder.isRequired(false).hasArg(true)
! .withDescription(I18n.get(
! "scanner.Scanner.option.port")).withLongOpt("port").create('p'));
}
/**
! *
! */
public void start() throws ScannerException {
factory = ScannerFactory.getInstance();
log.logInfo("Starting feeder...");
! IFeederQueue queue = factory.getQueue();
! feeder = new AsynchronousFeeder(queue);
!
//handleRemoteServer(-1);
log.logInfo("Initializing workers:");
--- 195,221 ----
super.setupCommandLine(options);
options.addOption(OptionBuilder.isRequired(false).hasArg(true)
! .withDescription(I18n.get(
! "scanner.Scanner.option.scanner")).withLongOpt("scanner").create('s'));
options.addOption(OptionBuilder.isRequired(false).hasArg(false)
! .withDescription(I18n.get(
! "scanner.Scanner.option.rmi")).withLongOpt("rmi").create('r'));
options.addOption(OptionBuilder.isRequired(false).hasArg(true)
! .withDescription(I18n.get(
! "scanner.Scanner.option.port")).withLongOpt("port").create('p'));
}
/**
! *
! */
public void start() throws ScannerException {
factory = ScannerFactory.getInstance();
log.logInfo("Starting feeder...");
! // feeder = new AsynchronousFeeder(queue);
! try {
! feeder = FeederFactory.getInstance().getFeeder(SCANNER_FEEDER);
! } catch (GeneralException e) {
! e.printStackTrace(); //To change body of catch statement use Options | File Templates.
! }
//handleRemoteServer(-1);
log.logInfo("Initializing workers:");
***************
*** 246,251 ****
/**
! *
! */
public void stop() {
log.logInfo("Shutting down...");
--- 250,255 ----
/**
! *
! */
public void stop() {
log.logInfo("Shutting down...");
***************
*** 253,257 ****
this.scheduler.stopAll();
! this.feeder.stopRunning();
log.logInfo("Stopping feeder");
}
--- 257,261 ----
this.scheduler.stopAll();
! ((AsynchronousFeeder) this.feeder).stopRunning();
log.logInfo("Stopping feeder");
}
Index: ScannerFactory.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/ScannerFactory.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** ScannerFactory.java 27 Jun 2003 14:00:13 -0000 1.6
--- ScannerFactory.java 30 Jun 2003 22:16:42 -0000 1.7
***************
*** 145,160 ****
/**
- *
- */
- public IFeederQueue getQueue() throws ScannerException {
- //TODO: Implement reading queue configuration
- try {
- return new DiskQueue("queue");
- } catch (Exception e) {
- throw new ScannerException("Error creating queue", e);
- }
- }
-
- /**
* Get scanner worker with name workerName.
*
--- 145,148 ----
|
|
From: <tr...@us...> - 2003-06-30 22:16:44
|
Update of /cvsroot/babeldoc/babeldoc/modules/scanner/config/feeder In directory sc8-pr-cvs1:/tmp/cvs-serv22611/config/feeder Added Files: config.properties Log Message: updated the scanner code to use the feeder factory code. --- NEW FILE: config.properties --- # Scanner feeder implementation scanner.type=asynchronous scanner.queue=disk scanner.queueDir=. scanner.queueName=scanner |
|
From: <tr...@us...> - 2003-06-30 22:14:59
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/config/service In directory sc8-pr-cvs1:/tmp/cvs-serv22133/config/service Modified Files: query.properties Log Message: Added the feeder factory and the abstraction of access to the feeders. Index: query.properties =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/core/config/service/query.properties,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** query.properties 25 Jun 2003 14:00:18 -0000 1.7 --- query.properties 30 Jun 2003 22:14:56 -0000 1.8 *************** *** 35,36 **** --- 35,39 ---- UserResourceFactory.simple=com.babeldoc.core.user.simple.SimpleResourceFactory + Feeder.synchronous=com.babeldoc.core.pipeline.feeder.SynchronousFeeder + Feeder.asynchronous=com.babeldoc.core.pipeline.feeder.AsynchronousFeeder + |
|
From: <tr...@us...> - 2003-06-30 22:14:59
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/command
In directory sc8-pr-cvs1:/tmp/cvs-serv22133/src/com/babeldoc/core/pipeline/command
Modified Files:
PipelineFeeder.java
Log Message:
Added the feeder factory and the abstraction of access to the feeders.
Index: PipelineFeeder.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/command/PipelineFeeder.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** PipelineFeeder.java 27 Jun 2003 02:19:58 -0000 1.8
--- PipelineFeeder.java 30 Jun 2003 22:14:56 -0000 1.9
***************
*** 69,76 ****
import com.babeldoc.core.LogService;
import com.babeldoc.core.ResourceLoader;
! import com.babeldoc.core.journal.JournalException;
import com.babeldoc.core.pipeline.PipelineException;
! import com.babeldoc.core.pipeline.feeder.FeedDocument;
! import com.babeldoc.core.pipeline.feeder.SynchronousFeeder;
import org.apache.commons.cli.CommandLine;
--- 69,75 ----
import com.babeldoc.core.LogService;
import com.babeldoc.core.ResourceLoader;
! import com.babeldoc.core.GeneralException;
import com.babeldoc.core.pipeline.PipelineException;
! import com.babeldoc.core.pipeline.feeder.FeederFactory;
import org.apache.commons.cli.CommandLine;
***************
*** 161,166 ****
} catch (PipelineException pipex) {
LogService.getInstance().logError(I18n.get("009003"), pipex);
- } catch (JournalException journalx) {
- LogService.getInstance().logError(I18n.get("009004"), journalx);
} catch (Exception x) {
LogService.getInstance().logError(I18n.get("009005"), x);
--- 160,163 ----
***************
*** 187,196 ****
*
* @throws PipelineException
- * @throws JournalException
* @throws IOException DOCUMENT ME!
*/
public static void process(String pipelineName, String fileName,
String[] attrs, boolean bindata, boolean nojournal)
! throws PipelineException, JournalException, IOException {
byte[] fileData = null;
Map attrMap = getAttributes(attrs);
--- 184,192 ----
*
* @throws PipelineException
* @throws IOException DOCUMENT ME!
*/
public static void process(String pipelineName, String fileName,
String[] attrs, boolean bindata, boolean nojournal)
! throws PipelineException, IOException {
byte[] fileData = null;
Map attrMap = getAttributes(attrs);
***************
*** 206,211 ****
}
! new SynchronousFeeder().process(new FeedDocument(pipelineName, fileData,
! attrMap, bindata, nojournal));
}
--- 202,211 ----
}
! try {
! FeederFactory.getInstance().process(FeederFactory.SYNC, pipelineName, fileData,
! attrMap, bindata, nojournal);
! } catch (GeneralException e) {
! LogService.getInstance().logError(e);
! }
}
|
|
From: <tr...@us...> - 2003-06-30 22:14:59
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/feeder
In directory sc8-pr-cvs1:/tmp/cvs-serv22133/src/com/babeldoc/core/pipeline/feeder
Modified Files:
AsynchronousFeeder.java IFeeder.java SynchronousFeeder.java
Log Message:
Added the feeder factory and the abstraction of access to the feeders.
Index: AsynchronousFeeder.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/feeder/AsynchronousFeeder.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** AsynchronousFeeder.java 27 Jun 2003 02:19:59 -0000 1.6
--- AsynchronousFeeder.java 30 Jun 2003 22:14:56 -0000 1.7
***************
*** 67,76 ****
import com.babeldoc.core.LogService;
import com.babeldoc.core.journal.JournalException;
import com.babeldoc.core.pipeline.PipelineException;
import org.apache.commons.threadpool.DefaultThreadPool;
! import java.util.ArrayList;
--- 67,81 ----
import com.babeldoc.core.LogService;
+ import com.babeldoc.core.GeneralException;
import com.babeldoc.core.journal.JournalException;
import com.babeldoc.core.pipeline.PipelineException;
import org.apache.commons.threadpool.DefaultThreadPool;
+ import org.apache.commons.lang.NumberUtils;
! import java.util.Collection;
! import java.util.Map;
! import java.io.File;
! import java.io.IOException;
***************
*** 85,88 ****
--- 90,100 ----
*/
public class AsynchronousFeeder extends SynchronousFeeder implements Runnable {
+ public static final String Q_TYPE_DISK = "disk";
+ public static final String Q_TYPE_MEMORY = "memory";
+ public static final String Q_TYPE = "queue";
+ public static final String Q_DISK_DIR = "queueDir";
+ public static final String Q_DIR_NAME = "queueName";
+ public static final String POOLSIZE = "poolSize";
+
private DefaultThreadPool threadPool;
***************
*** 91,120 ****
private LogService log = LogService.getInstance(AsynchronousFeeder.class.getName());
private boolean stopRunning = false;
-
/**
! * Construct this object - this sets up the queue and the threadpool. This
* will also add this task (runnable) to the ThreadPool via the invokeLater
* method. This will exactly match the number of threads this thread pool
* object is dedicated to Asynchronous feeding.
*
- * @param queue DOCUMENT ME!
- */
- public AsynchronousFeeder(IFeederQueue queue) {
- this.queue = queue;
- threadPool = new DefaultThreadPool(1);
- threadPool.invokeLater(this);
- }
-
- /**
- * Construct this object - this sets up the queue and the threadpool. This
- * will also add this task (runnable) to the ThreadPool via the invokeLater
- * method. This will exactly match the number of threads this thread pool
- * object is dedicated to Asynchronous feeding.
*
! * @param queue DOCUMENT ME!
! * @param poolSize DOCUMENT ME!
*/
! public AsynchronousFeeder(IFeederQueue queue, int poolSize) {
! this.queue = queue;
threadPool = new DefaultThreadPool(poolSize);
--- 103,138 ----
private LogService log = LogService.getInstance(AsynchronousFeeder.class.getName());
private boolean stopRunning = false;
/**
! * initialize this object - this sets up the queue and the threadpool. This
* will also add this task (runnable) to the ThreadPool via the invokeLater
* method. This will exactly match the number of threads this thread pool
* object is dedicated to Asynchronous feeding.
*
*
! * @param map
*/
! public void initialize(Map map)
! throws GeneralException{
! if(map!=null) {
! String qtype = (String)map.get(Q_TYPE);
! if(Q_TYPE_DISK.equals(qtype)) {
! String qname = (String)map.get(Q_DIR_NAME);
! String qdir = (String)map.get(Q_DISK_DIR);
! if(qname==null) {
! throw new GeneralException("Disk queues must have a 'queueName'");
! }
! if(qdir==null||new File(qdir).exists()) {
! throw new GeneralException("Disk queues must have a 'queueDir'");
! }
! try {
! this.queue = new DiskQueue(qname, new File(qdir));
! } catch (IOException e) {
! throw new GeneralException("Trying to create a disk queue", e);
! }
! } else {
! this.queue = new MemoryQueue();
! }
! }
! int poolSize = NumberUtils.stringToInt((String)map.get(POOLSIZE), 1);
threadPool = new DefaultThreadPool(poolSize);
***************
*** 135,139 ****
* @throws PipelineException
*/
! public ArrayList process(FeedDocument docFeed)
throws JournalException, PipelineException {
try {
--- 153,157 ----
* @throws PipelineException
*/
! public Collection process(FeedDocument docFeed)
throws JournalException, PipelineException {
try {
Index: IFeeder.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/feeder/IFeeder.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** IFeeder.java 27 Jun 2003 02:19:59 -0000 1.2
--- IFeeder.java 30 Jun 2003 22:14:56 -0000 1.3
***************
*** 69,72 ****
--- 69,74 ----
import java.util.ArrayList;
+ import java.util.Collection;
+ import java.util.Map;
***************
*** 89,92 ****
* @throws GeneralException
*/
! public ArrayList process(FeedDocument docFeed) throws GeneralException;
}
--- 91,104 ----
* @throws GeneralException
*/
! public Collection process(FeedDocument docFeed)
! throws GeneralException;
!
! /**
! * Iniatialize this feeder object. This operation is guaranteeded to be called just
! * after the feeder has been constructed and before it is used to feed documents.
! *
! * @param configuration
! */
! public void initialize(Map configuration)
! throws GeneralException;
}
Index: SynchronousFeeder.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/feeder/SynchronousFeeder.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** SynchronousFeeder.java 27 Jun 2003 02:19:59 -0000 1.4
--- SynchronousFeeder.java 30 Jun 2003 22:14:56 -0000 1.5
***************
*** 73,79 ****
--- 73,82 ----
import com.babeldoc.core.pipeline.PipelineException;
import com.babeldoc.core.pipeline.PipelineFactoryFactory;
+ import com.babeldoc.core.GeneralException;
import java.util.ArrayList;
import java.util.Iterator;
+ import java.util.Collection;
+ import java.util.Map;
***************
*** 86,89 ****
--- 89,93 ----
*/
public class SynchronousFeeder implements IFeeder {
+
/**
* Create a pipeline document from the string and the properties
***************
*** 121,125 ****
* @throws PipelineException
*/
! public ArrayList process(FeedDocument feedDoc)
throws JournalException, PipelineException {
IJournal journal = JournalFactory.getJournal();
--- 125,129 ----
* @throws PipelineException
*/
! public Collection process(FeedDocument feedDoc)
throws JournalException, PipelineException {
IJournal journal = JournalFactory.getJournal();
***************
*** 138,141 ****
--- 142,156 ----
return results;
+ }
+
+ /**
+ * Iniatialize this feeder object. This operation is guaranteeded to be called just
+ * after the feeder has been constructed and before it is used to feed documents. This
+ * does nothing for the synchronous feeder.
+ *
+ * @param configuration
+ */
+ public void initialize(Map configuration)
+ throws GeneralException {
}
}
|
|
From: <tr...@us...> - 2003-06-30 22:14:59
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/config/feeder In directory sc8-pr-cvs1:/tmp/cvs-serv22133/config/feeder Added Files: config.properties Log Message: Added the feeder factory and the abstraction of access to the feeders. --- NEW FILE: config.properties --- # The generic feeders: synchronous sync.type=synchronous # The generic feeders: asynchronous - with an in-memory queue async.type=asynchronous async.queue=memory # The "specific" feeders: asynchronous - with disk queue #async-d.type=asynchronous #async-d.queue=disk #async-d.queueDir=/tmp #async-d.queueName=async-d |
|
From: Leech, J. <jl...@vi...> - 2003-06-30 17:20:02
|
I'm using a Router pipeline stage to send the same document down multiple paths... Is there currently any way to make these pipeline stages get processed in parallel instead of sequentially? If not, maybe something along the lines of the <parallel> and <sequential> tags in ant would work... Sincerely, Jonathan Leech Senior Software Engineer Virtela Communications, Inc. |
|
From: <tr...@us...> - 2003-06-28 18:13:28
|
Update of /cvsroot/babeldoc/babeldoc/readme
In directory sc8-pr-cvs1:/tmp/cvs-serv956/readme
Modified Files:
Tag: branch_1_0
CHANGES
Log Message:
updated the changes file.
Index: CHANGES
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/readme/CHANGES,v
retrieving revision 1.20.4.2
retrieving revision 1.20.4.3
diff -C2 -d -r1.20.4.2 -r1.20.4.3
*** CHANGES 23 May 2003 11:02:23 -0000 1.20.4.2
--- CHANGES 28 Jun 2003 18:13:26 -0000 1.20.4.3
***************
*** 1,2 ****
--- 1,52 ----
+ **** Version 1.0.2 ****
+ 2003-06-25 17:11 vharcq
+
+ * modules/web/docs/journal/: failed-status.vm, ticketstep.vm,
+ all-tickets.vm, index.vm, view-document.vm: - Add a way to query
+ journal on ticket's STATUS - The view of a Ticket shows a bit more
+ information
+
+ 2003-06-25 17:05 vharcq
+
+ * modules/:
+ core/src/com/babeldoc/core/journal/query/JournalQuery.java,
+ core/src/com/babeldoc/core/journal/query/QueryOption.java,
+ core/src/com/babeldoc/core/journal/simple/SimpleJournal.java,
+ web/src/com/babeldoc/web/context/JournalListingContext.java: Add a
+ way to query journal on ticket's STATUS
+
+ 2003-06-25 17:00 vharcq
+
+ *
+ modules/core/src/com/babeldoc/core/pipeline/stage/FtpWriterPipelineStage.java:
+ - Remove an uneeded "static" on a method - print a message with
+ this classname and not another one
+
+ 2003-06-25 16:58 vharcq
+
+ *
+ modules/core/src/com/babeldoc/core/pipeline/stage/SmtpWriterPipelineStage.
+ java:
+ Avoid to create an empty body when ther is no "smtpMessage" defined
+
+ 2003-06-25 16:56 vharcq
+
+ *
+ modules/core/src/com/babeldoc/core/pipeline/DefaultPipelineStageErrorHandler.
+ java:
+ Save the complete StackTrace in addMessage() for better analyse of
+ errors afterwards
+
+ 2003-06-25 16:51 vharcq
+
+ * modules/core/src/com/babeldoc/core/ResourceLoader.java: Add the
+ "J2EE way" of ClassLoading in getClass
+
+ 2003-06-25 16:46 vharcq
+
+ * modules/core/config/service/query.properties: I can not
+ understand how the web console could work without this line
+
+
***** 1.0.1 *****
Bugs fixed:
***************
*** 27,32 ****
[Thu Apr 17 2003] Erik Klein
! 1. Modified com.babeldoc.core.config.ConfigService by adding synchronized blocks to methods to prevent
! multithreading problems ... also replaced System.err.println statements in catch blocks with
LogService.getInstance().logError() methods.
--- 77,82 ----
[Thu Apr 17 2003] Erik Klein
! 1. Modified com.babeldoc.core.config.ConfigService by adding synchronized blocks to methods to prevent
! multithreading problems ... also replaced System.err.println statements in catch blocks with
LogService.getInstance().logError() methods.
|
|
From: <tr...@us...> - 2003-06-28 18:02:34
|
Update of /cvsroot/babeldoc/babeldoc
In directory sc8-pr-cvs1:/tmp/cvs-serv32260
Modified Files:
Tag: branch_1_0
build.properties
Log Message:
updated the version number
Index: build.properties
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/build.properties,v
retrieving revision 1.8.2.1
retrieving revision 1.8.2.2
diff -C2 -d -r1.8.2.1 -r1.8.2.2
*** build.properties 20 May 2003 23:41:56 -0000 1.8.2.1
--- build.properties 28 Jun 2003 18:02:29 -0000 1.8.2.2
***************
*** 1,4 ****
src = ./src
! babeldoc_version = 1.0.1
config = ./config
modules = ./modules
--- 1,4 ----
src = ./src
! babeldoc_version = 1.0.2
config = ./config
modules = ./modules
|
|
From: <eri...@op...> - 2003-06-28 01:07:00
|
Jon,
I worked with someone at my last client (Leong Dong, who is a subscriber to this list) on implementing a XML parser that permits DTD/Schemas to be read directly from memory, rather than always having to go to disk. I can't recall the exact version, but I think it was the latest version of Xerces that supported this. This might be a slightly more efficient way of loading your DTDs that are already cached. Just a thought. Perhaps Leong can confim?
Erik
----- Original Message -----
From: "Leech, Jonathan" <jl...@vi...>
Date: Friday, June 27, 2003 2:54 pm
Subject: RE: [Babeldoc-devel] retrieving a document from the journal
> For the XML parsing, I prototyped two EntityResolver caches - one
> memory and
> one disk. The memory cache fronts the disk cache wich fronts the
> defaultentity resolving, which is to go to the URL and get the
> document. I have
> already gotten the OK from management here to contribute the
> HttpClientPipelineStage to open source, I most likely could get
> the OK to
> refine the EntityResolverCache and contribute that as well, if
> people are
> interested.
>
> -Jonathan
>
> -----Original Message-----
> From: Bruce McDonald [br...@mc...]
> Sent: Friday, June 27, 2003 12:05 PM
> To: Leech, Jonathan; bab...@li...
> Subject: Re: [Babeldoc-devel] retrieving a document from the journal
>
>
> Jon,
>
> Good - go ahead with the HttpClient one - its way more functional
> than the
> JDK
> UrlConnection code.
>
>
> Processing XML can be very expensive especially with lots of DTDs
> on remote
> machines. I would be very interested to see what can be done
> about making
> this work better. Of course the easy way out is to not verify the
> XML...
> regards,
> Bruce.
>
> On Friday 27 June 2003 10:49 am, Leech, Jonathan wrote:
> > Bruce,
> >
> > I have already prototyped one using the jdk HttpURLConnection,
> but looking
> > at apache HttpClient it seems to be the way to go. If anyone
> else is
> > interested in particular features for this, let me know and I'll
> put them
> > in.
> >
> > Also, I am curious as to what steps other people are taking for
> speedingup
> > XML parsing. Some of the documents I am parsing reference 20
> .dtds on a
> > remote server, which makes parsing take 15 seconds instead of
> .2. I have
> > prototyped some code that is basically an EntityResolver cache,
> but I'm
> > guessing that other people have built similar, more robust ways of
> > accomplising this. Does babeldoc have a way of integrating with
> something> like that?
> >
> > Sincerely,
> > Jonathan Leech
> > Senior Software Engineer
> > Virtela Communications, Inc.
> >
> > -----Original Message-----
> > From: Bruce McDonald [br...@mc...]
> > Sent: Thursday, June 26, 2003 10:05 PM
> > To: Leech, Jonathan; bab...@li...
> > Subject: Re: [Babeldoc-devel] retrieving a document from the journal
> >
> >
> > Jon,
> >
> > Sorry - I was going to do a HttpPostPipelineStage but I never
> got around
> to
> > it
> > - Please go ahead and start this. Writing a pipeline stage is
> not a
> > difficult thing - please do not hesitate to ask for advice, etc.
> >
> > regards,
> > Bruce.
> >
> > On Thursday 26 June 2003 01:02 pm, Leech, Jonathan wrote:
> > > Bruce,
> > >
> > > Thanks for the information on the local configuration.
> > >
> > > I have found the demons causing my No suitable driver error.
> > > java.sql.DriverManager attempts to load the drivers in the
> jdbc.drivers> > system property explicitly using the system class
> loader, whereas the
> > > classes12.jar for oracle was not in my system classpath. What was
> > > confusing was that I could load the class, using
> Class.forName(), or
> call
> > > DriverManager.registerDriver() using a new instance of the oracle
> driver,
> > > which made things work, because the babeldoc classloader is
> loading it.
> >
> > So
> >
> > > the answer is to explicity add it to the classpath.
> > >
> > > Also, the line that's missing from query.properties that makes the
> oracle
> > > journal able to store documents is:
> > > journalSelectBlobForUpdate-oracle=select jrn_data from journal
> where> > jrn_log_id=? and jrn_log_step=? for update
> > >
> > > Dejan mentioned in the Open Discussion forum to me that you
> might have
> > > written a pipeline stage that uses the HttpClient library...
> Is that
> > > true?
> > >
> > > Sincerely,
> > > Jonathan Leech
> > > Senior Software Engineer
> > > Virtela Communications, Inc.
> > >
> > >
> > > -----Original Message-----
> > > From: Bruce McDonald [br...@mc...]
> > > Sent: Wednesday, June 25, 2003 7:27 PM
> > > To: Leech, Jonathan; bab...@li...
> > > Subject: Re: [Babeldoc-devel] retrieving a document from the
> journal> >
> > >
> > > Hmm,
> > >
> > > Yes, that should do it. Are you sure its in the classpath?
> > >
> > > But, what I mean about local configuration path is this:
> > >
> > > You override the babeldoc configurations (as given in the babeldoc
> module
> > > jar
> > > files) by setting the BABELDOC_USER environment variable to a
> >
> > configuration
> >
> > > directory of your own. This is always takes precedence over
> whatever is
> > > built into babeldoc. So, a practical example, in windows:
> > >
> > > 1. Your babeldoc is installed in c:\babeldoc, and therefore the
> > > BABELDOC_HOME=c:\babeldoc
> > > 2. Your configuration data is stored in c:\work, and
> therefore the
> > > BABELDOC_USER=c:\work
> > > 3. Create a subdirectory c:\work\env
> > > 4. Create a file in there called config.properties. Set the
> property> > (or whatever properties) needed for your code to run.
> > >
> > > Try this, let me know.
> > >
> > > regards,
> > > Bruce.
> > >
> > > On Wednesday 25 June 2003 07:20 pm, Leech, Jonathan wrote:
> > > > Bruce,
> > > >
> > > > I'm not sure what you mean by local configuration
> directory... I
> >
> > changed
> >
> > > > the babeldoc/modules/sql/config/env/config.properties to
> have the
> > > > jdbc.drivers=oracle.jdbc.driver.OracleDriver, rebuilt from
> scratch,and
> > > > still
> > > > get the No suitable driver error.
> > > >
> > > > Sincerely,
> > > > Jonathan Leech
> > > > Senior Software Engineer
> > > > Virtela Communications, Inc.
> > > >
> > > > -----Original Message-----
> > > > From: Bruce McDonald [br...@mc...]
> > > > Sent: Wednesday, June 25, 2003 4:43 PM
> > > > To: Leech, Jonathan; bab...@li...
> > > > Subject: Re: [Babeldoc-devel] retrieving a document from the
> journal> > >
> > > >
> > > > Jon,
> > > >
> > > > In the config/env/config.properties (this file contains
> properties> > > which are
> > > >
> > > > added to the system properties) - so in your local configuration
> > >
> > > directory,
> > >
> > > > create an identical env/config.properties and add the line:
> > > >
> > > > jdbc.drivers=oracle.jdbc.driver.OracleDriver
> > > >
> > > > regards,
> > > > Bruce.
> > > >
> > > > On Wednesday 25 June 2003 06:09 pm, Leech, Jonathan wrote:
> > > > > Stefan,
> > > > >
> > > > > I tried the system property approach
> > > > > (-Djdbc.drivers=oracle.jdbc.driver.OracleDriver), on the
> commandline
> > > > > to babeldoc, but that didn't work. Where did you add your JVM
> system
> > > > > property?
> > > > >
> > > > > -Jonathan
> > > > >
> > > > > -----Original Message-----
> > > > > From: Stefan Krieger [ste...@co...]
> > > > > Sent: Wednesday, June 25, 2003 4:55 PM
> > > > > To: bab...@li...
> > > > > Subject: Re: [Babeldoc-devel] retrieving a document from
> the journal
> > > > >
> > > > >
> > > > > Jonathan,
> > > > >
> > > > > we had the same problems with the query.properties und driver.
> > >
> > > Obviously,
> > >
> > > > > the property is missing.
> > > > > A workmate added a statement, but I don't know which. I
> will post
> our
> > > > > query.properties for Oracle tomorrow.
> > > > >
> > > > > We added the driver as system property to the JVM. Anyway, in
> > > > > production
> > > >
> > > > we
> > > >
> > > > > will retrieve a preconfigured datastore from JNDI.
> > > > >
> > > > > Regards,
> > > > > Stefan
> > > > >
> > > > > ----- Original Message -----
> > > > > From: "Leech, Jonathan" <jl...@vi...>
> > > > > To: <bab...@li...>
> > > > > Sent: Wednesday, June 25, 2003 10:35 PM
> > > > > Subject: RE: [Babeldoc-devel] retrieving a document from
> the journal
> > > > >
> > > > > > Thanks Dejan,
> > > > > > That makes sense and I found the spot in the userguide
> that says
> > > > > > that.
> > > >
> > > > I
> > > >
> > > > > > tested it out with the SimpleJournal and I can retrieve
> documents> > > > > just
> > > > >
> > > > > fine.
> > > > >
> > > > > > However, now I'm trying out the Oracle journal and I am
> having> > > > > problems.
> > > > >
> > > > > It
> > > > >
> > > > > > looks to me like the code in CVS isn't quite in sync
> with the
> > > > > > query.properties in CVS, because the
> > > > > > journalSelectBlobForUpdate-oracle property doesn't exist in
> > > > > > query.properties, but OracleJournal.java needs
> > > > >
> > > > > it.
> > > > >
> > > > > > This causes a SQLException. Can somebody tell me what
> the value
> > >
> > > should
> > >
> > > > > > be for this?
> > > > > >
> > > > > > I had another problem with OracleJournal that I got
> past, which
> was
> >
> > a
> >
> > > > > > No Suitable driver exception. I suspect whoever uses the
> > >
> > > OracleJournal
> > >
> > > > > > has
> > > > >
> > > > > the
> > > > >
> > > > > > code that fixes the problem and it just isn't checked
> in, or is
> >
> > using
> >
> > > > > > babeldoc in an environment that registers the Oracle
> driver for
> >
> > them.
> >
> > > > > > I would be happy to check the code in, what do I need to
> do to get
> > > > > > CVS
> > > > >
> > > > > commit
> > > > >
> > > > > > access? Here's the code I would add to OracleJournal.java:
> > > > > >
> > > > > > static {
> > > > > > try {
> > > > > > DriverManager.registerDriver(new
> > > > > > oracle.jdbc.driver.OracleDriver()); }
> > > > > > catch (SQLException sqle) {
> > > > > > throw new RuntimeException(sqle);
> > > > > > }
> > > > > > }
> > > > > >
> > > > > > Sincerely,
> > > > > > Jonathan Leech
> > > > > > Senior Software Engineer
> > > > > > Virtela Communications, Inc.
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: Dejan Krsmanovic [dej...@ya...]
> > > > > > Sent: Wednesday, June 25, 2003 1:47 PM
> > > > > > To: 'bab...@li...'
> > > > > > Subject: Re: [Babeldoc-devel] retrieving a document from the
> > > > > > journal
> > > > > >
> > > > > >
> > > > > > By default document are NOT stored into jjournal
> > > > > > because it is time-consuming operation. If you want to
> > > > > > store document into journal, you should set tracked
> > > > > > property to true (tracked=true) for pipeline stage in
> > > > > > which you want to store document.
> > > > > >
> > > > > > Dejan
> > > > > >
> > > > > > --- "Leech, Jonathan" <jl...@vi...> wrote:
> > > > > > > Hi,
> > > > > > >
> > > > > > > I am getting started with babeldoc and trying to
> > > > > > > understand the journal
> > > > > > > capabilities. From what I've read in the
> > > > > > > documentation, I should be able to
> > > > > > > retrieve a document from the journal, and even
> > > > > > > replay tickets etc. However,
> > > > > > > if I run the svg-transcode example, and then try
> > > > > > > babeldoc journal -D
> > > > > > > 1056495510901.2, I get a JornalException: No
> > > > > > > document stored at (
> >
> >
> com.babeldoc.core.journal.JournalTicket@763f5d[value=1056495510901],2>
> >
> >
> <com.babeldoc.core.journal.JournalTicket@763f5d[value=1056495510901]
> >
> > > > >,
> > > > >
> > > > > > > 2> ). I added some debug code and rebuilt it, and
> > > > > > > the cause is a
> > > > > > > ClassCastException trying to cast a String into a
> > > > > > > PipelineDocument. I have
> > > > > > > looked through the code to some extent, and I am
> > > > > > > quite confused. I am
> > > > > > > getting the same problem in babeldoc-1.0.1 and the
> > > > > > > current version I checked
> > > > > > > out from CVS yesterday. What am I doing wrong?
> > > > > > >
> > > > > > > Sincerely,
> > > > > > > Jonathan Leech
> > > > > > > Senior Software Engineer
> > > > > > > Virtela Communications, Inc.
> > > > > >
> > > > > > __________________________________
> > > > > > Do you Yahoo!?
> > > > > > SBC Yahoo! DSL - Now only $29.95 per month!
> > > > > > http://sbc.yahoo.com
> > > > > >
> > > > > >
> > > > > > -------------------------------------------------------
> > > > > > This SF.Net email is sponsored by: INetU
> > > > > > Attention Web Developers & Consultants: Become An INetU
> Hosting> > > > > Partner. Refer Dedicated Servers. We Manage Them.
> You Get 10%
> >
> > Monthly
> >
> > > > > > Commission! INetU Dedicated Managed Hosting
> > > > > > http://www.inetu.net/partner/index.php
> > > > > > _______________________________________________
> > > > > > Babeldoc-devel mailing list
> > > > > > Bab...@li...
> > > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > > > > >
> > > > > >
> > > > > > -------------------------------------------------------
> > > > > > This SF.Net email is sponsored by: INetU
> > > > > > Attention Web Developers & Consultants: Become An INetU
> Hosting> > > > > Partner. Refer Dedicated Servers. We Manage Them.
> You Get 10%
> >
> > Monthly
> >
> > > > > > Commission! INetU Dedicated Managed Hosting
> > > > > > http://www.inetu.net/partner/index.php
> > > > > > _______________________________________________
> > > > > > Babeldoc-devel mailing list
> > > > > > Bab...@li...
> > > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > > > >
> > > > > -------------------------------------------------------
> > > > > This SF.Net email is sponsored by: INetU
> > > > > Attention Web Developers & Consultants: Become An INetU
> Hosting> > > > Partner. Refer Dedicated Servers. We Manage Them.
> You Get 10%
> Monthly
> > > > > Commission! INetU Dedicated Managed Hosting
> > > > > http://www.inetu.net/partner/index.php
> > > > > _______________________________________________
> > > > > Babeldoc-devel mailing list
> > > > > Bab...@li...
> > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > > > >
> > > > >
> > > > > -------------------------------------------------------
> > > > > This SF.Net email is sponsored by: INetU
> > > > > Attention Web Developers & Consultants: Become An INetU
> Hosting> > > > Partner. Refer Dedicated Servers. We Manage Them.
> You Get 10%
> Monthly
> > > > > Commission! INetU Dedicated Managed Hosting
> > > > > http://www.inetu.net/partner/index.php
> > > > > _______________________________________________
> > > > > Babeldoc-devel mailing list
> > > > > Bab...@li...
> > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > > >
> > > > -------------------------------------------------------
> > > > This SF.Net email is sponsored by: INetU
> > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > Partner. Refer Dedicated Servers. We Manage Them. You Get
> 10% Monthly
> > > > Commission! INetU Dedicated Managed Hosting
> > > > http://www.inetu.net/partner/index.php
> > > > _______________________________________________
> > > > Babeldoc-devel mailing list
> > > > Bab...@li...
> > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This SF.Net email is sponsored by: INetU
> > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > Partner. Refer Dedicated Servers. We Manage Them. You Get
> 10% Monthly
> > > > Commission! INetU Dedicated Managed Hosting
> > > > http://www.inetu.net/partner/index.php
> > > > _______________________________________________
> > > > Babeldoc-devel mailing list
> > > > Bab...@li...
> > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by: INetU
> > > Attention Web Developers & Consultants: Become An INetU
> Hosting Partner.
> > > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> Commission!> > INetU Dedicated Managed Hosting
> http://www.inetu.net/partner/index.php> >
> _______________________________________________> > Babeldoc-devel
> mailing list
> > > Bab...@li...
> > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-
> url.com/go/psa00100006ave/direct;at.asp_061203_01/01_______________________________________________
> Babeldoc-devel mailing list
> Bab...@li...
> https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-
> url.com/go/psa00100006ave/direct;at.asp_061203_01/01_______________________________________________
> Babeldoc-devel mailing list
> Bab...@li...
> https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
>
|
|
From: Bruce M. <br...@mc...> - 2003-06-27 22:20:15
|
Sounds like a bug to me...
On Friday 27 June 2003 05:38 pm, Leech, Jonathan wrote:
> OK that looks like exactly what I need. However, I don't know the names
> for the subparameters ahead of time (in my HttpClientPipelineStage), so I
> am using getOptionList() to get a NameValuePair[]. This seems to be OK
> except that if
> my pipeline doesn't specify _any_ values for yourstate.options, I get a
> NullPointerException thrown from PipelineStage.getOptionList(). Is this a
> bug or is there a syntax I should use to specify no values? I tried:
> yourstage.options=
> and got the same NullPointer as just leaving it out altogether.
>
> -Jonathan
>
> -----Original Message-----
> From: Bruce McDonald [mailto:br...@mc...]
> Sent: Friday, June 27, 2003 12:09 PM
> To: Leech, Jonathan; bab...@li...
> Subject: Re: [Babeldoc-devel] retrieving a document from the journal
>
>
> This can be quite easily done as:
>
> yourstage.options.key0=value
> yourstage.options.key1=value
> yourstage.options.key2=value
> yourstage.options.key3=value
> yourstage.options.key4=value
>
> Like the XPathExtract and Router stages. There is API support that will
> basically return an array of Pairs (Name/Value) from the options
> configuration.
>
> PipelineStage.getOptions
>
> regards,
> Bruce.
>
> On Friday 27 June 2003 12:53 pm, Leech, Jonathan wrote:
> > What is the best way for a pipeline option to hold a list of {key,value}
> > pairs?
> >
> > -Jonathan
> >
> > -----Original Message-----
> > From: Bruce McDonald [mailto:br...@mc...]
> > Sent: Thursday, June 26, 2003 10:05 PM
> > To: Leech, Jonathan; bab...@li...
> > Subject: Re: [Babeldoc-devel] retrieving a document from the journal
> >
> >
> > Jon,
> >
> > Sorry - I was going to do a HttpPostPipelineStage but I never got around
>
> to
>
> > it
> > - Please go ahead and start this. Writing a pipeline stage is not a
> > difficult thing - please do not hesitate to ask for advice, etc.
> >
> > regards,
> > Bruce.
> >
> > On Thursday 26 June 2003 01:02 pm, Leech, Jonathan wrote:
> > > Bruce,
> > >
> > > Thanks for the information on the local configuration.
> > >
> > > I have found the demons causing my No suitable driver error.
> > > java.sql.DriverManager attempts to load the drivers in the jdbc.drivers
> > > system property explicitly using the system class loader, whereas the
> > > classes12.jar for oracle was not in my system classpath. What was
> > > confusing was that I could load the class, using Class.forName(), or
>
> call
>
> > > DriverManager.registerDriver() using a new instance of the oracle
>
> driver,
>
> > > which made things work, because the babeldoc classloader is loading it.
> >
> > So
> >
> > > the answer is to explicity add it to the classpath.
> > >
> > > Also, the line that's missing from query.properties that makes the
>
> oracle
>
> > > journal able to store documents is:
> > > journalSelectBlobForUpdate-oracle=select jrn_data from journal where
> > > jrn_log_id=? and jrn_log_step=? for update
> > >
> > > Dejan mentioned in the Open Discussion forum to me that you might have
> > > written a pipeline stage that uses the HttpClient library... Is that
> > > true?
> > >
> > > Sincerely,
> > > Jonathan Leech
> > > Senior Software Engineer
> > > Virtela Communications, Inc.
> > >
> > >
> > > -----Original Message-----
> > > From: Bruce McDonald [mailto:br...@mc...]
> > > Sent: Wednesday, June 25, 2003 7:27 PM
> > > To: Leech, Jonathan; bab...@li...
> > > Subject: Re: [Babeldoc-devel] retrieving a document from the journal
> > >
> > >
> > > Hmm,
> > >
> > > Yes, that should do it. Are you sure its in the classpath?
> > >
> > > But, what I mean about local configuration path is this:
> > >
> > > You override the babeldoc configurations (as given in the babeldoc
>
> module
>
> > > jar
> > > files) by setting the BABELDOC_USER environment variable to a
> >
> > configuration
> >
> > > directory of your own. This is always takes precedence over whatever
> > > is built into babeldoc. So, a practical example, in windows:
> > >
> > > 1. Your babeldoc is installed in c:\babeldoc, and therefore the
> > > BABELDOC_HOME=c:\babeldoc
> > > 2. Your configuration data is stored in c:\work, and therefore the
> > > BABELDOC_USER=c:\work
> > > 3. Create a subdirectory c:\work\env
> > > 4. Create a file in there called config.properties. Set the property
> > > (or whatever properties) needed for your code to run.
> > >
> > > Try this, let me know.
> > >
> > > regards,
> > > Bruce.
> > >
> > > On Wednesday 25 June 2003 07:20 pm, Leech, Jonathan wrote:
> > > > Bruce,
> > > >
> > > > I'm not sure what you mean by local configuration directory... I
> >
> > changed
> >
> > > > the babeldoc/modules/sql/config/env/config.properties to have the
> > > > jdbc.drivers=oracle.jdbc.driver.OracleDriver, rebuilt from scratch,
>
> and
>
> > > > still
> > > > get the No suitable driver error.
> > > >
> > > > Sincerely,
> > > > Jonathan Leech
> > > > Senior Software Engineer
> > > > Virtela Communications, Inc.
> > > >
> > > > -----Original Message-----
> > > > From: Bruce McDonald [mailto:br...@mc...]
> > > > Sent: Wednesday, June 25, 2003 4:43 PM
> > > > To: Leech, Jonathan; bab...@li...
> > > > Subject: Re: [Babeldoc-devel] retrieving a document from the journal
> > > >
> > > >
> > > > Jon,
> > > >
> > > > In the config/env/config.properties (this file contains properties
> > > > which are
> > > >
> > > > added to the system properties) - so in your local configuration
> > >
> > > directory,
> > >
> > > > create an identical env/config.properties and add the line:
> > > >
> > > > jdbc.drivers=oracle.jdbc.driver.OracleDriver
> > > >
> > > > regards,
> > > > Bruce.
> > > >
> > > > On Wednesday 25 June 2003 06:09 pm, Leech, Jonathan wrote:
> > > > > Stefan,
> > > > >
> > > > > I tried the system property approach
> > > > > (-Djdbc.drivers=oracle.jdbc.driver.OracleDriver), on the command
>
> line
>
> > > > > to babeldoc, but that didn't work. Where did you add your JVM
>
> system
>
> > > > > property?
> > > > >
> > > > > -Jonathan
> > > > >
> > > > > -----Original Message-----
> > > > > From: Stefan Krieger [mailto:ste...@co...]
> > > > > Sent: Wednesday, June 25, 2003 4:55 PM
> > > > > To: bab...@li...
> > > > > Subject: Re: [Babeldoc-devel] retrieving a document from the
> > > > > journal
> > > > >
> > > > >
> > > > > Jonathan,
> > > > >
> > > > > we had the same problems with the query.properties und driver.
> > >
> > > Obviously,
> > >
> > > > > the property is missing.
> > > > > A workmate added a statement, but I don't know which. I will post
>
> our
>
> > > > > query.properties for Oracle tomorrow.
> > > > >
> > > > > We added the driver as system property to the JVM. Anyway, in
> > > > > production
> > > >
> > > > we
> > > >
> > > > > will retrieve a preconfigured datastore from JNDI.
> > > > >
> > > > > Regards,
> > > > > Stefan
> > > > >
> > > > > ----- Original Message -----
> > > > > From: "Leech, Jonathan" <jl...@vi...>
> > > > > To: <bab...@li...>
> > > > > Sent: Wednesday, June 25, 2003 10:35 PM
> > > > > Subject: RE: [Babeldoc-devel] retrieving a document from the
> > > > > journal
> > > > >
> > > > > > Thanks Dejan,
> > > > > > That makes sense and I found the spot in the userguide that says
> > > > > > that.
> > > >
> > > > I
> > > >
> > > > > > tested it out with the SimpleJournal and I can retrieve documents
> > > > > > just
> > > > >
> > > > > fine.
> > > > >
> > > > > > However, now I'm trying out the Oracle journal and I am having
> > > > > > problems.
> > > > >
> > > > > It
> > > > >
> > > > > > looks to me like the code in CVS isn't quite in sync with the
> > > > > > query.properties in CVS, because the
> > > > > > journalSelectBlobForUpdate-oracle property doesn't exist in
> > > > > > query.properties, but OracleJournal.java needs
> > > > >
> > > > > it.
> > > > >
> > > > > > This causes a SQLException. Can somebody tell me what the value
> > >
> > > should
> > >
> > > > > > be for this?
> > > > > >
> > > > > > I had another problem with OracleJournal that I got past, which
>
> was
>
> > a
> >
> > > > > > No Suitable driver exception. I suspect whoever uses the
> > >
> > > OracleJournal
> > >
> > > > > > has
> > > > >
> > > > > the
> > > > >
> > > > > > code that fixes the problem and it just isn't checked in, or is
> >
> > using
> >
> > > > > > babeldoc in an environment that registers the Oracle driver for
> >
> > them.
> >
> > > > > > I would be happy to check the code in, what do I need to do to
> > > > > > get CVS
> > > > >
> > > > > commit
> > > > >
> > > > > > access? Here's the code I would add to OracleJournal.java:
> > > > > >
> > > > > > static {
> > > > > > try {
> > > > > > DriverManager.registerDriver(new
> > > > > > oracle.jdbc.driver.OracleDriver()); }
> > > > > > catch (SQLException sqle) {
> > > > > > throw new RuntimeException(sqle);
> > > > > > }
> > > > > > }
> > > > > >
> > > > > > Sincerely,
> > > > > > Jonathan Leech
> > > > > > Senior Software Engineer
> > > > > > Virtela Communications, Inc.
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: Dejan Krsmanovic [mailto:dej...@ya...]
> > > > > > Sent: Wednesday, June 25, 2003 1:47 PM
> > > > > > To: 'bab...@li...'
> > > > > > Subject: Re: [Babeldoc-devel] retrieving a document from the
> > > > > > journal
> > > > > >
> > > > > >
> > > > > > By default document are NOT stored into jjournal
> > > > > > because it is time-consuming operation. If you want to
> > > > > > store document into journal, you should set tracked
> > > > > > property to true (tracked=true) for pipeline stage in
> > > > > > which you want to store document.
> > > > > >
> > > > > > Dejan
> > > > > >
> > > > > > --- "Leech, Jonathan" <jl...@vi...> wrote:
> > > > > > > Hi,
> > > > > > >
> > > > > > > I am getting started with babeldoc and trying to
> > > > > > > understand the journal
> > > > > > > capabilities. From what I've read in the
> > > > > > > documentation, I should be able to
> > > > > > > retrieve a document from the journal, and even
> > > > > > > replay tickets etc. However,
> > > > > > > if I run the svg-transcode example, and then try
> > > > > > > babeldoc journal -D
> > > > > > > 1056495510901.2, I get a JornalException: No
> > > > > > > document stored at (
> >
> > com.babeldoc.core.journal.JournalTicket@763f5d[value=1056495510901],2
>
> <mailto:com.babeldoc.core.journal.JournalTicket@763f5d[value=1056495510901]
>
> > > > >,
> > > > >
> > > > > > > 2> ). I added some debug code and rebuilt it, and
> > > > > > > the cause is a
> > > > > > > ClassCastException trying to cast a String into a
> > > > > > > PipelineDocument. I have
> > > > > > > looked through the code to some extent, and I am
> > > > > > > quite confused. I am
> > > > > > > getting the same problem in babeldoc-1.0.1 and the
> > > > > > > current version I checked
> > > > > > > out from CVS yesterday. What am I doing wrong?
> > > > > > >
> > > > > > > Sincerely,
> > > > > > > Jonathan Leech
> > > > > > > Senior Software Engineer
> > > > > > > Virtela Communications, Inc.
> > > > > >
> > > > > > __________________________________
> > > > > > Do you Yahoo!?
> > > > > > SBC Yahoo! DSL - Now only $29.95 per month!
> > > > > > http://sbc.yahoo.com
> > > > > >
> > > > > >
> > > > > > -------------------------------------------------------
> > > > > > This SF.Net email is sponsored by: INetU
> > > > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10%
> >
> > Monthly
> >
> > > > > > Commission! INetU Dedicated Managed Hosting
> > > > > > http://www.inetu.net/partner/index.php
> > > > > > _______________________________________________
> > > > > > Babeldoc-devel mailing list
> > > > > > Bab...@li...
> > > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > > > > >
> > > > > >
> > > > > > -------------------------------------------------------
> > > > > > This SF.Net email is sponsored by: INetU
> > > > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10%
> >
> > Monthly
> >
> > > > > > Commission! INetU Dedicated Managed Hosting
> > > > > > http://www.inetu.net/partner/index.php
> > > > > > _______________________________________________
> > > > > > Babeldoc-devel mailing list
> > > > > > Bab...@li...
> > > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > > > >
> > > > > -------------------------------------------------------
> > > > > This SF.Net email is sponsored by: INetU
> > > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10%
>
> Monthly
>
> > > > > Commission! INetU Dedicated Managed Hosting
> > > > > http://www.inetu.net/partner/index.php
> > > > > _______________________________________________
> > > > > Babeldoc-devel mailing list
> > > > > Bab...@li...
> > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > > > >
> > > > >
> > > > > -------------------------------------------------------
> > > > > This SF.Net email is sponsored by: INetU
> > > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10%
>
> Monthly
>
> > > > > Commission! INetU Dedicated Managed Hosting
> > > > > http://www.inetu.net/partner/index.php
> > > > > _______________________________________________
> > > > > Babeldoc-devel mailing list
> > > > > Bab...@li...
> > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > > >
> > > > -------------------------------------------------------
> > > > This SF.Net email is sponsored by: INetU
> > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> > > > Commission! INetU Dedicated Managed Hosting
> > > > http://www.inetu.net/partner/index.php
> > > > _______________________________________________
> > > > Babeldoc-devel mailing list
> > > > Bab...@li...
> > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This SF.Net email is sponsored by: INetU
> > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> > > > Commission! INetU Dedicated Managed Hosting
> > > > http://www.inetu.net/partner/index.php
> > > > _______________________________________________
> > > > Babeldoc-devel mailing list
> > > > Bab...@li...
> > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by: INetU
> > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> > > Commission! INetU Dedicated Managed Hosting
> > > http://www.inetu.net/partner/index.php
> > > _______________________________________________
> > > Babeldoc-devel mailing list
> > > Bab...@li...
> > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: INetU
> > Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> > _______________________________________________
> > Babeldoc-devel mailing list
> > Bab...@li...
> > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> _______________________________________________
> Babeldoc-devel mailing list
> Bab...@li...
> https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> _______________________________________________
> Babeldoc-devel mailing list
> Bab...@li...
> https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
|
|
From: Leech, J. <jl...@vi...> - 2003-06-27 21:39:44
|
OK that looks like exactly what I need. However, I don't know the names for
the subparameters ahead of time (in my HttpClientPipelineStage), so I am
using getOptionList() to get a NameValuePair[]. This seems to be OK except
that if
my pipeline doesn't specify _any_ values for yourstate.options, I get a
NullPointerException thrown from PipelineStage.getOptionList(). Is this a
bug or is there a syntax I should use to specify no values? I tried:
yourstage.options=
and got the same NullPointer as just leaving it out altogether.
-Jonathan
-----Original Message-----
From: Bruce McDonald [mailto:br...@mc...]
Sent: Friday, June 27, 2003 12:09 PM
To: Leech, Jonathan; bab...@li...
Subject: Re: [Babeldoc-devel] retrieving a document from the journal
This can be quite easily done as:
yourstage.options.key0=value
yourstage.options.key1=value
yourstage.options.key2=value
yourstage.options.key3=value
yourstage.options.key4=value
Like the XPathExtract and Router stages. There is API support that will
basically return an array of Pairs (Name/Value) from the options
configuration.
PipelineStage.getOptions
regards,
Bruce.
On Friday 27 June 2003 12:53 pm, Leech, Jonathan wrote:
> What is the best way for a pipeline option to hold a list of {key,value}
> pairs?
>
> -Jonathan
>
> -----Original Message-----
> From: Bruce McDonald [mailto:br...@mc...]
> Sent: Thursday, June 26, 2003 10:05 PM
> To: Leech, Jonathan; bab...@li...
> Subject: Re: [Babeldoc-devel] retrieving a document from the journal
>
>
> Jon,
>
> Sorry - I was going to do a HttpPostPipelineStage but I never got around
to
> it
> - Please go ahead and start this. Writing a pipeline stage is not a
> difficult thing - please do not hesitate to ask for advice, etc.
>
> regards,
> Bruce.
>
> On Thursday 26 June 2003 01:02 pm, Leech, Jonathan wrote:
> > Bruce,
> >
> > Thanks for the information on the local configuration.
> >
> > I have found the demons causing my No suitable driver error.
> > java.sql.DriverManager attempts to load the drivers in the jdbc.drivers
> > system property explicitly using the system class loader, whereas the
> > classes12.jar for oracle was not in my system classpath. What was
> > confusing was that I could load the class, using Class.forName(), or
call
> > DriverManager.registerDriver() using a new instance of the oracle
driver,
> > which made things work, because the babeldoc classloader is loading it.
>
> So
>
> > the answer is to explicity add it to the classpath.
> >
> > Also, the line that's missing from query.properties that makes the
oracle
> > journal able to store documents is:
> > journalSelectBlobForUpdate-oracle=select jrn_data from journal where
> > jrn_log_id=? and jrn_log_step=? for update
> >
> > Dejan mentioned in the Open Discussion forum to me that you might have
> > written a pipeline stage that uses the HttpClient library... Is that
> > true?
> >
> > Sincerely,
> > Jonathan Leech
> > Senior Software Engineer
> > Virtela Communications, Inc.
> >
> >
> > -----Original Message-----
> > From: Bruce McDonald [mailto:br...@mc...]
> > Sent: Wednesday, June 25, 2003 7:27 PM
> > To: Leech, Jonathan; bab...@li...
> > Subject: Re: [Babeldoc-devel] retrieving a document from the journal
> >
> >
> > Hmm,
> >
> > Yes, that should do it. Are you sure its in the classpath?
> >
> > But, what I mean about local configuration path is this:
> >
> > You override the babeldoc configurations (as given in the babeldoc
module
> > jar
> > files) by setting the BABELDOC_USER environment variable to a
>
> configuration
>
> > directory of your own. This is always takes precedence over whatever is
> > built into babeldoc. So, a practical example, in windows:
> >
> > 1. Your babeldoc is installed in c:\babeldoc, and therefore the
> > BABELDOC_HOME=c:\babeldoc
> > 2. Your configuration data is stored in c:\work, and therefore the
> > BABELDOC_USER=c:\work
> > 3. Create a subdirectory c:\work\env
> > 4. Create a file in there called config.properties. Set the property
> > (or whatever properties) needed for your code to run.
> >
> > Try this, let me know.
> >
> > regards,
> > Bruce.
> >
> > On Wednesday 25 June 2003 07:20 pm, Leech, Jonathan wrote:
> > > Bruce,
> > >
> > > I'm not sure what you mean by local configuration directory... I
>
> changed
>
> > > the babeldoc/modules/sql/config/env/config.properties to have the
> > > jdbc.drivers=oracle.jdbc.driver.OracleDriver, rebuilt from scratch,
and
> > > still
> > > get the No suitable driver error.
> > >
> > > Sincerely,
> > > Jonathan Leech
> > > Senior Software Engineer
> > > Virtela Communications, Inc.
> > >
> > > -----Original Message-----
> > > From: Bruce McDonald [mailto:br...@mc...]
> > > Sent: Wednesday, June 25, 2003 4:43 PM
> > > To: Leech, Jonathan; bab...@li...
> > > Subject: Re: [Babeldoc-devel] retrieving a document from the journal
> > >
> > >
> > > Jon,
> > >
> > > In the config/env/config.properties (this file contains properties
> > > which are
> > >
> > > added to the system properties) - so in your local configuration
> >
> > directory,
> >
> > > create an identical env/config.properties and add the line:
> > >
> > > jdbc.drivers=oracle.jdbc.driver.OracleDriver
> > >
> > > regards,
> > > Bruce.
> > >
> > > On Wednesday 25 June 2003 06:09 pm, Leech, Jonathan wrote:
> > > > Stefan,
> > > >
> > > > I tried the system property approach
> > > > (-Djdbc.drivers=oracle.jdbc.driver.OracleDriver), on the command
line
> > > > to babeldoc, but that didn't work. Where did you add your JVM
system
> > > > property?
> > > >
> > > > -Jonathan
> > > >
> > > > -----Original Message-----
> > > > From: Stefan Krieger [mailto:ste...@co...]
> > > > Sent: Wednesday, June 25, 2003 4:55 PM
> > > > To: bab...@li...
> > > > Subject: Re: [Babeldoc-devel] retrieving a document from the journal
> > > >
> > > >
> > > > Jonathan,
> > > >
> > > > we had the same problems with the query.properties und driver.
> >
> > Obviously,
> >
> > > > the property is missing.
> > > > A workmate added a statement, but I don't know which. I will post
our
> > > > query.properties for Oracle tomorrow.
> > > >
> > > > We added the driver as system property to the JVM. Anyway, in
> > > > production
> > >
> > > we
> > >
> > > > will retrieve a preconfigured datastore from JNDI.
> > > >
> > > > Regards,
> > > > Stefan
> > > >
> > > > ----- Original Message -----
> > > > From: "Leech, Jonathan" <jl...@vi...>
> > > > To: <bab...@li...>
> > > > Sent: Wednesday, June 25, 2003 10:35 PM
> > > > Subject: RE: [Babeldoc-devel] retrieving a document from the journal
> > > >
> > > > > Thanks Dejan,
> > > > > That makes sense and I found the spot in the userguide that says
> > > > > that.
> > >
> > > I
> > >
> > > > > tested it out with the SimpleJournal and I can retrieve documents
> > > > > just
> > > >
> > > > fine.
> > > >
> > > > > However, now I'm trying out the Oracle journal and I am having
> > > > > problems.
> > > >
> > > > It
> > > >
> > > > > looks to me like the code in CVS isn't quite in sync with the
> > > > > query.properties in CVS, because the
> > > > > journalSelectBlobForUpdate-oracle property doesn't exist in
> > > > > query.properties, but OracleJournal.java needs
> > > >
> > > > it.
> > > >
> > > > > This causes a SQLException. Can somebody tell me what the value
> >
> > should
> >
> > > > > be for this?
> > > > >
> > > > > I had another problem with OracleJournal that I got past, which
was
>
> a
>
> > > > > No Suitable driver exception. I suspect whoever uses the
> >
> > OracleJournal
> >
> > > > > has
> > > >
> > > > the
> > > >
> > > > > code that fixes the problem and it just isn't checked in, or is
>
> using
>
> > > > > babeldoc in an environment that registers the Oracle driver for
>
> them.
>
> > > > > I would be happy to check the code in, what do I need to do to get
> > > > > CVS
> > > >
> > > > commit
> > > >
> > > > > access? Here's the code I would add to OracleJournal.java:
> > > > >
> > > > > static {
> > > > > try {
> > > > > DriverManager.registerDriver(new
> > > > > oracle.jdbc.driver.OracleDriver()); }
> > > > > catch (SQLException sqle) {
> > > > > throw new RuntimeException(sqle);
> > > > > }
> > > > > }
> > > > >
> > > > > Sincerely,
> > > > > Jonathan Leech
> > > > > Senior Software Engineer
> > > > > Virtela Communications, Inc.
> > > > >
> > > > > -----Original Message-----
> > > > > From: Dejan Krsmanovic [mailto:dej...@ya...]
> > > > > Sent: Wednesday, June 25, 2003 1:47 PM
> > > > > To: 'bab...@li...'
> > > > > Subject: Re: [Babeldoc-devel] retrieving a document from the
> > > > > journal
> > > > >
> > > > >
> > > > > By default document are NOT stored into jjournal
> > > > > because it is time-consuming operation. If you want to
> > > > > store document into journal, you should set tracked
> > > > > property to true (tracked=true) for pipeline stage in
> > > > > which you want to store document.
> > > > >
> > > > > Dejan
> > > > >
> > > > > --- "Leech, Jonathan" <jl...@vi...> wrote:
> > > > > > Hi,
> > > > > >
> > > > > > I am getting started with babeldoc and trying to
> > > > > > understand the journal
> > > > > > capabilities. From what I've read in the
> > > > > > documentation, I should be able to
> > > > > > retrieve a document from the journal, and even
> > > > > > replay tickets etc. However,
> > > > > > if I run the svg-transcode example, and then try
> > > > > > babeldoc journal -D
> > > > > > 1056495510901.2, I get a JornalException: No
> > > > > > document stored at (
>
> com.babeldoc.core.journal.JournalTicket@763f5d[value=1056495510901],2
>
>
>
<mailto:com.babeldoc.core.journal.JournalTicket@763f5d[value=1056495510901]
>
> > > >,
> > > >
> > > > > > 2> ). I added some debug code and rebuilt it, and
> > > > > > the cause is a
> > > > > > ClassCastException trying to cast a String into a
> > > > > > PipelineDocument. I have
> > > > > > looked through the code to some extent, and I am
> > > > > > quite confused. I am
> > > > > > getting the same problem in babeldoc-1.0.1 and the
> > > > > > current version I checked
> > > > > > out from CVS yesterday. What am I doing wrong?
> > > > > >
> > > > > > Sincerely,
> > > > > > Jonathan Leech
> > > > > > Senior Software Engineer
> > > > > > Virtela Communications, Inc.
> > > > >
> > > > > __________________________________
> > > > > Do you Yahoo!?
> > > > > SBC Yahoo! DSL - Now only $29.95 per month!
> > > > > http://sbc.yahoo.com
> > > > >
> > > > >
> > > > > -------------------------------------------------------
> > > > > This SF.Net email is sponsored by: INetU
> > > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10%
>
> Monthly
>
> > > > > Commission! INetU Dedicated Managed Hosting
> > > > > http://www.inetu.net/partner/index.php
> > > > > _______________________________________________
> > > > > Babeldoc-devel mailing list
> > > > > Bab...@li...
> > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > > > >
> > > > >
> > > > > -------------------------------------------------------
> > > > > This SF.Net email is sponsored by: INetU
> > > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10%
>
> Monthly
>
> > > > > Commission! INetU Dedicated Managed Hosting
> > > > > http://www.inetu.net/partner/index.php
> > > > > _______________________________________________
> > > > > Babeldoc-devel mailing list
> > > > > Bab...@li...
> > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > > >
> > > > -------------------------------------------------------
> > > > This SF.Net email is sponsored by: INetU
> > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10%
Monthly
> > > > Commission! INetU Dedicated Managed Hosting
> > > > http://www.inetu.net/partner/index.php
> > > > _______________________________________________
> > > > Babeldoc-devel mailing list
> > > > Bab...@li...
> > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This SF.Net email is sponsored by: INetU
> > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10%
Monthly
> > > > Commission! INetU Dedicated Managed Hosting
> > > > http://www.inetu.net/partner/index.php
> > > > _______________________________________________
> > > > Babeldoc-devel mailing list
> > > > Bab...@li...
> > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by: INetU
> > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> > > Commission! INetU Dedicated Managed Hosting
> > > http://www.inetu.net/partner/index.php
> > > _______________________________________________
> > > Babeldoc-devel mailing list
> > > Bab...@li...
> > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by: INetU
> > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> > > Commission! INetU Dedicated Managed Hosting
> > > http://www.inetu.net/partner/index.php
> > > _______________________________________________
> > > Babeldoc-devel mailing list
> > > Bab...@li...
> > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: INetU
> > Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> > _______________________________________________
> > Babeldoc-devel mailing list
> > Bab...@li...
> > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> _______________________________________________
> Babeldoc-devel mailing list
> Bab...@li...
> https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Babeldoc-devel mailing list
Bab...@li...
https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
|