Quote:
Interesting ... Is there a reason why andromdapp configures Spring not to use 
the container provided connection ? Is it recomended to let Spring handle all 
the connection by itself ? 
(end of quote)




Not really a reason, I had the connection properties (instead of the dataSource 
property) be specified by default (so it would work without creating a 
datasource in tomcat), all you need to do is comment out the following 4 
properties of your mda/conf/andromda.xml:



&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="username">$&#123;dataSource.user&#125;</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="password">$&#123;dataSource.password&#125;</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="driver">$&#123;dataSource.driver.class&#125;</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="connectionUrl">$&#123;dataSource.url&#125;</property>



and add this one:



&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="dataSource">$&#123;dataSource&#125;</property>



in the spring namespace.  



The JNDI datasource will then be generated instead.
--
Chad Brandon - [EMAIL PROTECTED]

http://www.andromda.org
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1742#1742
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to