Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report: Customer implemented MapStore with JTA DataSource Persistence Unit, not write to backend Database #6470

Closed
cidylong opened this issue Oct 28, 2023 · 4 comments
Assignees
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

Comments

@cidylong
Copy link

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

@cidylong cidylong added 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 labels Oct 28, 2023
@cidylong
Copy link
Author

Screenshot 2023-10-28 at 8 51 05 pm Screenshot 2023-10-28 at 8 52 18 pm

There are some payara server configure screen shots

@cidylong
Copy link
Author

cidylong commented Nov 1, 2023

This issue maybe caused by same reason with issue #6450.

If it is, please advise a work around to create a system (Payara Domain) available datasource that can be used as JTA datasource in persistence.xml

@cidylong
Copy link
Author

cidylong commented Nov 1, 2023

@felixif , please advise.

@felixif
Copy link

felixif commented Nov 1, 2023

Hello @cidylong,

This issue is a duplicate of issue 6467. Elif will continue the communication about the issue there. Thank you for your contribuiton.

Regards,
Felix

@felixif felixif closed this as completed Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants