On 10/24/07, BruceLee <[EMAIL PROTECTED]> wrote: > > Team, > > We want to add 3rd party Jars to our webapp. It uses torque as ORM layer and > another database name in MySQL. There is no problem at local test, but we > have issues when putting it to remote hosting site. > Our env Appfuse 1.9.4 with WW2 > > I noticed myapp.xml is in > D:\Programs\Apache Software Foundation\Tomcat 5.5\conf\Catalina\localhost\ > which is a copy of dist\context.xml. > > Questions: > 1. Is it generated from metadata\conf\tomcat-context-5.5.xml?
Yes. > 2. What's its purpose to put in Tomcat server conf? Tomcat extracts this from your META-INF/context.xml file in your WAR. > 3. Our 3rd party Jars does have a .property file in myapp\WEB-INF\classes to > describe the connection like this > torque.dsfactory.oscommerce.connection.driver = com.mysql.jdbc.Driver > torque.dsfactory.oscommerce.connection.url = > jdbc:mysql://localhost:3306/my_3pdb > But it's not in Tomcat server conf. Is any side-effects? (Though local test > is OK) No, there shouldn't be. If you configure your datasource in context.xml, you can use a JNDI Resource for your application - which allows an administrator to change things w/o modifying (or opening) your WAR. Matt > > Thanks a lot in advance, > -Bruce > > -- > View this message in context: > http://www.nabble.com/How-to-connect-to-multiple-databases-tf4688405s2369.html#a13399664 > Sent from the AppFuse - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
