1 Reply Latest reply on May 4, 2011 11:59 AM by gilbert gonzalez

    How to get the return value from an asynchronous method ?

    Ezequiel Puig Newbie

      Hi,


      does anyone know how get the return value from an asynchronous method ? What I am trying to do is to launch an asynchronous method that in turn launches a business service that takes a long time to execute. My problem is that the bussiness service returns a list of values that i need to get from the bean that launched the asynchronous method.


      The documentations says: The asynchronous method is processed in a completely new event context and does not have access to the session or conversation context state of the caller. However, the business process context is propagated.


      So, i guess that what I need to do is to write the business service result in the business process context and after access to that context from the bean that launched the asynchronous method. But, I have no idea how to access the business process context that is propagated :(.



      Any ideas ??


      Best regards,


      Ezequiel.