Return-Path: Delivered-To: apmail-db-jdo-user-archive@www.apache.org Received: (qmail 77389 invoked from network); 12 Dec 2008 18:20:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Dec 2008 18:20:06 -0000 Received: (qmail 81209 invoked by uid 500); 12 Dec 2008 18:20:18 -0000 Mailing-List: contact jdo-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-user@db.apache.org Delivered-To: mailing list jdo-user@db.apache.org Received: (qmail 81151 invoked by uid 99); 12 Dec 2008 18:20:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Dec 2008 10:20:18 -0800 X-ASF-Spam-Status: No, hits=-3.8 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.18.43.132] (HELO sca-es-mail-1.sun.com) (192.18.43.132) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Dec 2008 18:20:03 +0000 Received: from fe-sfbay-10.sun.com ([192.18.43.129]) by sca-es-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id mBCIJgnE015239; Fri, 12 Dec 2008 10:19:42 -0800 (PST) Received: from conversion-daemon.fe-sfbay-10.sun.com by fe-sfbay-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0KBR00E01ZUVVY00@fe-sfbay-10.sun.com> (original mail from Craig.Russell@Sun.COM); Fri, 12 Dec 2008 10:19:42 -0800 (PST) Received: from [10.0.238.206] ([192.18.37.228]) by fe-sfbay-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0KBS00EGV08TZ060@fe-sfbay-10.sun.com>; Fri, 12 Dec 2008 10:19:41 -0800 (PST) Date: Fri, 12 Dec 2008 10:19:41 -0800 From: Craig L Russell Subject: Re: Strange problem: timeout first time, then ok In-reply-to: <20922247.post@talk.nabble.com> Sender: Craig.Russell@Sun.COM To: Apache JDO project , jdo-user@db.apache.org Message-id: <52C6C5F2-AD0E-4057-A0B8-6AFA53A1E4E6@SUN.com> MIME-version: 1.0 X-Mailer: Apple Mail (2.929.2) Content-type: text/plain; delsp=yes; format=flowed; charset=US-ASCII Content-transfer-encoding: 7BIT References: <20922247.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, This is probably the wrong forum for this issue. You might try the datanucleus forum at http://www.jpox.org/servlet/forum/index Regards, Craig On Dec 9, 2008, at 12:11 PM, jamh wrote: > > Hello, > > I am running into something quite odd, and wanted to see if anyone > could > shed light on this. I have defined two persistence beans as: > > class > ="org.springframework.orm.jdo.LocalPersistenceManagerFactoryBean"> > > > key > = > "javax > .jdo > .PersistenceManagerFactoryClass > ">org.jpox.jdo.JDOPersistenceManagerFactory > > key="javax.jdo.option.ConnectionURL">jdbc:sqlserver:// > 1.2.3.4:1433;DatabaseName=dbcert;SelectMethod=cursor > key="javax.jdo.option.ConnectionUserName">user1 > key="javax.jdo.option.ConnectionPassword">passwd1 > key > = > "javax > .jdo > .option > .ConnectionDriverName">com.microsoft.sqlserver.jdbc.SQLServerDriver > > key="javax.jdo.option.NontransactionalWrite">true > key="org.jpox.identifier.case">PreserveCase > key="org.jpox.fixedDatastore">true > key="org.jpox.validateTables">false > > > > > class > ="org.springframework.orm.jdo.LocalPersistenceManagerFactoryBean"> > > > key > = > "javax > .jdo > .PersistenceManagerFactoryClass > ">org.jpox.jdo.JDOPersistenceManagerFactory > > key="javax.jdo.option.ConnectionURL">jdbc:sqlserver:// > 1.2.3.4:9546;DatabaseName=dbcert;SelectMethod=cursor > key="javax.jdo.option.ConnectionUserName">user2 > key="javax.jdo.option.ConnectionPassword">passwd2 > key > = > "javax > .jdo > .option > .ConnectionDriverName">com.microsoft.sqlserver.jdbc.SQLServerDriver > > key="javax.jdo.option.NontransactionalWrite">true > key="org.jpox.identifier.case">PreserveCase > key="org.jpox.fixedDatastore">true > key="org.jpox.validateTables">false > > > > > So the first strange thing is that if I reverse their order, ie. if > I have > the prod bean precede the cert bean, the app won't start, ie. it > gives me a > socket error. > > The second strange thing is that with the above, all operations to > the cert > bean work flawlessly, but operations to the prod bean give me a > timeout the > first time, but then after that, they work ever after. > > If I restart the app, again the first operation on the prod bean > times out, > and after that it works. > > PS: if I have two beans that both run on the same port but different > hosts, > everything works fine. The two databases are set up identically. > > What is going on? > Any help is appreciated. > -- > View this message in context: http://www.nabble.com/Strange-problem%3A-timeout-first-time%2C-then-ok-tp20922247p20922247.html > Sent from the JDO - Development mailing list archive at Nabble.com. > Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:Craig.Russell@sun.com P.S. A good JDO? O, Gasp!