commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marius Seiceanu <marius.seice...@sec.co.ro>
Subject Re: DBCP:
Date Fri, 24 Oct 2003 15:29:38 GMT
The solution is still not ok for the application i made, because the 
process is like this:
    I have to deliver a app.war file which will be installed on the 
destination server using Tomcat Manager, so my war file should contain 
everything.

Thank you,
    Marius Seiceanu.

Chris Forbis wrote:

> If you we app is named thisOne...  add a file names thisOne.xml to the
>webapps location, in this file you can setup the context for your web app...
>Part of the is the doc root, where you will then place your webapp (because
>now you need it in a new location)
>
>If you need more information on this let me know, I am not around an
>example, but I do this in many places.
>
>-----Original Message-----
>From: Marius Seiceanu [mailto:marius.seiceanu@sec.co.ro] 
>Sent: Friday, October 24, 2003 11:19 AM
>To: Jakarta Commons Users List
>Subject: Re: DBCP:
>
>The problem is I don't have access to server.xml to create my resource 
>there.
>I can modify only files under my context, nothing up :(
>
>Marius Seiceanu.
>
>David Graham wrote:
>
>  
>
>>You shouldn't configure a DataSource in Struts.  Instead set it up in
>>Tomcat and look up the DataSource with JNDI.  Here's a howto for Tomcat:
>>http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-ho
>>    
>>
>wto.html
>  
>
>>David
>>
>>
>>--- Marius Seiceanu <marius.seiceanu@sec.co.ro> wrote:
>> 
>>
>>    
>>
>>>Hello,
>>>
>>>   On  http://jakarta.apache.org/struts/faqs/database.html  I found out
>>>
>>>how to use BasicDataSource.
>>>   The problem is that in some classes of my application (under Tomcat 
>>>context) which is using Struts i don't have access to request, so i 
>>>can't use:
>>>         dataSource = getDataSource(request);
>>>
>>>   Is there any possibility to configure struts to put automaticaly the
>>>
>>>BasicDataSource instances on a JNDI context, so I can get them later, 
>>>      
>>>
>>>from classes under the same Tomcat context?
>>    
>>
>>>Thank you,
>>>   Marius Seiceanu.
>>>
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>>
>>>   
>>>
>>>      
>>>
>>__________________________________
>>Do you Yahoo!?
>>The New Yahoo! Shopping - with improved product search
>>http://shopping.yahoo.com
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>
>> 
>>
>>    
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message