welcome to the forum.
The HsSqlDb is only used for examples and not recommended for production use. I'm not sure whether XA transactions are working.
I would use a database like MySql or Oracle for this.
I'm creating sample applications with our framework, and, I'd like to create a runable two-phase commit sample without necessity to create or install databases like MySQL or PostgreSQL, because this sample will be available to the users. It's only a example.
Thanks a lot,