concurrent connection

Does anyone have idea about below error while trying to enable concurrent connection ?.. am i doing wrong in format what i put in values.


java.lang.IllegalArgumentException: Invalid concurrency value [${solace.jms.message.consumer.concurrency.value}]: only single maximum integer (e.g. "5") and minimum-maximum combo (e.g. "3-5") supported.


  • marc
    marc Member, Administrator, Moderator, Employee Posts: 848 admin

    Hi @maniv,
    It doesn't look like the value from the config is being properly read in which is why the invalid concurrency value in the exception reads the same as the configuration property name.

    Try reading in your property like this and then using the concurrency variable in your setter.
    private String concurrency;

    Spring offers several ways to read in your properties, this article has a few more options:

    Hope that helps!

  • rdesoju
    rdesoju Member Posts: 66

    Have you tried enclosing 1-2 in double quotes?

  • maniv
    maniv Member Posts: 10

    @marc reading property values are correct and verified it.

  • maniv
    maniv Member Posts: 10

    @rdesoju .. tried it :).. but no luck