Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

simulating a slow database connection

843859Jun 2 2006 — edited Jun 5 2006
Anyone aware of a java.sql.Connection decorator implementation that can be used to simulate a slow database? I suppose I could write one myself but one would think that something like this has been done before. I'm imagining a class that would wrap an arbitrary, existing Connection instance and would provide an adjustable range of a random delays incurred before various methods return. I suppose that the class would need to spawn wrappers for CallableStatement, PreparedStatement, etc. I wish to use this thing to get a feel for the responsiveness of my GUI under adverse conditions.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 3 2006
Added on Jun 2 2006
3 comments
394 views