Questions tagged [consumer]

649 questions
0
votes
1 answer

RabbitMQ Consumer not receiving messages sent from Producer

Hi I am trying to send a message over rabbitMQ. I am declaring a direct exchange and routing it to my queue at Producer end but i am not able to receive the message at my consumer. Following is the code for my consumer: package…
Aryan Singh
  • 87
  • 2
  • 12
0
votes
1 answer

How to get all the messages from kafka topic and count them using java?

This code sometimes gives me all the messages from the beginning and waiting for another message and sometimes it's just waiting for another message import java.util.HashMap; import java.util.List; import java.util.Map; import…
Meni
  • 1
  • 1
  • 3
0
votes
1 answer

Configure ActiveMQ to producer only

I have the following configuration. The server listens to incoming ActiveMQ messages from producers that run on clients. I want to avoid from a client to create a consumer. Otherwise any client can sniff to all messages on bus and this is serious…
sergman
  • 171
  • 1
  • 2
  • 12
0
votes
0 answers

recode composite scores to scale groups

I am new to this community, but I will try to explain my problem as clear as possible.I have conducted a consumer research in which I have a composite variable called, Consumer Innovativeness that is measured by 8 different question items. Each…
Jimmy. B
  • 1
  • 1
0
votes
0 answers

Java threading, a consumer dont want to end

Why does my Thread (Runnable) not get off the run() method once it reaches end of the block? This is the code: //1 Entry point for thread with run method public void run() { System.out.println("Hashmaker():/run(). " + threadName + " Running " …
Blak Oli
  • 1
  • 2
0
votes
1 answer

500px API key in development

I'm building an Node.js app and I want to get content from my 500px account so I try to use the API. For that I need to generate a consumer key but to do that I need an website URL, for now I'm only in dev so I don't have a domain name... How I can…
Hugo
  • 163
  • 4
  • 16
0
votes
2 answers

AMQP gem for rails is requeuing hundreds of successfully processed messages

Why, when I have a lot of messages on a queue (1200), are my messages being requeued even though my code processes them successfully and "acks" them? AND How can I fix this? .. I have an application that uses rails amqp gem to make use of…
ryan2johnson9
  • 724
  • 6
  • 21
0
votes
2 answers

Only one ActiveMQ session is handling messages

In a project, I am using ActiveMQ to process a relatively large number of messages. For that purpose there is a queue, fooQueue, which contains the messages to be processed. Two instances of an application are processing messages from that queue,…
Haris Osmanagić
  • 1,249
  • 12
  • 28
0
votes
1 answer

ActiveMQ connect, unknow data type: 49

I'm using ActiveMQ to send files from an application to another and I've encountered this error when the consumer attempt to connect at ActiveMQ server. Here is the connect method public void connect() { connectionFactory = new…
Luca89
  • 99
  • 1
  • 4
  • 14
0
votes
0 answers

A non-blocking connection way in kafka

First of all, I'm new on this so may be the explanation of the problem is not accurate. I have a topic in kafka with some data. With a consumer (written in Scala) I want to connect to the server and consume that information. The problem is that i…
Thabby07
  • 69
  • 2
  • 12
0
votes
1 answer

using monitor to solve consumer/producer

In the common pattern of solving consumer/producer problem with monitor, why is notify/notifyall statement used always even though it makes sense to use it only when number of elements in array changes from zero to one or from n to n-1. In the way…
0
votes
1 answer

How to send a json payload while consuming a rest api

I have an api developed and want to consume this api in a mule flow. But when I test from chrome:postman I am getting the below error. Message payload is of type: BufferInputStream So I tried to log the message and below I got…
mule-user
  • 223
  • 5
  • 22
0
votes
1 answer

Multiple consumers in same consumer group

I have 1 producer and 1 consumers in the same group (my-group). # To send messages asynchronously producer = SimpleProducer(kafka, async=True) producer.send_messages("my-topic", "async message") # To consume messages, consumer1 consumer1 =…
user3570620
  • 359
  • 1
  • 6
  • 16
0
votes
1 answer

Why is this not working in Java

import java.util.function.Consumer; public class test { public static void main(String[] args) { Consumer c = (x) --> System.out.println(x.toLowerCase()); c.accept("Java2s.com"); } } with error: Exception in thread…
Shadow
  • 5
  • 1
  • 5
0
votes
1 answer

Kafka consumer is unable to deserialize throws index out of bounds

Producer Code is Below static PltPage pltPage; public static void main(String[] args) throws IOException { Short itemtype = 1; Properties props = new Properties(); props.put("metadata.broker.list", "localhost:9092"); …
user3897533
  • 417
  • 1
  • 8
  • 24