cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "rachid harradi" <rachid.harr...@gmx.net>
Subject from Generator to two Pipeline
Date Sat, 11 Nov 2006 09:11:20 GMT
Hallo together ,

i have a Generator with methode:

 public void generate()
    throws IOException, SAXException, ProcessingException {
    
    	
        SAXParser parser = null;
        NodeDoc nodeDoc =null;
        try {
        		this.dbmanager = (DBManager) this.manager.lookup(DBManager.ROLE);
        		nodeDoc = dbmanager.runMail_InfoAppealAccepted();
        		if(!nodeDoc.equals(null))
        		{
        			Convert2NodeDoc convert2NodeDoc = new Convert2NodeDoc();
//Xmlobject1
        			Mail_InfoAppealAcceptedType mail_InfoAppealAcceptedType =(Mail_InfoAppealAcceptedType)nodeDoc;
//Xmlobject2
        			documentType documenttype =convert2NodeDoc.createSendmail(mail_InfoAppealAcceptedType);
        			mail_InfoAppealAcceptedType.addChild(documenttype);
        			StringReader xmlReaderdoc = new StringReader(saveToString(nodeDoc));
        			inputSource = new InputSource(xmlReaderdoc);

        			StringReader xmlReader = new StringReader(saveToString(nodeDoc));
        			inputSource = new InputSource(xmlReader);

        			parser = (SAXParser)this.manager.lookup(SAXParser.ROLE);
        			parser.parse(this.inputSource, super.xmlConsumer);
        			

        		}
        } catch (IOException e) {
            getLogger().error("StreamGenerator.generate()", e);
            throw new ResourceNotFoundException("StreamGenerator could not find resource",
e);
        } catch (SAXException e) {
            getLogger().error("StreamGenerator.generate()", e);
            throw(e);
        } catch (Exception e) {
            getLogger().error("Could not get parser", e);
            throw new ProcessingException("Exception in StreamGenerator.generate()", e);
        } finally {
            this.manager.release( parser);
        }
    }


i will to send the XmlObject1 and XmlObject to Parellel Pipeline 

but i don'T know how?
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message