Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Cecil Westerhof Newsgroups: comp.lang.java.programmer Subject: Re: Performance JPA Date: Thu, 12 Nov 2015 07:27:20 +0100 Organization: Decebal Computing Lines: 39 Message-ID: <87pozf3f7b.fsf@Equus.decebal.nl> References: <87lhagkcsh.fsf@Equus.decebal.nl> <563763d9$0$23727$e4fe514c@news.xs4all.nl> <87d1vrk20x.fsf@Equus.decebal.nl> <87ziyvhs0r.fsf@Equus.decebal.nl> <87mvuui2ws.fsf@Equus.decebal.nl> <87si4e49ja.fsf@Equus.decebal.nl> <8737wc425d.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: mx02.eternal-september.org; posting-host="528adfd6ad074c92fdc6a7f8fb9e23d8"; logging-data="8880"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX187EPn4g4decVLyy8KOr+SoRnuGGiWa4Ck=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:L1Et7KyhzE1XgSKSLW0YWMLQQ9I= sha1:7crSXm2OxumS4k+6GyAcaws7mHY= X-Homepage: http://www.decebal.nl/ Xref: csiph.com comp.lang.java.programmer:33113 On Thursday 12 Nov 2015 01:10 CET, Arne Vajhøj wrote: > That persistence.xml does not look correct. > > value="com.ibm.db2.jcc.DB2Driver" /> > > specifies a JDBC driver not DataSource. > > That may (*) make JPA not use WAS connection pool but try to > establish a connection for every operation. And that is very bad. That was what I thought was happening. (A new connection every time.) > The technique may work fine for a local database with a simple login > protocol but with a remote database and complex protocol, then it > could create a huge overhead. > > But we would need to see the rest of the persistence,xml to be sure > (the standard part actually determines whether it is driver or > data source). > > Try see: > > http://stackoverflow.com/questions/3526434/ibm-websphere-jpa-configuration-how-to-update-persistence-xml > > for an example of a persistence.xml that looks way > more I would expect (no driver, data source, all managed). I have been trying some things, but until now without success. I need to go to the office again and from there I do not have newsgroup access, so some silence on my part again. I will communicate my progress when I am back home. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof