Outbox Pattern Alternative using PubSub+ Transactions?

I need to sync the publishing of events with MySQL database transaction commits, and was planning on using the Transactional Outbox Pattern for this ( Pattern: Transactional outbox ). However, I was wondering if PubSub+ transactions can be leveraged for this, maybe with two-phased commit? Has anyone tried this? I’m using the JCSMP api in my application.