You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Enrico Migliore <en...@fatti.com> on 2004/07/01 13:38:58 UTC

javaflow: AbstractContinuable question

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?



 thanks
 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: enrico.migliore@fatti.com
 *
 *************************************************************
 */


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


Re: javaflow: AbstractContinuable question

Posted by Enrico Migliore <en...@fatti.com>.
> 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: enrico.migliore@fatti.com
 *
 *************************************************************
 */


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


Re: javaflow: AbstractContinuable question

Posted by Stephan Coboos <cr...@gmx.net>.
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

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