You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/11/05 17:17:00 UTC

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

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

ASF GitHub Bot commented on MEAR-271:
-------------------------------------

fabio-boldrini opened a new pull request #1: [MEAR-271] added support for <resourceRef> <lookup-name> property
URL: https://github.com/apache/maven-ear-plugin/pull/1
 
 
   NO JIRA Issue
   
   [MEAR-271] add support for **lookup-name** tag inside **resourceRef**
   
   
   
   
    - [x] I hereby declare this contribution to be licenced under the [Apache License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0)
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> 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
>            Priority: Major
>
> 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)