Thursday 11 July 2013

FTP Adapter : BatchNotificationHandler

PROBLEM STATEMENT:
-------------------
BatchHandler Notifications do not appear to be working as expected and/or
documented in
http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_file.htm

The batch notification callback configured via binding.jca property

<binding.jca config="DebatchingIn_ftp.jca">
<property name="batchNotificationHandler">
oracle.sample.SampleBatchCalloutHandler</property>
</binding.jca>

does not appear to be invoked.


SOLUTION:
---------
please make the following changes to the binding.jca in the SOA composite :
1. Property Name = batchNotificationHandler
2. Value = java://{custom_class}

(i.e)
<property name="batchNotificationHandler">
java://oracle.sample.SampleBatchCalloutHandler
</property>

With this changes , the batching notification call out custom class methods are being invoked.


On invoking the composite , the log  has the
following entries :
13/06/2012 11:13:37 AM
oracle.sample.SampleBatchCalloutHandler onInitiateBatch
INFO:  Entering onInitiateBatch
13/06/2012 11:13:37
AM oracle.sample.SampleBatchCalloutHandler onCompletedBatch
INFO:  Entering onCompletedBatch
13/06/2012 11:13:37
AM oracle.sample.SampleBatchCalloutHandler onCompletedBatch
INFO:  Exiting onCompletedBatch

3 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Any hints why the logs aren't updated accordingly?

    ReplyDelete