Feature Requests item #835216, was opened at 2003-11-03 19:08
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376688&aid=835216&group_id=22866

Category: JBossCMP
Group: v3.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Anatoli Krassavine (akrassavine)
Assigned to: Nobody/Anonymous (nobody)
Summary: <datasource-mapping> is badly designed 

Initial Comment:
Originally posted by Adrian Price, I simply copy it here 
as a more appropriate place. All credit for this (highly 
relevant) issue should go to Adrian.

The binding of a data source to a particular JDBC 
driver/user/pwd/dbserver (and thus to a particular 
database type) is the responsibility of the bean deployer 
not the bean provider, so logically it ought to be 
possible to specify the mapping in the *-ds.xml 
datasource configuration file?

As it is, jbosscmp-jdbc*.dtd requires the bean provider 
to specify <datasource> and <datasource-mapping> as 
a pair in <defaults> and/or <entity>, the defaults 
being "java:/DefaultDS" and "Hypersonic SQL" 
respectively. This is a bad design because it makes it 
impossible for a bean provider to distribute an ejb.jar or 
j2ee.ear file that supports multiple databases, without 
requiring the deployer to rip open the archive and mess 
with the deployment descriptors (a tricky and error 
prone procedure sensible providers wish to avoid at all 
costs).


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376688&aid=835216&group_id=22866


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to