[ http://thecla.homeftp.net:8380/jira/browse/SPRING-40?page=history ] Work on SPRING-40 started by Chad Brandon
> Make generated code unit-testable > --------------------------------- > > Key: SPRING-40 > URL: http://thecla.homeftp.net:8380/jira/browse/SPRING-40 > Project: Spring Cartridge > Type: Improvement > Versions: 3.0RC1 > Reporter: Matthias Bohlen > Assignee: Chad Brandon > > > The generated code (using Spring and Hibernate) could run in a J2EE container > as well as on a fat client inside a JUnit testcase. The only change required > would be the datasource configuration in applicationContext.xml: > <bean id="dataSource" > class="org.springframework.jndi.JndiObjectFactoryBean"> > <property name="jndiName"><value>java:/DefaultDS</value></property> > </bean> > On a fat client, this would have to be replaced by a basic data source: > <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" > destroy-method="close"> > <property > name="driverClassName"><value>com.mysql.jdbc.Driver</value></property> > <property > name="url"><value>jdbc:mysql://localhost:3306/mydb</value></property> > <property name="username"><value>root</value></property> > </bean> > Could you please factor out the data source declaration and put it into a > separate datasourceJ2EE.xml file? Then, at startup, tell Swing to load two > configuration files instead of one. > Thanks! > Matthias -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://thecla.homeftp.net:8380/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Andromda-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-devel
