Modifying Properties for an EOF JDBC-connection
Modifying Properties for an EOF JDBC-connection
- Subject: Modifying Properties for an EOF JDBC-connection
- From: Hugi Thordarson <email@hidden>
- Date: Tue, 19 May 2009 17:17:39 +0000
Hi all.
I need to set a property for the Oracle JDBC-driver, can anyone tell me how to do that? This is wat I've tried (without success):
--------- EOModel model = EOModelGroup.defaultGroup().modelNamed( "MyModel" ); EODatabaseContext dbc = EODatabaseContext.registeredDatabaseContextForModel( model, ec ); JDBCAdaptor adaptor = (JDBCAdaptor)dbc.adaptorContext().adaptor(); adaptor.connectionProperties().put( "oracle.jdbc.ReadTimeout", 5000 );
System.out.println( adaptor.connectionProperties() ); ---------
The last line's sysout will not show the newly added property - any idea how I can get it in there?
Cheers, - hugi
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden