Azure / azure-service-bus-java

☁️ Java client library for Azure Service Bus
https://azure.microsoft.com/services/service-bus
MIT License
60 stars 59 forks source link

How to configure to use a proxy #349

Closed romcil closed 5 years ago

romcil commented 5 years ago

Error on deployment to weblogic,

<26-Mar-2019, 12:47:00,292 PM GMT> <Failure occurred in the execution of deployment request with ID "614284025715944" for task "1" on [partition-name: DOMAIN]. Error is: "weblogic.application.ModuleException: com.microsoft.azure.servicebus.primitives.ServiceBusException: Error{condition=proton:io, description='Connection timed out: no further information', info=null}" weblogic.application.ModuleException: com.microsoft.azure.servicebus.primitives.ServiceBusException: Error{condition=proton:io, description='Connection timed out: no further information', info=null} at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:140) at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:233) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:228) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45) Truncated. see log file for complete stacktrace Caused By: com.microsoft.azure.servicebus.primitives.ServiceBusException: Error{condition=proton:io, description='Connection timed out: no further information', info=null} at com.microsoft.azure.servicebus.primitives.ExceptionUtil.toException(ExceptionUtil.java:117) at com.microsoft.azure.servicebus.primitives.MessagingFactory.onConnectionError(MessagingFactory.java:376) at com.microsoft.azure.servicebus.amqp.ConnectionHandler.onTransportError(ConnectionHandler.java:131) at org.apache.qpid.proton.engine.BaseHandler.handle(BaseHandler.java:191) at org.apache.qpid.proton.engine.impl.EventImpl.dispatch(EventImpl.java:108) Truncated. see log file for complete stacktrace

There is very little information on how to configure the 'azure service bus java' to use a proxy. There were changes made on previous version to allow this in clientsettings.java but these have been reverted.

Can you please provide examples of how to use this via a proxy as there is hardly any information on this?

nemakam commented 5 years ago

@romcil - Take a look at https://github.com/Azure/azure-service-bus/tree/master/samples/Java/azure-servicebus/QueuesWithProxy

dhwajverma commented 5 years ago

@nemakam I have tried using ProxySeletor but it is again giving the same error i.e. "com.microsoft.azure.servicebus.primitives.ServiceBusException: Error{condition=proton:io, description='Connection timed out: no further information', info=null}"

st0ve commented 4 years ago

I think this needs to be reopened