[jboss-jira] [JBoss JIRA] Updated: (JBAS-3725) Specify DataSource settings at the application level (in the .EAR)
raehalme (JIRA)
jira-events at jboss.com
Fri Sep 29 03:33:41 EDT 2006
[ http://jira.jboss.com/jira/browse/JBAS-3725?page=all ]
raehalme updated JBAS-3725:
---------------------------
Attachment: JDBCEntityMetaData.java.patch
JDBCXmlFileLoader.java.patch
JDBCXmlFileLoader.java: After reading standardjbosscmp-jdbc.xml the load method now reads META-INF/jbosscmp-jdbc.xml from the EAR, if available.
JDBCEntityMetaData.java: datasourceMappingName is now copied from the defaultValues. This change is necessary to support multiple levels of default values (the application's and the system's).
> Specify DataSource settings at the application level (in the .EAR)
> ------------------------------------------------------------------
>
> Key: JBAS-3725
> URL: http://jira.jboss.com/jira/browse/JBAS-3725
> Project: JBoss Application Server
> Issue Type: Patch
> Security Level: Public(Everyone can see)
> Components: CMP service
> Affects Versions: JBossAS-4.0.4.GA
> Reporter: raehalme
> Assigned To: Alexey Loubyansky
> Attachments: JDBCEntityMetaData.java.patch, JDBCXmlFileLoader.java.patch
>
>
> At the moment you can specify application's DataSource settings either in the global JBoss configuration (standardjbosscmp-jdbc.xml) or in the EJB JAR (META-INF/jbosscmp-jdbc.xml). When developing EJB components that are re-used in many applications, it is frustrating to have to create a separate EJB JAR version for each application in order to be able to specify which DataSource to use for the EJB component. It would be much easier if the DataSource could be specified at the application level (in the EAR) because often all the application's EJB components use the same DataSource. In addition because the EJB JAR would no longer contain deployment specific settings, you could include the same EJB JAR file in all the application's EAR files.
> I propose that this improvement is implemented by reading default settings also from the EAR's META-INF/jbosscmp-jdbc.xml. You could then specify a default configuration for each application and still override it inside the EJB JAR if necessary. I have implemented this functionality using the source code from version 4.0.4.GA. I will attach the necessary patches to this issue for your evaluation.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list