Questions tagged [consumer]
649 questions
0
votes
0 answers
Increasing Packet Processing Rate from Active MQ
I am using Active MQ storage mechanism for my UDP packet processing. One UDP packet processing Program is listening UDP packets and inserting into 4 Queues which is configured. I have one consumer program which is consuming from these 4 queues by…

user3177635
- 31
- 1
- 2
0
votes
2 answers
Tracking consumers for RESTful API (no auth)
Folks,
What is a simplest way to track consumer applications accessing RESTful API services inside department.
We do not restrict access - no authentication/authorization - open for invocation, trusted environment.
No tools like OAuth AuthZ servers…

lenisha
- 39
- 1
- 7
0
votes
2 answers
Does OSGI bundle service consumer need to create "stub" of service interface?
I've just got my hands-on with OSGI technology and I've few basic queries.
Here is what I've done:
Created a HelloWorld interface in a package called "com.mypackage.osgi.bundle.service". This interface exposes a method as : public String…

lbvirgo
- 354
- 1
- 5
- 22
0
votes
1 answer
Producer Consumer in java multithreaded
I'm trying to implement a Producer Consumer problem in java. I'm using a circular buffer (circular array) to for the Producer to insert items into the buffer. Following is my code:
import java.util.*;
import java.io.*;
public class Buffer
{
…

user2201650
- 527
- 7
- 13
- 28
0
votes
1 answer
ActiveMQ, how can i create only one consumer?
I'm working with Java EE and ActiveMQ. I want to realize a JMS Queue where I can send messages to my QUEUE and a Consumer + MessageListener should read this messages.
The Code for my Consumer ist the following:
private void initializeActiveMq()…

user2115378
- 931
- 3
- 14
- 22
0
votes
1 answer
Apache Camel And Printing Producer
This one should be simple but for the life of me I cannot figure out how to get it running. What I want to do is read files from a folder and send them to a printer.
So I had a look at the documentation for the printer component in Camel and it…

Namphibian
- 12,046
- 7
- 46
- 76
0
votes
1 answer
Why is *randNum being incremented?
I know what every command does within my code, I just don't know the reasons they're there in the first place. This is insanely difficult to search answers for as my questions relate mostly to my own program. Apologies if it's still un-answerable, I…

viKK
- 15
- 1
- 7
0
votes
1 answer
Controlling the rate of messages consumption in HornetQ
We want to control the rate at which a consumer can consume messages in HornetQ.
The problem is that when we use the ServerLocator.setConsumerMaxRate(int) method, we get always 1 message per second, regardless of the value we pass.
When we don’t…

Elad Eldor
- 803
- 1
- 12
- 22
0
votes
1 answer
DeadLock in producer Consumer
I have following classes :
package com.akshu.multithreading;
public class ThreadResource {
static int a;
static boolean Value =false;
public synchronized int getA() {
while(Value == false){
…

noone
- 157
- 1
- 3
- 15
0
votes
3 answers
Message Consumer implementation
I guess the consumer of the Messages should be listening always or should be setup in a batch to run often to check and consume messages.
When we do basic examples, we use stand alone java program that keeps running. How do we implement them in the…

Kevin Rave
- 13,876
- 35
- 109
- 173
0
votes
1 answer
Producer thread getting stuck, but not blocking
I have a producer-consumer set of threads, but the producer is getting stuck on a line of code that isn't the .put(), according to the JConsole stack trace.
class Producer implements Runnable {
private final…

honkbert
- 135
- 1
- 7
0
votes
1 answer
does Akka manage Camel consumer thread or Camel context manage consumer thread?
the camel document mentioned that CamelContext manages threads for its consumers.
Akka integrated Camel thru Camel extension. we know that Akka has its own thread pools (dispatcher). so the question is: who manages Akka Camel consumer/actor threads?…

wang.aurora
- 255
- 3
- 8
0
votes
1 answer
what is difference between regular Akka actor and Camel consumer actor?
A regular Akka actor is associated with a mailbox and dispather(thread pool), which can be set by configuration or programmatically. you can look up regular actor through path.
regular actor dequeue message form mailbox first and then processing the…

wang.aurora
- 255
- 3
- 8
0
votes
1 answer
does akka camel consumer dequeue message before processing the message or after processing message?
class MyConsumer1 extends Consumer {
def endpointUri = "some protocol string"
def receive = {
case msg: CamelMessage ⇒ // processing msg
}
}
MyConsumer1 is a general form of camel consumer.
Questions:
Is msg in receive() de-queued…

wang.aurora
- 255
- 3
- 8
0
votes
0 answers
The client has no active subscriptions over endpoint 'my-polling-amf'
This is my channel configuration:
channel-definition id="my-polling-amf" class="mx.messaging.channels.AMFChannel"endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling"…

user1933827
- 167
- 1
- 6