[jboss-jira] [JBoss JIRA] (AS7-5991) It’s impossible to set a custom pattern string for the handler’s formatter via CLI or native configuration API

Radoslav Rangelov (JIRA) jira-events at lists.jboss.org
Tue Nov 20 09:39:22 EST 2012


    [ https://issues.jboss.org/browse/AS7-5991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12735743#comment-12735743 ] 

Radoslav Rangelov commented on AS7-5991:
----------------------------------------

This command in CLI:

[domain at localhost:9999 custom-handler=SMIME_Module] :write-attribute(name=formatter,value="custom pattern string")
{
    "outcome" => "success",
    "result" => undefined,
    "server-groups" => {"main-server-group" => {"CENTRAL" => {
        "host" => "master",
        "response" => {"outcome" => "success"}
    }}}
}

Stores the specified "custom pattern string" into domain.xml configuratuon BUT applies the default pattern "%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n" to runtime handler. So only after the restart of JBoss the runtime handler has the correct "custin pattern string" as pattern.
                
> It’s impossible to set a custom pattern string for the handler’s formatter via CLI or native configuration API
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: AS7-5991
>                 URL: https://issues.jboss.org/browse/AS7-5991
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: CLI, Logging
>    Affects Versions: 7.1.2.Final (EAP)
>            Reporter: Radoslav Rangelov
>            Assignee: Alexey Loubyansky
>             Fix For: 7.1.1.Final
>
>
> It’s impossible to set a custom pattern string for the handler’s formatter via CLI or native configuration API. The default value for the pattern is always used - not the specified one. The stored configuration in domain.xml is ok but runtime setting of the pattern doesn’t work. I need to restart JBoss to apply the changes.
> The configuration in domain.xml file works fine during startup:
> <formatter>
>      <pattern-formatter pattern="custom pattern string"/>
> </formatter>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the jboss-jira mailing list