I want write entity to server1, but entity history to server2, how do I config my datasource? Did anyone particular it?
How can I write entity history records to another server?
82 Views Asked by zsitech At
1
There are 1 best solutions below
Related Questions in HIBERNATE-ENVERS
- Diff on hibernate envers revisions
- admin Confirmation before modify record
- FacesContext.getCurrentInstance() returns null in RevisionListener
- Envers Pre/PostCollection Listener
- Grails 2.4.4 Envers Auditing in a different schema and db migration plugin
- Envers - add new element to oneToMany collection in EntityListener @PreUpdate
- Base model with @Audited
- spring-data-envers Hibernate java.lang.NoSuchMethodError: org.hibernate.engine.spi.SessionImplementor.getTransactionCoordinator
- Spring Data Envers org.springframework.data.mapping.PropertyReferenceException: No property findRevisions found for type
- Use both envers RevisionRepository and JpaRepository in the same application
- Hibernate Envers save Username just using servlet
- Hibernate Envers: Auditing an object, calling merge on it, gives an audit record EVERY time even with no change?
- Hibernate envers 3.6 get all version from entity
- Reading audited relations with Hibernate Envers
- Hibernate Envers : StackOverflow error when auditing objects
Related Questions in SPRING-DATA-ENVERS
- Spring Data Envers org.springframework.data.mapping.PropertyReferenceException: No property findRevisions found for type
- Is there way to record audit database in spring boot using Spring Data Envers with spring JDBCTemplate?
- Audit of 1 entity with 3 relationships causes error
- Lazy loading revisioned entities
- RevisionRepository return entity with different List implementation (PersistanceBag ->ListProxy)
- Error when adding custom revision in Hibernate envers
- Spring Boot + Spring Data Envers giving error on entityManagerFactory bean not initialised
- Spring data envers - revinfo table and entity_aud doesn't exist
- Looping over items of a jpa streamresult and call an update service. Envers create an revision over all items instead for every single item
- Why Spring Data Envers Revision Type returned UNKOWN?
- Custom audit logging vs Hibernate Envers
- Dynamically creating spring EnversRevisionRepository from a Java Class
- How to query for historical data
- Spring Data Envers - PropertyReferenceException: No property findRevisions found for type Foo
- Spring JPA with Envers
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There is no simple
DataSourceconfiguration that you could use. TheDataSourcewould need to analyse SQL statements in order to decide to which server to send them. You probably could implement something like this yourself, by searching for the names of the history tables in the SQL statements, but I wouldn't recommend that.Assuming your database supports this it seems more appropriate to use database link or some comparable technology, which allows you to write to the same database but have the data actually end up on the second server.