A JMS driver that wraps an other JDBC driver and generates JFR events.
<dependency>
<groupId>com.github.marschall</groupId>
<artifactId>jfr-jms</artifactId>
<version>0.1.0-SNAPSHOT</version>
</dependency>
Usage
Simply wrap your ConnectionFactory
with a JfrConnectionFactory
new JfrConnectionFactory(connectionFactory)
or your JMSContext
with a JfrJMSContext
new JfrJMSContext(jmsContext)
Implementation/Overhead
The implementation is based around wrapper objects.
- no reflection
- no string concatenation
We assume javax.jms.Queue#getQueueName()
and javax.jms.Topic#getTopicName()
are simple getters.