[ 
https://issues.apache.org/jira/browse/AMQ-6905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jean-Baptiste Onofré resolved AMQ-6905.
---------------------------------------
    Resolution: Fixed

> Resource Adapter clientId ActivationConfigProperty does conform to API 
> document 
> --------------------------------------------------------------------------------
>
>                 Key: AMQ-6905
>                 URL: https://issues.apache.org/jira/browse/AMQ-6905
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: RAR
>    Affects Versions: 5.15.3
>            Reporter: Darren Merritt
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>             Fix For: 5.16.0, 5.15.11
>
>         Attachments: AMQ-6905.patch
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> According to the following page 
> [http://activemq.apache.org/activation-spec-properties.html]
> The clientId default is set by the resource adapter. This is not the case in 
> the code.
> When defining the MDB to be Durable via subscriptionDurability, if the 
> clientId is not configured an validation error is thrown stating "clientId 
> must be set since durable subscription was requested".
> Looking at the code, if the documentation is correct, the 
> ActiveMQActivationSpec validation method should no longer validate the 
> clientId. The ActiveMQConnection makeConnection should change
> String clientId = activationSpec.getClientId();
> to
> String clientId = defaultValue(activationSpec.getClientId(), 
> getInfo().getClientid());
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to