Announcement

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

    Automatic assignment of Spring datasource parameter

    Hi, quick question.

    When i use Spring MVC, i can define a bunch of different parameters and Spring will populate them, like beans, httprequest etc., and more specifically the Authentication object:

    Code:
    public StatusTO event(Authentication auth, @Valid @RequestBody...
    However, tried this with the IDACall process, and it doesn't seem to work, i get the error

    "No remaining optional arguments match this type and all required arguments passed by the client have already been assigned."

    Is this something supported in later versions, and if not have you considered supporting it?
    6.0-p20171202

    #2
    See the DMI overview - a bunch of standard objects, such as the HttpRequest, are available as method parameters if you just declare a parameter of that type.

    Then we will auto-populate a single bean with the inbound Record data if you declare a POJO as a parameter.

    Any other frequently needed context objects could be accessed in a number of easy ways, such as:
    1. make them HttpRequest attributes
    2. stick them on a Custom DataSource
    3. statically / via Spring

    Comment

    Working...
    X