You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Karl Heinz Marbaise (JIRA)" <ji...@apache.org> on 2018/11/09 21:32:00 UTC

[jira] [Closed] (MEAR-271) Support lookup-name in resource-ref section

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

Karl Heinz Marbaise closed MEAR-271.
------------------------------------
    Resolution: Fixed

Done in [f002918d6cad2e607572a5049fe2b8e078a04979|https://gitbox.apache.org/repos/asf?p=maven-ear-plugin.git;a=commitdiff;h=f002918d6cad2e607572a5049fe2b8e078a04979]

> Support lookup-name in resource-ref section
> -------------------------------------------
>
>                 Key: MEAR-271
>                 URL: https://issues.apache.org/jira/browse/MEAR-271
>             Project: Maven Ear Plugin
>          Issue Type: Wish
>    Affects Versions: 3.0.1
>            Reporter: Lonzak
>            Assignee: Karl Heinz Marbaise
>            Priority: Major
>             Fix For: 3.0.2
>
>
> It would be nice if the 'lookup-name' would be supported in the resource-ref section to support JNDI lookup. Currently, this tag is ignored in the generated application.xml. (+description would also be nice)
> Example:
> The pom.xml snippet
> {code:xml}
> <configuration>
>  <resourceRefs>
>        <resource-ref>
>     <description>ExampleDS</description>
>     <res-ref-name>jdbc/ExampleDS</res-ref-name>
>     <res-type>javax.sql.DataSource</res-type>
>     <res-auth>Container</res-auth>
>     <lookup-name>java:jboss/datasources/ExampleDS</lookup-name>
>   </resource-ref>
>    </resourceRefs>
> </configuration>
> {code}
> should generate application.xml with
> {code:xml}
>   <resource-ref>
>     <description>ExampleDS</description>
>     <res-ref-name>jdbc/ExampleDS</res-ref-name>
>     <res-type>javax.sql.DataSource</res-type>
>     <res-auth>Container</res-auth>
>     <lookup-name>java:jboss/datasources/ExampleDS</lookup-name>
>   </resource-ref>          
> {code}
> This is from a solution from the jboss guys.
> [JBoss solution|https://i.imgur.com/3XDxQNJ.png]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)