[jboss-jira] [JBoss JIRA] Commented: (AS7-789) JPA subsystem: empty default DS

Heiko Rupp (JIRA) jira-events at lists.jboss.org
Mon May 16 09:56:01 EDT 2011


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

Heiko Rupp commented on AS7-789:
--------------------------------

I don't know which default is right. But "" means "nothing set" which contradicts the "required=true" from the description. 

I'd rather see required=> false and default-datasource => undefined / null

> JPA subsystem: empty default DS
> -------------------------------
>
>                 Key: AS7-789
>                 URL: https://issues.jboss.org/browse/AS7-789
>             Project: Application Server 7
>          Issue Type: Bug
>            Reporter: Heiko Rupp
>            Assignee: Scott Marlow
>
> Resource description for the JPA subsystem says
> default-datasource is required
> [domain at localhost:9999 subsystem=jpa] :read-resource-description(include-runtime=true,recursive=true)
> {
>     "outcome" => "success",
>     "result" => {
>         "description" => "The configuration of the JPA subsystem.",
>         "head-comment-allowed" => true,
>         "tail-comment-allowed" => true,
>         "namespace" => "urn:jboss:domain:jpa:1.0",
>         "attributes" => {"default-datasource" => {
>             "description" => "The name of the default global datasource.",
>             "type" => STRING,
>             "required" => true,
>             "min-length" => 0,
>             "access-type" => "read-write",
>             "storage" => "configuration"
>         }},
>         "operations" => undefined,
>         "children" => undefined
>     },
>     "compensating-operation" => undefined
> }
> But reading the resource shows an empty value
> This looks wrong, as an empty value is for sure no valid data source name.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list