• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Modifying Properties for an EOF JDBC-connection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

// Hugi Thordarson
// http://hugi.karlmenn.is/
 _______________________________________________
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

  • Follow-Ups:
    • Re: Modifying Properties for an EOF JDBC-connection
      • From: Peter Vandoros <email@hidden>
    • Re: Modifying Properties for an EOF JDBC-connection
      • From: Gustavo Adolfo Pizano <email@hidden>
    • Re: Modifying Properties for an EOF JDBC-connection
      • From: JR Ruggentaler <email@hidden>
  • Prev by Date: Re: What im doing wrong with AjaxUpdateContainer and a AjaxSelectionList?
  • Next by Date: Re: What im doing wrong with AjaxUpdateContainer and a AjaxSelectionList?
  • Previous by thread: Re: Oracle ojdbc5.jar file
  • Next by thread: Re: Modifying Properties for an EOF JDBC-connection
  • Index(es):
    • Date
    • Thread