Hi,

I am trying to work with smooks and have major errors !!! everything is crashing!

 

My code which I added is:

public void runStatelessRules(String[] rulesFiles,String dslFileName,Collection<Object>al,

            String ruleFlowFileName) throws Exception {

      KnowledgeBase ruleBase = loadRules(rulesFiles);

        StatelessKnowledgeSession workingMemory = ruleBase.newStatelessKnowledgeSession();

       

        Smooks smooks = new Smooks("smooks-config.xml");

        DroolsSmooksConfiguration conf = new DroolsSmooksConfiguration("some name",null);

        DroolsSmooksStatelessSession smooksSession = new 

        DroolsSmooksStatelessSession(session,smooks, conf);

 

        javax.xml.transform.Source xmlSource = new StreamSource(getClass().getResourceAsStream("NewFile.xml"));

        smooksSession.executeFileter(xmlSource);

        workingMemory.execute(al);  // what to add to my working memory?????????????

      }

 

This is the basic code which I just incorporated from the book.

I installed smooks plugin for eclipse.

But could not find smooks-config.xml file.

I am not usre of what else I need to incorporate.

Now everything else also seems to be showing error i.e all the code which was working perfectly.

 

Please help!!! Major disaster.

 

Thank you

M




Please consider the environment before printing this email.

Visit our website at http://www.nyse.com
*****************************************************************************
Note: The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system. Thank you. NYSE Euronext.