WebSphere Components - question about wsbcc processor 1

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Components > January 2004 > question about wsbcc processor 1





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author question about wsbcc processor 1
qls

2004-01-19, 10:34 am

Hi,
I made a processor loop-forever test,but failed ,I got "stackoverflow" msg
after about 1600 circles, an expert told me that a very deep recursion did
it when the processor looped. But I don't know how to deal with the problem
if I have to make it loop.



=====My Test AP==========
....
aContext=(Context)Context.readObject("branchClientCtx");
DSEProcessor aFlow = (DSEProcessor)
DSEProcessor.readObject("TestFlow");
aFlow.setContext(aContext);
aFlow.execute();
....



=====My Processor action==========
package com.qls.temp.test.automaton;

public class Act1 extends com.ibm.dse.automaton.DSEAction {

public static long count=0;

...
public void execute() throws Exception {

count++;
System.out.println(count);
signalEvent("ok");
}


=====My dseproc.xml==========
<?xml version="1.0"?>
<dseproc.xml>
<processor id="TestFlow">

<state id="initial" type="initial" typeIdInfo="s1">
<entryActions>
<action implClass="com.qls.temp.test.automaton.Act1" id="action1"/>
</entryActions>
<transitions>
<transition id="action1.ok" targetState="initial"/>
</transitions>
</state>

<state id="finalOk" type="final" typeIdInfo="ok">
<entryActions/>
<transitions/>
</state>

</processor>
</dseproc.xml>




Regards,
qls


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com