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] Fri, 27 September 2013 22: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 15: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: Sat Aug 23 15:32:59 EDT 2014

Powered by FUDForum. Page generated in 0.04345 seconds