Petals SE JSR181

No support for AsyncContexts

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.2
  • Fix Version/s: None
  • Component/s: None
  • Security Level: Public
  • Description:
    Hide

    The JBIContext class provides a method sendAsync( AsyncContext ac ).
    But there is no support in the component to handle these asynchronous contexts. You can put a context on the exchange but not be notified when the exchange is complete.

    • A workaround may be to mix the JSR-181 and the POJO approach (a public method in the implementation).
    • Another solution may be to have a method in the JBIContext to send asynchronously several messages.
      Example:
      List<Exchange> exchanges = new ArrayList<Exchange> ();
      for( int i=0; i<=5; i++ ) {
          // Build a set of exchanges
          exchanges.add( newExchange );
      }
      
      // Send asycnhronously all the messages
      // Let the component deal with the CDK code and with the asynchronous part
      JBIContext.getMessageSender().sendExchangesAsynchronously( exchanges );
    Show
    The JBIContext class provides a method sendAsync( AsyncContext ac ). But there is no support in the component to handle these asynchronous contexts. You can put a context on the exchange but not be notified when the exchange is complete.
    • A workaround may be to mix the JSR-181 and the POJO approach (a public method in the implementation).
    • Another solution may be to have a method in the JBIContext to send asynchronously several messages. Example:
      List<Exchange> exchanges = new ArrayList<Exchange> ();
      for( int i=0; i<=5; i++ ) {
          // Build a set of exchanges
          exchanges.add( newExchange );
      }
      
      // Send asycnhronously all the messages
      // Let the component deal with the CDK code and with the asynchronous part
      JBIContext.getMessageSender().sendExchangesAsynchronously( exchanges );
  • Environment:
    -

Activity

Transition Status Change Time Execution Times Last Executer Last Execution Date
New New Open Open
19d 1h 53m
1
Vincent Zurczak
Wed, 11 Apr 2012 - 19:05:01 +0200
Open Open In Progress In Progress
1m 52s
1
Vincent Zurczak
Wed, 11 Apr 2012 - 19:06:53 +0200
In Progress In Progress Open Open
35s
1
Vincent Zurczak
Wed, 11 Apr 2012 - 19:07:28 +0200

People

Dates

  • Created:
    Fri, 23 Mar 2012 - 16:11:03 +0100
    Updated:
    Sat, 5 May 2012 - 00:26:47 +0200