Uploaded image for project: 'Maven Ear Plugin'
  1. Maven Ear Plugin
  2. MEAR-271

Support lookup-name in resource-ref section

    XMLWordPrintableJSON

    Details

    • Type: Wish
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.1
    • Fix Version/s: 3.0.2
    • Labels:
      None

      Description

      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

      <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>
      

      should generate application.xml with

        <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>          
      

      This is from a solution from the jboss guys.

      JBoss solution

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                khmarbaise Karl Heinz Marbaise
                Reporter:
                tom_1st Lonzak
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m