You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Jonathan Gallimore (Jira)" <ji...@apache.org> on 2023/01/03 10:10:00 UTC

[jira] [Commented] (TOMEE-3902) Introduce placeholder replacement to enable MDB activation properties to be more customizable

    [ https://issues.apache.org/jira/browse/TOMEE-3902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17653914#comment-17653914 ] 

Jonathan Gallimore commented on TOMEE-3902:
-------------------------------------------

This looks like it was release in 8.0.12. https://github.com/apache/tomee/commit/01bf4103c321dc265ab8c346b1478079343a7c8f

> Introduce placeholder replacement to enable MDB activation properties to be more customizable
> ---------------------------------------------------------------------------------------------
>
>                 Key: TOMEE-3902
>                 URL: https://issues.apache.org/jira/browse/TOMEE-3902
>             Project: TomEE
>          Issue Type: New Feature
>            Reporter: Jonathan Gallimore
>            Assignee: Jonathan Gallimore
>            Priority: Major
>
> There's an issue when setting up a MDB to subscribe to a JMS topic, in that it'll use the bean name as the client ID. If you have 2 TomEE servers subscribing to the same Topic with the same client ID, one will be rejected with a duplicate client exception.
> This can be overridden by setting 
> {{openejb.activemq.deploymentId-as-clientId = false}}
>  
> which will use a unique ID for the client as opposed to the bean name, but this loses the contextual information as to what MDB is connecting to the topic, which may be useful.
> It would be useful to be able to configure, via Activation properties, the Client ID, and allow the following values to be substituted in:
> - \{appId}
> - \{ejbJarId}
> - \{ejbName}
> - \{hostName}
> - \{uniqueId}
>  
> So, setting mdb.activation.clientId to "\{ejbName}-\{uniqueId}" would use the bean name and a unique identifier concatenated together as the client ID.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)