Bug Report: Customer implemented MapStore with JTA DataSource Persistence Unit, not write to backend Database #6470
Labels
Status: Open
Issue has been triaged by the front-line engineers and is being worked on verification
Type: Bug
Label issue as a bug defect
Brief Summary
Operating System: Rocky Linux 9.2
Oracle JDK 17.0.6
Payara 6.2023.10
Backend Database: PostgreSQL 15
I developed a simple project that tried to write simple events to Hazelcast then to backend database.
jdbc connection pool configured with XADatasource, jdbc resources Jndi name as: jdbc/PG15_ozssc_150
JTA transaction type was used in persistence.xml
customer hazelcast-config.xml used to configure map and serialisable in payara domain.
Customer MapStore implemented
EJB schedule was used to create entity and put it into Hazelcast map
Entity and EJB logic were put into separated module and deploy differently
Details please refer to: https://github.com/cidylong/JTAMapStoreEJB
Expected Outcome
When EJB write entity to hazelcast map, system should automatically write back database as configured in hazelcast-config.xml.
Current Outcome
EJB scheduler write entity to Hazelcast map successfully, (checked by using ViduslVM over jmx service that payara provided).
customer MapStore function store() was called (checked on console log)
Backend Database NOT record any information about the entity at all. (customer MapStore implementation don't throw any exception at all)
Reproducer
Details please refer to: https://github.com/cidylong/JTAMapStoreEJB
I had created a gitHub project to have all source code here. And there is a README.MD to have the development and test guide
Operating System
Rocky Linux 9.1
JDK Version
Oracle JDK 17.0.7
Payara Distribution
Payara Server Full Profile
The text was updated successfully, but these errors were encountered: