• 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
Oracle Reconnection / Timeout Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Oracle Reconnection / Timeout Problem


  • Subject: Oracle Reconnection / Timeout Problem
  • From: Mark Gowdy <email@hidden>
  • Date: Fri, 16 Jun 2006 16:38:52 +0100

Hello, 

I am having a problem when my application looses it's connection with oracle.  It simply stalls for a while.
It will eventually reconnect, but it take 9 minutes on my dev machine, and about 14 minutes (I think) on our deployment machine.

My EOF connection stuff on my dev machine is:
    connectionDictionary = {
        URL = "";
        driver = "oracle.jdbc.OracleDriver";
        jdbc2Info = {
            "ANSI92_CONFORMANCE" = ANSI92EntryLevel;
            "DBMS_NAME" = Oracle;
            "DRIVER_NAME" = "Oracle JDBC driver";
            "DRIVER_VER" = "10.2.0.1.0";
.......

To detect this reconnection, I have set the EODatabaseContext delgate to Application object (for debug only)
I have added this to my Application.java


EODatabaseContext tmpDC = EOUtilities.databaseContextForModelNamed(new EOEditingContext(), "Model"); 
tmpDC.setDelegate(this);

public boolean databaseContextShouldHandleDatabaseException(EODatabaseContext dbCtxt, Throwable exception){
aeLog.dbg("databaseContextShouldHandleDatabaseException");
return true;
}

On the deployment machine, the Oracle connection seems to disconnect after some idle time when the app is not being used.
To reproduce the problem on my dev machine, I simply pull the network lead, and connect via another network adaptor (Airport)

This is my debug output (the first line is when the app receives the request from the browser):

[2006-06-14 11:48:44.809] [D] _dataDict = {H = "7382384"; R = "113006"; S = "2"; }
[2006-06-14 11:57:16.159] [D] [keuCfNZcleFXsti81xfR6M] [application] databaseContextShouldHandleDatabaseException

notice the 9 minute stall.

Has anyone come across this problem before?

Many thanks, 

Mark

 _______________________________________________
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

  • Prev by Date: Firebird RDMS and EOModeler
  • Next by Date: Re: Problem with webobject attributes in WOBuilder
  • Previous by thread: Re: Firebird RDMS and EOModeler
  • Next by thread: Binding an Action across components?
  • Index(es):
    • Date
    • Thread