EPSG DefaultFactory does not work in an EJB environment
-------------------------------------------------------
Key: GEOT-909
URL: http://jira.codehaus.org/browse/GEOT-909
Project: GeoTools
Issue Type: Bug
Components: core referencing
Affects Versions: 2.2-RC2
Environment: Windows XP SP2, JDK 1.5.0_06, JBoss 4.0.4-GA
Reporter: Felix LJ Mayer
Assigned To: Martin Desruisseaux
The current implementation of
org.geotools.referencing.factory.epsg.DefaultFactory in conjunction with
org.geotools.referencing.factory.epsg.DataSource has several issues in JBoss:
- The DATASOURCE_NAME is hardcoded to a name that is not appropriate for JBoss
(it should be 'java:EPSG'). I suggest to make the name configurable, perhaps
with a Hint.
- Extending javax.sql.DataSource prevents the use of a standard J2EE data
source. It is also inappropriate to do this just to create the actual factory.
- In a multiuser-environment, it is not appropriate to permanently reserve a
database connection from a pool like FactoryUsingSQL does it. A connection
should just be obtained from the pool when needed and then returned by closing
it.
- The current architecture has problems with concurreny: either one uses just a
single factory, then it becomes a bottleneck. Or one uses a pool of factories,
but then the connection hogging (see above) becomes a serious issue.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel