Using the File Binding Component in a Project

Message Exchange Redelivery Capability

Before we proceed to Redelivery capability of the FIle Binding Component, it is important to know about the Quality of Service (QOS) attributes. Redelivery is a part of the QOS properties.

The QOS attributes are configured from the Config QoS Properties Editor, accessed from the Composite Application Service Assembly (CASA) Editor.

The following table describes the QOS attributes.

Table 5 QOS Attributes and Their Description

Attribute 

Description 

Example 

Consumer Settings

   

Service Name 

Specifies the consumer service name. Click the ellipses button to open the QName Editor. Select a pre-existing Namespace URL or enter a new Namespace URL and prefix. 

http://j2ee.netbeans.org/wsdl/PollInOut/PollIn 

Endpoint Name 

Specifies the consumer endpoint name. Click the ellipses button to open an edit window.  

PollIn_InboundPort 

Provider Settings

   

Service Name 

Specifies the provider service name. Click the ellipses button to open the QName Editor. Select a pre-existing Namespace URL or enter a new Namespace URL and prefix. 

http://enterprise.netbeans.org/bpel/PollInOut/PollWrite 

Endpoint Name 

Specifies the Provider endpoint name. Click the ellipses button to open an edit window. 

FileInboundPortTypeRole_myRole 

Redelivery Extension Settings

   

Max Attempts 

Specifies the number of times redelivery will be attempted before using the on failure option. 

20 

Wait Time 

Specifies time (in milliseconds) to wait between redelivery attempts.  

300 

On Failure 

Specifies the type of action to be taken when message exchange (ME) redelivery attempts have been exhausted. The on failure options are: 

  • Delete

  • Error

  • Redirect

  • Suspend

The File Binding Component supports only Error and Suspend. 

Error 

Throttling Extension Settings

   

Max Concurrency Limit 

Specifies the maximum number of concurrent messages that can be processed on a specific connection. This number is used to set up the maximum number of concurrent messages that the internal endpoint sends to the provider endpoint. 

10 

Configuring Redelivery

Redelivery is a Quality of Service mechanism that handles message delivery when first-time delivery fails. Redelivery allows you to define the number of attempts that the system makes to deliver a message, the time between attempts, and the final result for an undeliverable message or non-responsive endpoint. Redelivery is configured for a specific connection from the Composite Application Service Assembly (CASA) Editor, by clicking the QoS icon for that connection. This opens the Config QoS Properties for that connection. From the Redelivery Extension section of the editor, configure the Redelivery properties.

If ERROR status is returned for an Inbound message sent by File Binding Component, the BC will attempt to redeliver the message, based on Redelivery QoS settings. For example, a message could have ERROR status if BPEL Service Engine encounters a problem while processing the message.

The Redelivery configuration parameters are:

ProcedureTo Configure Redelivery

  1. From the NetBeans IDE Projects window, right-click the Service Assembly node under your composite application, and select Edit from the popup menu.

    The CASA Editor opens containing your composite application.

    The CASA Editor
  2. In the CASA Editor, click the QoS icon located on the link between your JBI Module and the WSDL port you want to configure.

    The QOS Properties Editor appears.

  3. In the QOS Properties Editor, click the property field for Max Attempts under Redelivery Extension, and enter an integer for the maximum number of redeliveries to be attempted.

  4. Similarly set the Wait Time and On Failure attributes and click Close.

    The QOS Properties Editor