You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Ivan (JIRA)" <ji...@apache.org> on 2008/11/06 07:05:44 UTC

[jira] Updated: (GERONIMO-4395) EmployeeDatasource and jdbc/EmployeeDatasource create the same files under $geronimo_install_dir/repository/console/dbpool directory

     [ https://issues.apache.org/jira/browse/GERONIMO-4395?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivan updated GERONIMO-4395:
---------------------------

    Attachment: Geronimo-4395.patch

For the '/' should not exist in the artifact id, or it will fail to deploy the db pool
The orginal implementation is :
	artifactId = artifactId.substring(artifactId.indexOf('/') + 1);
But with this solution, it could not handle the name with more than two slash, and for "jdbc/TestDBPool" and "TestDBPool" will generate the same artifact id "TestDBPool"
In the patch, a random string is appended to the artifact, although it will make the artifact id less readable, the end user could paste it from the "usuage" portlet. So it may not be a big issue.
Thanks for any comment !	

> EmployeeDatasource and jdbc/EmployeeDatasource create the same files under $geronimo_install_dir/repository/console/dbpool directory
> ------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-4395
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4395
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: databases
>    Affects Versions: 2.1.3
>         Environment: Any platform
>            Reporter: viola.lu
>            Priority: Minor
>         Attachments: Geronimo-4395.patch
>
>
> Steps:
> 1.Login geronimo, go to database pool, create a "EmployeeDatasource" datasource with any db type.
> 2.create another "jdbc/EmployeeDatasource" datasource with any db type. But some read error display that
> EmployeeDatasource has existed in database pool.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.