IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1822.69 MB
Powered by
Channel Info
Network: freenodeChannel: #tomcat |
Search in www.irclog.org
Log from #tomcat at freenode 2006-08-01
[00:49]<jw2fjjm>yassine, Hey.
[00:50]<drssygn>hi oxblood
[00:50]<drssygn>hi everyone :)
[00:50]<jw2fjjm>Prompt response. :)
[00:50]<drssygn>sure :)
[00:50]<jw2fjjm>It's been a very unproductive day to this moment.
[00:51]<drssygn>ohh my day was similar i was hangin on installing a wiki like 6 hours
[00:51]<drssygn>but end up with a workaround
[00:52]<drssygn>which mean its an open issue for me todo when i have time :)
[00:52]<jw2fjjm>I can't find any company to build a half circle shower enclosure.
[00:53]<jw2fjjm>It's just unbelievable -- one company told me it'll take 6 months!!!
[00:53]<jw2fjjm>Out of 20 companies I inqueried, 3 said they'll do it but they have to get back to me.
[00:54]<jw2fjjm>One called me after 2 mintues asking, "half round you said? No, we don't do that kind of work."
[00:54]<jw2fjjm>I had a hinch she wasn't sure what she was getting herself into when she claimed they do all sort of sh|t.
[00:55]<jw2fjjm>Oh well...
[00:55]<swggvg>oxblood: half-round like 180degrees?
[00:56]<jw2fjjm>Yes, like half a cylinder.
[00:56]<jw2fjjm>8 ft in diameter, 4ft height.
[00:57]<jw2fjjm>I know it's going to cost me a fortune but it's a focal point of the master bathroom.
[00:59]<swggvg>ehm .. 8ft [~2.4m?] in diameter, but just 4ft [~1.2m?] in height? excuse me, but you must look pretty funny :-)
[01:00]<jw2fjjm>swente, It sits on a 4ft half-round wall. :)
[01:01]<swggvg>oxblood: oh ic :*)
[01:01]<jw2fjjm>I am hoping I can get a deal around $7000.
[01:01]<jw2fjjm>Well, $6k is more like it.
[01:02]<jw2fjjm>Ohhhhhh, phoen call... brb.
[01:05]<jw2fjjm>yassine, You around to show you something?
[01:05]<drssygn>sure
[01:05]<jw2fjjm>That's a HOWTO I was talking about.
[01:07]<jw2fjjm>I haven't posted the URL anywhere because I am planning to start a software development blog and dump all my tutorials/howtos (stolen from others ;) eventually there...
[01:07]<jw2fjjm>I don't want google to cache them from the wrong URL yet...
[01:07]<drssygn>i see
[01:28]<dnzs>hi folks. does tomcat implement prepared statement caching?
[01:28]<dnzs>for jdbc connections
[01:42]<zzgmznw>mers: dbcp has a boolean parameter: poolPreparedStatements
[01:43]<dnzs>randrew: know where i can get more info? trying to figure out how to get connection pooling and statement caching to work
[01:43]<zzgmznw>mers: dbcp is hiding in common/naming-factory-dbcp.jar, named org.apache.tomcat.dbcp
[01:43]<zzgmznw>mers: try to find a good dbcp example, sorry i don't have one at hand
[01:44]<drssygn>randrew, a datasource is one :)
[01:44]<drssygn>its uses the dbcp and creates the configureed connection number
[01:45]<dnzs>yassine: i'm reading http://tomcat.apache.org/tomcat-5.0-doc/jndi-datasource-examples-howto.html at the moment
[01:46]<drssygn>:)
[01:46]<drssygn>so your in the right plate
[01:46]<drssygn>so your in the right place :) sorry
[01:46]<zzgmznw>yassine: but of course! : P
[01:47]<dnzs>yassine: there isn't a list of the parameters a javax.sql.DataSource typed resource can take
[01:47]<zzgmznw>whoa, it looks like there's an example there. when did they start doing that? : )
[01:47]<zzgmznw>mers: http://jakarta.apache.org/commons/dbcp/configuration.html
[01:48]<drssygn>hihi randrew was faster :)
[01:48]<dnzs>randrew: heh. too bad it's JSTL ... need to go dig up how to access that datasource from a servlet
[01:48]<zzgmznw>conversion to xml is left as an excercise for the weary...
[01:49]<drssygn>mers
[01:49]<drssygn>thats there too
[01:51]<drssygn>mers, see this section : Random Connection Closed Exceptions in here : http://tomcat.apache.org/tomcat-5.0-doc/jndi-datasource-examples-howto.html
[01:52]<dnzs>yassine: " conn = ... get connection from connection pool ..."
[01:52]<dnzs>yassine: good luck getting the Java compiler to accept that one :)
[01:56]<dnzs>but before getting into that, i need to read more docs. i'm still confused by prepared statement pooling ... nothing's actually pooled. it's just a per connection cache
[02:00]<swggvg>mers: prepared statements .. they're created temporary in a connection .. hmhmmm .. i don't think you can pool them. (how about creating equivalent stored-procedures?)
[02:00]<dnzs>swente: that's what i'm thinking
[02:00]<dnzs>swente: all this statement caching/connection pooling stuff i'm digging up is just nice terminology to define a system that doesn't work
[02:01]<dnzs>swente: prepared statements are defined per connection/session. which means that with connection pooling, you have to prepare the statement for each connection in the pool, and reprepare it if those connections break
[02:03]<swggvg>mers: the first problem with pooled connections/prepared statements is that the client-side-part of the jdbc-driver can't tell [as he usually doesn't know about the pooling middle-man] if "it's" connection has the statement or not.
[02:03]<swggvg>mers: on the other hand .. it's on your application if it always drops and reconnects to [a pooled] db.
[02:05]<dnzs>yup
[02:05]<swggvg>or say .. one can't always have everything :-)
[02:13]<dnzs>swente: calling stored procedures for simple queries and updates may be worse than calling the query and update directly though
[02:13]<swggvg>mers: for simple queries .. why do worry about preparedstatements? :)
[02:14]<dnzs>to prevent sql injection
[02:14]<swggvg>mers: you're free to prepare the statement e.g. in each [http-]request
[02:14]<dnzs>true
[02:15]<swggvg>and if some of your objects has some "getXYPreparedStatement".. it's no difference if that's reused or recreated
[02:15]<swggvg>(+method)
[02:15]<dnzs>i wonder how many people go through all these questions before they choose the best way to do things :)
[02:15]<swggvg>the fact that many/most[?] people choose php+mysql should answer your question *g*
[02:15]<dnzs>lol
[02:15]<swggvg>:)
[02:16]<dnzs>do you know how to get access to the Tomcat data source resource from a servlet? i'm a bit new to tomcat
[02:17]<swggvg>mers: via jndi. i've done that once .. you might start here: http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html
[02:20]<dnzs>that's where i am, but it only helps with jstl
[02:20]<dnzs>i'll go look up how to use jndi
[02:20]<swggvg>mers: continue here: http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html :-)
[02:24]<dnzs>:D
[02:24]<dnzs>excellent
[02:27]<dnzs>you have loads of links handy :) any good tutorial to tomcat? the main documentation is all over the place
[02:28]<swggvg>mers: i'm just used to the "main documentation" ;-)
[03:50]<hzzzcyzyw>is it possible to add a filter dynamically using the tomcat api ? i.e. without defining the filter in the web.xml for a context
[09:43]<h[r]wc>hi guys, i have just got tomcant gonig on my freeBSD box
[09:43]<h[r]wc>and i have mod_jk parseing requests to it
[09:44]<h[r]wc>however they are always returning 404 errors on the files
[09:44]<fdcgg>and let me guess
[09:44]<fdcgg>it doesnt work?
[09:44]<h[r]wc>any idea where i would look to find the cause im not getting any logs
[09:44]<fdcgg>mod_jk.log
[09:45]<fdcgg>however, its kinda difficult to debug mod_jk







