Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] Re: one connection for each request

Hi Yannick,
the fact that each query obtains it's own connection is intended behavior. This does guarantee that the application holds on a connection for the minimum amount of time and therefore it allows the most efficient use of precious physical connection resources. For sure you can get a ClientSession that obtains a connection and keeps it. You can also obtain an exlusive connection for read and write operations and keep it. But maybe the best solution is to use the connections lazily, the way you have observed EclipseLink to work.

Best regards,
Reinhard

see
http://wiki.eclipse.org/Configuring_a_Session_(ELUG)#Lazy_Connection_Acquisition


eclipselink-users-request@xxxxxxxxxxx wrote:
Send eclipselink-users mailing list submissions to
	eclipselink-users@xxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
	https://dev.eclipse.org/mailman/listinfo/eclipselink-users
or, via email, send a message with subject or body 'help' to
	eclipselink-users-request@xxxxxxxxxxx

You can reach the person managing the list at
	eclipselink-users-owner@xxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of eclipselink-users digest..."


Today's Topics:

   1. Re: Re: Cascade delete bug (221389) fixed in	2.0 line but not
      1.1 line? (Gordon Yorke)
   2. Can I persist a Map containing a List as Value (adi@xxxxxxxxxxxx)
   3. Re: Can I persist a Map containing a List as Value (Tom Ware)
   4. Performance metrics...page down? (Laird Nelson)
   5. Re: Inserts and Caching (ossaert)
   6. one connection for each request! (Yannick Majoros)
   7. Debug Inner class (Ramesh.Ramasamy)
   8. Re: Debug Inner class (Tim Hollosy)
   9. Re: What options do I have for configuring auditing of
      Entities (Reinhard Girstenbrei) (Reinhard Girstenbrei)


----------------------------------------------------------------------

Message: 1
Date: Thu, 25 Jun 2009 10:36:57 -0300
From: Gordon Yorke <gordon.yorke@xxxxxxxxxx>
Subject: Re: [eclipselink-users] Re: Cascade delete bug (221389) fixed
	in	2.0 line but not 1.1 line?
To: EclipseLink User Discussions <eclipselink-users@xxxxxxxxxxx>
Message-ID: <4A437D79.9020106@xxxxxxxxxx>
Content-Type: text/plain; charset="iso-8859-1"

This section of code is only entered when using 
UnidirectionalOneToManyMapping.  Please file a bug for the null pointer.
The bug report you mention (221389) was not included in 1.1.2 as the 
potential to destabilize that stream was considered to much for a 
maintenance release and the issue is easily resolved by manually 
performing the removes within the application.  If you absolutely need 
this functionality in the 1.1.X stream please reopen the bug with this 
information.
--Gordon

Russ Teabeault wrote:
  
Sorry.  I also forgot to mention that the problem we seem to have 
bumped into is a NullPointerException from the following in 
UnitOfWorkImpl.java

if(descriptor.hasMappingsPostCalculateChanges()) {
    int size = descriptor.getMappingsPostCalculateChangesOnDeleted().size();

...
  
It appears that the one map is being tested but a different map is 
being used.  This seems to have been fixed in trunk with r3826 and we 
are wondering the best way to resolve this in the 1.1 line.

Thanks,

Russell Teabeault

On Wed, Jun 24, 2009 at 4:08 PM, Russ Teabeault 
<rteabeault@xxxxxxxxxxxx <mailto:rteabeault@xxxxxxxxxxxx>> wrote:

    It seems that this cascade delete bug was fixed in the 2.0 line
    but not in the 1.1 line.  We uncovered this bug today and are
    wondering if there are plans for creating a 1.1.2 patch?

    ------------------------------------------------------------------------
    r3826 | gyorke | 2009-03-31 14:54:49 -0600 (Tue, 31 Mar 2009) | 4
    lines

    Cascade Delete bug  221389
    reviewed by James Sutherland, Andrei Ilitchev, Tom Ware

    Simple update missed during merge.
    ------------------------------------------------------------------------


------------------------------------------------------------------------

_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users
  
    
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://dev.eclipse.org/mailman/private/eclipselink-users/attachments/20090625/428a4146/attachment.html

------------------------------

Message: 2
Date: Thu, 25 Jun 2009 16:33:22 +0200
From: adi@xxxxxxxxxxxx
Subject: [eclipselink-users] Can I persist a Map containing a List as
	Value
To: eclipselink-users@xxxxxxxxxxx
Message-ID: <20090625163322.ayn1wasjz74s44g4@xxxxxxxxxxxxxxx>
Content-Type: text/plain;	charset=ISO-8859-1

Hi

I persisted a map like this:
	private Map<String, String> instructions;

How can I persist a map that contains a List as value?
	private Map<String, List<String>> instructions;

Thanks a lot!

Regards Adrian



------------------------------

Message: 3
Date: Thu, 25 Jun 2009 10:42:51 -0400
From: Tom Ware <tom.ware@xxxxxxxxxx>
Subject: Re: [eclipselink-users] Can I persist a Map containing a List
	as Value
To: EclipseLink User Discussions <eclipselink-users@xxxxxxxxxxx>
Message-ID: <4A438CEB.6080308@xxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

You will likely need an extra object to do this.  Something like:

private Map<String, ListHolder> instructions;

@Entity
public class ListHolder{
   @id
   private int id;

   private List instructions;

...
}

It should be pretty easy to write some business methods that make this mapping 
transparent to the users of the API.

-Tom

adi@xxxxxxxxxxxx wrote:
  
Hi

I persisted a map like this:
	private Map<String, String> instructions;

How can I persist a map that contains a List as value?
	private Map<String, List<String>> instructions;

Thanks a lot!

Regards Adrian

_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users
    

------------------------------

Message: 4
Date: Thu, 25 Jun 2009 13:52:10 -0400
From: Laird Nelson <ljnelson@xxxxxxxxx>
Subject: [eclipselink-users] Performance metrics...page down?
To: EclipseLink User Discussions <eclipselink-users@xxxxxxxxxxx>
Message-ID:
	<2c0ebf0c0906251052x35673626i11a1279e6222417b@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="iso-8859-1"

http://stame02.us.oracle.com/eclipselink/ is supposed to provide weekly
performance metrics on Oracle.  But it gives me a 404.  Where should I go
instead?

BEst,
Laird
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://dev.eclipse.org/mailman/private/eclipselink-users/attachments/20090625/55da469f/attachment.html

------------------------------

Message: 5
Date: Fri, 26 Jun 2009 00:27:25 -0700 (PDT)
From: ossaert <decooman@xxxxxxxxx>
Subject: Re: [eclipselink-users] Inserts and Caching
To: eclipselink-users@xxxxxxxxxxx
Message-ID: <24216103.post@xxxxxxxxxxxxxxx>
Content-Type: text/plain; charset=us-ascii


Anyway, I still have the problem why the Insert over the API does not
work....

Can somebody help?

Thanks
Jan


  

--
Oracle
Reinhard Girstenbrei | Senior Principal Technical Support Engineer
Phone: +498914302318 | Mobile: +491775941318
Oracle Oracle Customer Service

ORACLE Deutschland GmbH | Riesstr. 25 | 80992 München


ORACLE Deutschland GmbH, Hauptverwaltung: Riesstraße 25, D-80992 München
Geschäftsführer: Jürgen Kunz, Registergericht: Amtsgericht München, HRB 82775
Green Oracle Oracle is committed to developing practices and products that help protect the environment

Back to the top