Enrico Migliore wrote:

Hi guys,

the sendPageAndWait( ) method of the AbstractContinuable class
works only if the "do" method were previously called from within the sitemap.


How can I extend the AbstractContinuable class, and have sendPageAndWait( )
method work, without calling the "do" method from the Sitemap?


Can you tell me how should this work? No request, no response!

Regards


Hi Stephan,


What I would like to do is:

1. define a class that extends AbstractContinuable

        public class MyClass extends AbstractContinuable {

                   void method ( ) {

                            :
                            /* some logic */
                             sendPageAndWait("page1",bizData);

                           /* some logic */
                            sendPageAndWait("page2",bizData);
                            :
                            :
                   }
        }

2.  define another class that istantiate the previous one

               public class Test {

public void Test (void) {
MyClass myClass = new MyClass( );
myClass.method ( );
} }


3.  have the flow stopped when I call sendPageAndWait ( )
    I noticed that the flow doesn't stop.


------------------------------------------------------------- My guess is that the Test class uses the default class loader when creating the MyClass object, while Cocoon uses the ContinuationClassLoader. If so, the only classes that can call sendPageAndWait ( ) are those that are called from within the sitemap. This is a limitation.

thanks for any help
Enrico


-- /* ************************************************************* * * Enrico Migliore - senior software engineer * * FATTI srl - OSGi, GPRS, and GSM systems * * Via Donatello 48 - 20020 - Solaro - Milano - Italy * Phone: +39 (0)2 9679 9655 * Fax: +39 (0)2 9679 9373 * http://www.fatti.com * * e-mail: [EMAIL PROTECTED] * ************************************************************* */


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to