Hi, I am using bean-managed transactions with hibernate in weblogic 6. Hibernate is great for this, as it allows me to write all of my code in such a way that it can run equally well inside an appserver or out. (v. useful for testing.)
The one problem with this is that there is no way to generically set transaction timeouts. Doing this inside an appserver requires different code to doing it outside an appserver and there is no way to do it in configuration at all. I am thinking about adding a feature to hibernate to allow this to be done generically. Here's how it would work. * A configuration parameter would be added to hibernate.cfg.xml to set the default timeout at the SessionFactory level. * A Session.setTransactionTimeout(int timeout) method would be added to set the timeout programmatically for a given session. * Session.beginTransaction() would be overloaded with Session.beginTransaction(int timeout) to set the timeout for a specific transaction. Does any one have any objections? Or a better way to do it? I don't really want to go to the effort of writing the code and then have to add it manually to every subsequent hibernate release, so I would like to see some agreement in principle from the hibernate dev community before I start. Cheers ADK ----------------------------- Consultant: One who has his hand in your pocket, his tongue in your ear, and his faith in your patience. ----------------------------------------------------------------------------------------------- Have you seen our website?.... http://www.vodafone.co.nz CAUTION: This correspondence is confidential and intended for the named recipient(s) only. If you are not the named recipient and receive this correspondence in error, you must not copy, distribute or take any action in reliance on it and you should delete it from your system and notify the sender immediately. Thank you. Unless otherwise stated, any views or opinions expressed are solely those of the author and do not represent those of Vodafone New Zealand Limited. Vodafone New Zealand Limited 21 Pitt Street, Private Bag 92161, Auckland, 1020, New Zealand Telephone + 64 9 357 5100 Facsimile + 64 9 377 0962 ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id%62&alloc_ida84&op=click _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel