Reputation: 315
Anyone have any experience using JMeter and Oracle AQ? I'm trying to publish messages to the Oracle AQ queue using JMS Publisher but the only information I have is from a bindings file.
Upvotes: 0
Views: 1549
Reputation: 406
First, read this documentation (Oracle® Fusion Middleware Configuring and Managing JMS for Oracle WebLogic Server, Chapter 8: Interoperating with Oracle AQ JMS), it provides you what you need to know about AQ user permission grants, AQ JMS Connection Factories names, and AQ Remote JNDI JMS Destination names. It does say WebLogic, but they use the very same config we do.
Put Oracle JDBC jar (ojdbc6.jar) and Oracle AQ jar (aqapi.jar, found in Weblogic's $WL_HOME/server/lib) in JMeter's lib dir.
Create a jndi.properties file with the following entries:
java.naming.factory.initial=oracle.jms.AQjmsInitialContextFactory
db_url=Your Oracle DB instance JDBC URL
java.naming.security.principal=username_with_aq_permission_grants
java.naming.security.credentials=password
Put the jndi.properties into a jar with
jar cf my-jndi-properties.jar jndi.properties
and put it in that same JMeter lib dir.
Create a JMS Publisher in JMeter, and fill these:
Fill out what else you need.
Thanks David L for the jndi.properties info.
Upvotes: 1