Re: JDBC transactions using MySQL / DBCP in Tomcat 5.0.28

2004-11-22 Thread Mark Matthews
show for both tables? If it doesn't say 'Type=InnoDB' at the end, transactions won't work :( -Mark - -- Mark Matthews MySQL AB, Software Development Manager - Client Connectivity Office: +1 708 332 0507 www.mysql.com -BEGIN PGP SIGNATURE- Versi

Re: Tomcat becoming almost completely non-responsive

2004-10-05 Thread Mark Matthews
is a 'feature' (many call a bug) in BufferedInputStreams that causes them in some cases to want to read a full buffer's worth of data when you're only asking for some portion of it...That's what's happening here. I'd try downloading something more recent for a J

Re: API docs for Mysql JDBC Driver?

2004-09-26 Thread Mark Matthews
even has some pointers in the docs). There are plenty of documentation artifacts for JDBC (books, tutorials, apidocs, etc), there's no reason for us to re-invent the wheel there. We implement the _standard_, there are very few 'extensions' to the JDBC standard in the Connector/J

Re: Retrieveing Unicode stuff from MySQL 4.1.x ?

2004-07-14 Thread Mark Matthews
you think they are. I can state from experience that _usually_ it's not at the database level, however, it's usually a mismatch somewhere else that these problems occur (but they are hard to debug sometimes :( ) Regards, -Mark - -- Mr. Mark Matthews MySQL AB, Software Developmen

Re: Help moving from a ConnectionBroker to using Tomcats DB Connection pool

2004-06-16 Thread Mark Matthews
stmt).getLastInsertID() > ; > stmt.close(); > return (int)newKey; > }catch (SQLException e){ Use MySQL's Connector/J 3.x or 3.1.x (they're what MM.MySQL 'grew up' to), and use the JDBC-standard Statement.getGeneratedKeys() method to do the same thin

Re: problem with mod_jk 1.2: error in action code

2004-03-12 Thread Mark Matthews
s caused by a lost connection, or some other error (section 4.4 under the following link): http://www.mysql.com/documentation/connector-j/index.html#id2803835 -Mark (the guy who wrote the 'autoReconnect' functionality, and now wishes he could remove it from the JDBC driver) - -- Mr. Mark M

Re: JNDI Datasource Reference in DD Not Necessary?

2004-03-09 Thread Mark Matthews
t documented anywhere). If you follow the example given in the Tomcat documentation _to_the_letter_ things work out fine. Once you have _that_ working, then start tweaking from there. I've found that trying to plug the right magic values from scratch into server.xml never works as

Re: Another Try at MySQL Connection Pooling

2004-02-11 Thread Mark Matthews
en change one thing at a time. Unfortunately, Tomcat itself doesn't complain much up front when you have something wrong with configuration, and it usually manifests itself as an exception that's not related to what you've misconfigured :( Regards, -Mark - -- Mr. Mark Ma

Re: Another Try at MySQL Connection Pooling

2004-02-11 Thread Mark Matthews
ipes will give you a 50-60% performance improvement. It depends on the particular version of Windows (first, it has to be NT-based, secondly the newer the better). -Mark - -- Mr. Mark Matthews MySQL AB, Software Development Manager, J2EE and Windows Platforms Office: +1 708 332 0507 www.

Re: Database Rollback doesn't work

2003-12-19 Thread Mark Matthews
t it will be delivered. You'll need to watch for 'bounce' messages to see whether it was delivered or not, and even then, you might not get those. Perhaps a better way to do it might be to have different states, i.e. confirmation email sent, user confirmed, etc? Regards, -Mark

Re: HELP!! TOMCAT and MYSQL

2003-08-03 Thread Mark Matthews
27;XML way' to produce an ampersand (&) is to use the entity & So...Your connection URL would look like: connectionURL="jdbc:mysql://localhost/authority?user=leeson&password=" Regards, -Mark - -- Mr. Mark Matthews MySQL AB, Software Development Manager, J2EE