Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Bug for replication partition policy in XML configuration
Bug for replication partition policy in XML configuration [message #1119061] Sat, 28 September 2013 02:52 Go to next message
Oliver Zhou is currently offline Oliver Zhou
Messages: 41
Registered: February 2012
Member
Hi,

ReplicationPartitionPolicy has an attribute called connection pools, it can work well in annotation, but in XML configuration, it doesn't work, and always send the query to all the connection pools.

After debug into the source code, I found
org.eclipse.persistence.internal.jpa.metadata.partitioning.ReplicationPartitioningMetadata.buildPolicy() method doesn't set the connection pools to ReplicationPartitioningPolicy object.

Best wishes,
Oliver
Re: Bug for replication partition policy in XML configuration [message #1121576 is a reply to message #1119061] Mon, 30 September 2013 19:28 Go to previous message
James Sutherland is currently offline James Sutherland
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

You are correct, the buildPolicy() method should call "this.buildPolicy(policy);" not "super.buildPolicy(policy);".

Please log a bug and vote for it. If you need to use XML config, you can set the pools using a DescriptorCustomizer as a workaround.


James : Wiki : Book : Blog : Twitter
Previous Topic:EclipseLink Bug in DatabaseQuery.checkPrepare
Next Topic:GlassFish, Spring, Eclipselink EntityManager
Goto Forum:
  


Current Time: Wed Oct 01 14:24:12 GMT 2014

Powered by FUDForum. Page generated in 0.01726 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software