Skip to content

[MEAR-271] Support lookup-name in resource-ref section #437

@jira-importer

Description

@jira-importer

Lonzak opened MEAR-271 and commented

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


Affects: 3.0.1

Remote Links:

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions