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

Support lookup-name in resource-ref section

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.1
    • 3.0.2
    • 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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            khmarbaise Karl Heinz Marbaise
            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

                Slack

                  Issue deployment