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

Vincent Zurczak made changes - Wed, 11 Apr 2012 - 19:07:28 +0200
Status In Progress [ 10003 ] Open [ 10002 ]
Vincent Zurczak made changes - Wed, 11 Apr 2012 - 19:06:53 +0200
Status Open [ 10002 ] In Progress [ 10003 ]
Vincent Zurczak made changes - Wed, 11 Apr 2012 - 19:05:01 +0200
Field Original Value New Value
Status New [ 10000 ] Open [ 10002 ]
Priority Major [ 3 ]

People

Dates

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