Thanks for the enlighment!
Can I add equivalent to the annotations using runtime API?
Atenciosamente,
Edson Carlos Ericksson Richter
On 14-04-2015 18:30, Lukas Jungmann
wrote:
On
4/14/15 11:17 PM, Edson Richter wrote:
Atenciosamente,
Edson Carlos Ericksson Richter
On 14-04-2015 17:47, Lukas Jungmann wrote:
On 4/14/15 10:21 PM, Edson Richter
wrote:
Yes, I've read both of them. Most of
available examples show partitioning using annotations, but
I just want to enable ReplicationPartitioning - which seems
to not require nothign special, but three properties in
persistence unit XML.
Remains the question: when enabling
"ReplicationPartitioning" in persistence unit, why
EntityManagerFactory creation throws error "Missing
partitioning policy for name". How can I fix it?
This is my latest persistence unit:
<persistence version="2.0"
xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="TestePU"
transaction-type="RESOURCE_LOCAL">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<non-jta-data-source>java:comp/env/jdbc/teste</non-jta-data-source>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<shared-cache-mode>ALL</shared-cache-mode>
<validation-mode>NONE</validation-mode>
<properties>
<property name="eclipselink.partitioning"
value="ReplicationPartitioning"/>
does this value 'ReplicationPartitioning' match the value in
@ReplicationPartitioning.name? Is
@Partitioned("ReplicationPartitioning") included?
Thanks for your guidance.
I don't have any annotation set anywhere. As far as I could
read, annotations are necessary only when using other
partitions, not for replication one. How can I set those
annotations as properties in persistence unit?
put it into some entity; see attached sample which I've found in
old svn...
Basically it should work in a way you define some policy in
annotation (or orm.xml) with some 'name' (should be enough to
define it just once) and then you can refer to it through the name
from other places, ie persistence.xml - in this case, EL should
find a partitioning with given name and apply it to all entities
in given context
thanks,
--lukas
Regards,
Edson
thanks,
--lukas
<property
name="eclipselink.connection-pool.default.nonJtaDataSource"
value="java:comp/env/jdbc/teste"/>
<property
name="eclipselink.connection-pool.node2.nonJtaDataSource"
value="java:comp/env/jdbc/teste2"/>
</properties>
</persistence-unit>
Atenciosamente,
Edson Carlos Ericksson Richter
On 14-04-2015 16:55, Lukas Jungmann wrote:
On 4/14/15 9:11 PM, Edson Richter
wrote:
I can't find correct documentation
for this feature.
I think this cannot be used, since the only available
example doesn't work at all, and the "Example page" in
documentation is a broken link with error 404 (page not
found).
some pointers, not sure how useful they will be:
https://wiki.eclipse.org/EclipseLink/Examples/JPA/Partitioning
http://java-persistence-performance.blogspot.cz/2011/05/data-partitioning-scaling-database.html
HTH,
--lukas
Atenciosamente,
Edson Carlos Ericksson Richter
On 13-04-2015 17:02, Edson Richter wrote:
Please, could someone point out
how to configure Replication policy in the persistence
unit?
Atenciosamente,
Edson Carlos Ericksson Richter
On 12-04-2015 14:57, Phillip Ross wrote:
Edson, I'm not sure if this is
what you're looking for, but
Eclipselink supports "partitioning" which I believe
also has
replication functionality:
http://www.eclipse.org/eclipselink/documentation/2.5/solutions/scaling002.htm#BABHHAEJ
hope that helps!
- Phillip
On Sun, Apr 12, 2015 at 10:55 AM, Edson Carlos
Ericksson Richter
<edsonrichter@xxxxxxxxxxx> wrote:
It is possible to configure
eclipselink in the following way:
1) Every query is send to one "master" server;
2) Every transaction causes
insert/update/delete/procedure call to be send
in two-phase commit mode to 2~4 servers?
- I don't have problems with volatile functions
(like "now()") because I do
all of this at Java app level. All my functions
are predictable stable.
- I want to use this a alternative to applying
HA-jdbc or C-jdbc proxy
libraries.
Thanks,
Edson
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
To change your delivery options, retrieve your
password, or unsubscribe from
this list, visit
https://dev.eclipse.org/mailman/listinfo/eclipselink-users
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
To change your delivery options, retrieve your
password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/eclipselink-users
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
To change your delivery options, retrieve your
password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/eclipselink-users
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
To change your delivery options, retrieve your password,
or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/eclipselink-users
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
To change your delivery options, retrieve your password,
or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/eclipselink-users
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or
unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/eclipselink-users
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or
unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/eclipselink-users
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or
unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/eclipselink-users
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/eclipselink-users
|