Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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.
Previous Topic:EclipseLink Bug in DatabaseQuery.checkPrepare
Next Topic:GlassFish, Spring, Eclipselink EntityManager
Goto Forum:
  


Current Time: Fri Jul 11 23:36:53 EDT 2025

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

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

Back to the top