To add upon dave.c's answer, you'll need the pooled-jms package for the pool to instantiate.
implementation("org.messaginghub:pooled-jms:3.1.7")