| WARN | Transport Connection to: tcp://ip:port failed: org.apache.activemq.transport.InactivityIOException: Channel was inactive for too long | org.apache.activemq.broker.TransportConnection.Transport | AmqpInactivityMonitor Async Task: java.util.concurrent.ThreadPoolExecutor$Worker@7e641927[State = -1, empty queue]
I am trying to send a message from java[publisher] to active mq, which is getting enqueued in active mq. subscriber code is written in python[using this library python-qpid-proton 0.31.0]. the subscribers stays active when no request is sent to active mq. But when a request is sent to active mq , client in "Active Durable Topic Subscribers" goes in to "Offline Durable Topic Subscribers" after sometime while the request is being processed.when the same code run in pycharm will work fine but on exe can see this issue python receiver code looks like this:-
P1 = Receiver(url, subscriptionname)
from proton.reactor import Container
Container(P1).run()
class Receiver(MessagingHandler):
super(Receiver, self).__init__()
def __init__(self, url, subscriptionname):
self.url = Url(url)
self.stopping = False
self.messages_actually_received = 0
self.subscriptionName = subscriptionname
def on_start(self, event):
durable = DurableSubscription()
event.container.container_id = "client"
connection = event.container.connect(self.url)
event.container.create_receiver(connection , self.url.path, name=self.subscriptionName, options=durable)
def on_message(self, event):
if self.stopping:
return
self.messages_actually_received += 1
if event.message.body == 'message':
pass