[jboss-jira] [JBoss JIRA] Created: (JBAS-8816) data-source element in application.xml descriptor is not processed correctly

henk de boer (JIRA) jira-events at lists.jboss.org
Tue Jan 18 12:34:50 EST 2011


data-source element in application.xml descriptor is not processed correctly
----------------------------------------------------------------------------

                 Key: JBAS-8816
                 URL: https://issues.jboss.org/browse/JBAS-8816
             Project: JBoss Application Server
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Deployers, Java EE APIs
    Affects Versions: 6.0.0.Final
         Environment: Mac OS X 10.6
            Reporter: henk de boer
            Assignee: Ales Justin


Defining a datasource in the application.xml descriptor of an EAR using the data-source element, does not cause this datasource to become available in the defined namespace.

For instance the following is supposed to make a datasource available in JNDI at java:app/MyDataSource

<data-source>
    <description>Sample DataSource definition</description>
    <name>java:app/MyDataSource</name>
    <class-name>org.postgresql.ds.PGSimpleDataSource</class-name>
    <server-name>myserver.com</server-name>
    <port-number>5432</port-number>
    <database-name>mydb</database-name>

    <user>myuser</user>
    <password>mypass</password>  
</data-source>

This however does not happen.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list