There are many ways to make the polling of a DB adapter to make it singleton i.e. making the adapter poll a record only once even of there are many nodes on the cluster. This post typically explains how to use mark reserved value with both delete polling strategy and logical delete
This assumes that you have experience in deploying and creating connection factories in the db adapter . If you need more help on this you can refer to the documentation or search other blogs there are plenty.
These are the steps to be followed for both of the polling strategies
This assumes that you have experience in deploying and creating connection factories in the db adapter . If you need more help on this you can refer to the documentation or search other blogs there are plenty.
These are the steps to be followed for both of the polling strategies
- Create a table sample in the hr schema
- Create a SOA project with composite in JDeveloper
- Drag and drop a db adapter on to the composite . Fill in all the details with any values you prefer .Create a connection to the hr schema and select it .
- Select the operation type as poll for new or changed records in the table.
- Import the table sample and select data as the primary key for the table.
- The polling strategy is to be selected in this step
- Delete Polling strategy
Select the option delete the rows when read - Logical Delete
Select the option update the field in the sample table(Logical delete) - Leave the polling options and advance options to default values and click on finish
- In the case of Delete polling strategy there is no option for including the values of MarkReadColumn,MarkReservedValue,MarkUnreadValue.Copy paste in the generated .jca file to make the necessary changes as shown below
- For Logical delete the ui configuration can be used to fill the property values
- MarkReadColumn
The column to be used for updating the below given three properties - MarkReservedValue
This is the value which is used to pick the records on a specified node. The value can be specified with special variables . Let us look at the above property value and study it.
In the above sample weblogic.Name is the name of the server node and IP is the ip address fo the node. -2 specifies the last two charactersR${weblogic.Name-2}-${IP-2} - MarkUnreadValue
This property specifies the value of the record which are to be picked . For simplicty you can consider this as where condition - MarkReadValue
This property is useful only in the case of logical delete. This property updates the value of MarkReadcolumn with the specified property after sucessful processing for the record
Hi,
ReplyDeleteWe had recently changed the JCA file with the below property
<property name="MarkReservedValue" value="R${weblogic.Name-2}-${IP-2}>
But post this we are facing issues where the files are not being polled at all.
Can, you help me in troubleshooting this please.
Thanks in advance :)
Is this adapter capable of adding Mark Unread Value multiples?
ReplyDeleteThat is, read records with the flag condition = (Error, Pending)