Skip to main content

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 ZhouFriend
Messages: 41
Registered: February 2012

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,
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 SutherlandFriend
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 Jun 20 11:49:11 GMT 2018

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

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

Back to the top