You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Tomas Vavricka (Jira)" <ji...@apache.org> on 2026/06/23 07:27:00 UTC

[jira] [Updated] (QPID-8744) [Broker-J] Jackson ObjectMapper instances shouldn't be created on each method call

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

Tomas Vavricka updated QPID-8744:
---------------------------------
    Description: 
Jackson ObjectMapper is thread-safe for both reads and writes once constructed, but relatively expensive to create. The codebase has several locations where new ObjectMapper() is called per method invocation. These should be replaced to private static final fields.



Main affected classes are:
 # AttributeValueConverter
 # RestServlet
 # QueryServlet
 # ManagementInputConverter
 # ConfiguredObjectBinding
 # ReplicatedEnvironmentFacade
 # AbstractJDBCConfigurationStore
 # AbstractJDBCPreferenceStore
 # HttpManagement
 # UpgradeFrom7to8

  was:Jackson ObjectMapper is thread-safe for both reads and writes once constructed, but relatively expensive to create. The codebase has several locations where new ObjectMapper() is called per method invocation. These should be replaced to private static final fields.


> [Broker-J] Jackson ObjectMapper instances shouldn't be created on each method call
> ----------------------------------------------------------------------------------
>
>                 Key: QPID-8744
>                 URL: https://issues.apache.org/jira/browse/QPID-8744
>             Project: Qpid
>          Issue Type: Improvement
>          Components: Broker-J
>    Affects Versions: qpid-java-broker-10.0.1
>            Reporter: Daniil Kirilyuk
>            Priority: Minor
>             Fix For: qpid-java-broker-10.0.2
>
>
> Jackson ObjectMapper is thread-safe for both reads and writes once constructed, but relatively expensive to create. The codebase has several locations where new ObjectMapper() is called per method invocation. These should be replaced to private static final fields.
> Main affected classes are:
>  # AttributeValueConverter
>  # RestServlet
>  # QueryServlet
>  # ManagementInputConverter
>  # ConfiguredObjectBinding
>  # ReplicatedEnvironmentFacade
>  # AbstractJDBCConfigurationStore
>  # AbstractJDBCPreferenceStore
>  # HttpManagement
>  # UpgradeFrom7to8



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org