Re: Tomcat/Ant/JNDI question
I tried this and it's not giving me the not found in Context message, but it's now trying to pass me a null connection. I think the problem is that it doesn't know where to get the connection from. With the ResourceLink in the server.xml Context, one specifies the name one wants to use locally as well as the name of the global resource. The resource-ref doesn't allow this. Any further thoughts? Thanks, Garrett Dangerfield. Tim Shaw wrote: This works for me ... web.xml : resource-ref description Resource reference to a factory for java.sql.Connection instances that may be used for talking to a particular database that is configured in the server.xml file. /description res-ref-name jdbc/SessionDB /res-ref-name res-type javax.sql.DataSource /res-type res-auth Container /res-auth /resource-ref context.xml : snip Resource name=jdbc/SessionDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/SessionDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter nameusername/name valuetripleplay/value /parameter parameter namepassword/name value/value /parameter parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter parameter nameurl/name valuejdbc:mysql://vodmgr:3306/tripleplay/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value20/value /parameter parameter namemaxWait/name value5000/value /parameter /ResourceParams /snip Garrett Dangerfield wrote: I tried this and it's not working. It's saying: Name jdbc not found in this context In my web.xml, I put in: env-entry env-entry-namejdbc/DataWarehouse/env-entry-name env-entry-valuejdbc/DataWarehouse/env-entry-value env-entry-typejavax.sql.DataSource/env-entry-type /env-entry In my server.xml, I have: Resource auth=Container name=jdbc/DataWarehouse scope=Shareable type=javax.sql.DataSource/ Am I missing something? Thanks Garrett Dangerfield. Shapira, Yoav wrote: Howdy, - put the equivalent of ResourceEnvRef into the web.xml inside the web app See the env-entry element in the Servlet Specification, v2.3, SRC.13.1. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat/Ant/JNDI question
I have defined a GlobalNamingResource for a database connection and that works great if I put a ResourceEnvRef in the Context in the server.xml. However, I have a problem. If I deploy my app using ant and it's deply task, it removes the ResourceEnvRef portion of my Context. I see two possible ways to resolve this: - have ant's deploy task inlcue the ResourceEnvRef - put the equivalent of ResourceEnvRef into the web.xml inside the web app Any idea on how to do either/both of these? Thanks, Garrett Dangerfield. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat/Ant/JNDI question
I tried this and it's not working. It's saying: Name jdbc not found in this context In my web.xml, I put in: env-entry env-entry-namejdbc/DataWarehouse/env-entry-name env-entry-valuejdbc/DataWarehouse/env-entry-value env-entry-typejavax.sql.DataSource/env-entry-type /env-entry In my server.xml, I have: Resource auth=Container name=jdbc/DataWarehouse scope=Shareable type=javax.sql.DataSource/ Am I missing something? Thanks Garrett Dangerfield. Shapira, Yoav wrote: Howdy, - put the equivalent of ResourceEnvRef into the web.xml inside the web app See the env-entry element in the Servlet Specification, v2.3, SRC.13.1. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Performance Measuring
I've looked through the documentation I could find, and I looked through the source for AccessLogValve and I didn't see the option for what I'm looking for. I'm looking for getting a measurement of page duration (the time, preferrably in milliseconds, between when the server originally receives the first byte of a request and the time it sends the last byte of the response). What I'm trying to do is monitor the server load/response time back to the users, particularly by time of day. I've seen lots of test clients that do this, but I want to monitor my actual production system to see how it's doing. Thank you, Garrett. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]