Skip to content

Commit

Permalink
Refine AMQP protocol check in Azure Service Bus client #24
Browse files Browse the repository at this point in the history
  • Loading branch information
kuniteru committed Nov 28, 2024
1 parent f5906e9 commit 7aa0232
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/protocol/servicebus/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>jp.co.pnop</groupId>
<artifactId>jmeter-plugins-azure-servicebus</artifactId>
<version>0.3.1</version>
<version>0.3.2</version>

<name>Azure Service Bus Sampler</name>
<description>Sample to Azure Service Bus</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import java.util.concurrent.atomic.AtomicInteger;

import com.azure.core.amqp.AmqpTransportType;
import com.azure.core.amqp.ProxyOptions;
import com.azure.messaging.servicebus.ServiceBusClientBuilder;
import com.azure.messaging.servicebus.ServiceBusSenderClient;

Expand All @@ -13,7 +12,6 @@
import org.slf4j.LoggerFactory;

import jp.co.pnop.jmeter.protocol.aad.config.AzAdCredential;
import jp.co.pnop.jmeter.protocol.aad.config.AzAdCredential.AzAdCredentialComponentImpl;
import jp.co.pnop.jmeter.protocol.amqp.util.AzAmqpProxyOptions;
import jp.co.pnop.jmeter.protocol.azureservicebus.config.AzServiceBusClient.AzServiceBusClientComponentImpl;

Expand Down Expand Up @@ -181,7 +179,7 @@ public ServiceBusSenderClient getProducer() throws Exception {
}

AmqpTransportType protocol = null;
if (getProtocol() == PROTOCOL_AMQP_OVER_WEBSOCKETS) {
if (getProtocol().equals(PROTOCOL_AMQP_OVER_WEBSOCKETS)) {
protocol = AmqpTransportType.AMQP_WEB_SOCKETS;
producerBuilder.proxyOptions(new AzAmqpProxyOptions().ProxyOptions());
} else {
Expand Down

0 comments on commit 7aa0232

Please sign in to comment.