Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Don't fall back to default operationType

    Hi,

    I saw this in my log
    Code:
    WARN  DataSourceDMI - DataSource OrderDS:
    received a request to execute an operation of type 'update' named 'generateReport',
    but this operation is not defined to the dataSource. 
    Falling back to default behavior for operationType 'update'
    which was entirely true and made me realize I forgot to define this operation.
    Is there a way to block on this or catch this in the application so I know something it's wrong? I don't want it to fall back to the default update operation in the DataSource as nothing really happens then, while everything seems ok.


    thanks,

    #2
    If you want to treat this as an error, you could use the (undocumented and unsupported, but stable) API DataSource.getOperationBinding(String operationType, String operationId) to detect the absence of an appropriate operationBinding.

    Comment

    Working...
    X