My question is how can I merge these two datasource to one? Because in some situation I can just use one datasource configuration. followings are the configuration:
That's not what you want to do. You want to use a pooled data source where Connection#close() causes the connection to be returned to the pool instead of actually closing the TCP socket. Both commons-pool and c3p0 work this way. See https://wiki.jasig.org/display/CASUM/JpaTicketRegistry for a sample configuration of c3p0.
M -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
