Re: [dbcp] auto reconnecting
On 10/7/15 12:35 PM, Pruitt, Byron S wrote: > My server has long standing idle periods. We are seeing: > com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet > successfully received from the server was... errors. > > I would like to fix it as simply as possible. MySQL has two properties > autoReconnect and autoReconnectForPools that might fix the problem. They > both default to false and I can't find an easy way to set them. > I had an earlier problem with auto commit and I fixed it with the > setDefaultAutoCommit method on PoolableConnectionFactory. But, it doesn't > have a similar setter for auto reconnect. > > The only example I found of setting the autoReconnect property is on the > connection url. I use the interface where I pass an instance of Properties, > so I assume I can set those properties with it. > > I am curious if there are better ways to set those properties. If you are using BasicDataSource, you can use it's addConnectionProperty method to add driver-specific connection properties such as this. Just make sure to add the property before you use the datasource. You can achieve the same effect by enabling validation on borrow or while idle (testOnBorrow, testWhileIdle). Phil > > Thanks. > > -SP > > - > To unsubscribe, e-mail: user-unsubscr...@commons.apache.org > For additional commands, e-mail: user-h...@commons.apache.org > > - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
[dbcp] auto reconnecting
My server has long standing idle periods. We are seeing: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was... errors. I would like to fix it as simply as possible. MySQL has two properties autoReconnect and autoReconnectForPools that might fix the problem. They both default to false and I can't find an easy way to set them. I had an earlier problem with auto commit and I fixed it with the setDefaultAutoCommit method on PoolableConnectionFactory. But, it doesn't have a similar setter for auto reconnect. The only example I found of setting the autoReconnect property is on the connection url. I use the interface where I pass an instance of Properties, so I assume I can set those properties with it. I am curious if there are better ways to set those properties. Thanks. -SP - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [MATH] Linear Inequality Constraints in Optimizer
Hi. On Tue, 6 Oct 2015 12:49:04 -0700 (PDT), Rebecca2w2 wrote: Is it possible to use linear inequality constraints (ie Ax < b) with the multivariable non-linear optimizer? It is not directly supported, but it should be possible to use the "ParameterValidator" (an argument to the "create" factory method, defined in class "LeastSquaresFactory") for that purpose. The "ParameterValidator" receives as input the parameter values provided by the optimizer and can change them. If you implement such a validator for the above use-case, I think that it would be a nice addition to Commons Math. HTH, Gilles - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [beanutils2]
Hello Matthew, sorry this took so long. We don't have a road map. There is not much activity in BeanUtils2 at the moment. One big part that is still missing is automatic conversion of values. If you're interested to get involved in the development of BeanUtils 2, it's probably the best to reach out for other developers on the dev ML. You can also look into the SANDBOX project in the ASF jira and filter for tickets with the BeanUtils2 component to see what need work. Best regards, Benedikt 2015-10-04 23:42 GMT+02:00 Matthew Mann: > Please share the release road map with me? Or, is it online somewhere? > Anything I can do to help? > > -Matt > > On Sat, Sep 26, 2015 at 6:31 PM, Matthew Mann > wrote: > > > Cool! Is the road map online somewhere? > > > > On Wed, Sep 23, 2015 at 9:17 AM, Benedikt Ritter > > wrote: > > > >> Woops, hit send to early... > >> > >> 2015-09-23 15:16 GMT+02:00 Benedikt Ritter : > >> > >> > > >> > > >> > 2015-09-19 22:17 GMT+02:00 Matthew Mann : > >> > > >> >> When will beanutils2 be released? > >> >> > >> > > >> > There are now plans/release road map. The plan more features so that > it > >> is > >> > a real substitute to BeanUtils1. > >> > > >> > >> Should be "the plan was to add more features..." > >> > >> > >> > > >> > Regards, > >> > Benedikt > >> > > >> > > >> > > >> > -- > >> > http://people.apache.org/~britter/ > >> > http://www.systemoutprintln.de/ > >> > http://twitter.com/BenediktRitter > >> > http://github.com/britter > >> > > >> > >> > >> > >> -- > >> http://people.apache.org/~britter/ > >> http://www.systemoutprintln.de/ > >> http://twitter.com/BenediktRitter > >> http://github.com/britter > >> > > > > > -- http://people.apache.org/~britter/ http://www.systemoutprintln.de/ http://twitter.com/BenediktRitter http://github.com/britter