Questions tagged [jms-topic]

A distribution mechanism for publishing messages that are delivered to multiple subscribers.

The use case for JMS Topic includes these considerations:

  1. A distribution mechanism for publishing messages that are delivered to multiple subscribers.
  2. Multiple consumers require delivery of the message.
  3. There is a timing dependency between publishers and subscribers. The publisher must create a subscription in order for clients to be able to subscribe. The subscriber must remain continuously active to receive messages, unless it has established a durable subscription. In that case, messages published while the subscriber is not connected will be redistributed whenever it reconnects.
300 questions
30
votes
7 answers

Counting Number of messages stored in a kafka topic

I'm using 0.9.0.0 version of Kafka and I want to count the number of messages in a topic without using the admin script kafka-console-consumer.sh. I have tried all the commands in the answer Java, How to get number of messages in a topic in apache…
jack AKA karthik
  • 885
  • 3
  • 15
  • 30
10
votes
2 answers

JMS Sessions, "transacted" and "auto-acknowledge"

What does JMS session exactly mean? What does it mean that a JMS session can be or not "transacted"? What does it mean that a JMS session can be or not with "auto-acknowledge"?
Johan
  • 3,561
  • 9
  • 29
  • 45
10
votes
4 answers

WARN Error while fetching metadata with correlation id 1 : {MY_TOPIC?=INVALID_TOPIC_EXCEPTION} (org.apache.kafka.clients.NetworkClient)

When I run the following command with kafka 0.9.0.1, I get these warnings[1]. Can you please tell me what is wrong with my topics? (I'm talking to the kafka broker which runs in ec2) ./kafka-console-consumer.sh --new-consumer --bootstrap-server…
Ratha
  • 9,434
  • 17
  • 85
  • 163
6
votes
4 answers

How to delete Kafka topic using Kafka REST Proxy?

How to delete Kafka topic using Kafka REST Proxy? I tried the following command, but it returns the error message: curl -X DELETE XXX.XX.XXX.XX:9092/topics/test_topic If it's impossible, then how to update delete the messages and update the scheme…
Dinosaurius
  • 8,306
  • 19
  • 64
  • 113
6
votes
3 answers

JMS Topic vs Queue - Intent

I am trying to understand the use case of using Queue. My understanding: Queue means one-to-one. The only use case(if not rare, very few) would be: Message is intended for only one consume. But even in those cases, I may want to use Topic (just to…
Sandeep Jindal
  • 14,510
  • 18
  • 83
  • 121
5
votes
1 answer

JMS multiple durable subscription to one topic

I started JMS for a week now. I created JMS using Netbeans,maven and glassfish. I have one producer and one durable consumer and I wanted to add another durable consumer to the same topic(not queue). Is it possible to do so? because I want all the…
Chan Chun Weng
  • 876
  • 2
  • 16
  • 32
4
votes
1 answer

JMS Topic Publish/Subscriber

Currently I have started to work on JMS Topic with ActiveMQ. I have created Publisher and Durable Subscribers through JAVA code (mentioned below) and I received the messages in subscribers side also. Publisher.Java public static void…
Bhuvanesh Waran
  • 593
  • 12
  • 28
4
votes
2 answers

durable and non-durable difference JMS-Topic. Which is best to use durable or non-durable?

Can anyone clearly explain what is durable and non-durable in JMS Topic? I have server and client model till now server will send the request to client to finish the request sent from server and the client accepts the request ant send back the…
Bhuvanesh Waran
  • 593
  • 12
  • 28
4
votes
2 answers

Preventing thread from duplicate processing in java

Problem statement I have a JMS listener running as a thread listening to a topic. As soon a message comes in, I spawn a new Thread to process the in-bounded message. So for each incoming message I spawn a new Thread. I have a scenario where…
Balaji
  • 191
  • 3
  • 14
4
votes
1 answer

Oracle AQ Topic Queue dequeue with ODP.NET

I'm trying for the first time to dequeue from a queue on my company production environment by ODP.NET and C#. I used the official ODP.NET example to develop my client got from the installation examples folder. The queue is an Oracle AQ Topic (multi…
Antonio Petricca
  • 8,891
  • 5
  • 36
  • 74
4
votes
1 answer

Creating JMS topic publisher returns 2035 unauthorized in WMQ

I am having a ongoing problem trying to create a topic publisher from seemingly simple java code. My WMQ is administered separately in the company so I have no direct control of it. I try to connect to the topic by creating a TopicConnection, then a…
orion_kid
  • 405
  • 1
  • 7
  • 20
4
votes
1 answer

ActiveMQ JMS Topic - delete old messages

Is there a way to monitor messages in ActiveMQ JMS topic and most importantly delete older messages, e.g. delete messages older than a month ago. I am using Apache Camel to build ActiveMQ Connection and JMS topics.
user2709613
  • 71
  • 3
  • 6
3
votes
1 answer

How to share messages, published on Topic, between multiple VMs, in Spring Jms Tibjms

My application is consuming messages published to a Topic. I have 3 servers where my application code is running. With current implementation, the messages is distributed to all running VMs i.e. copy of message is received by every consumer. My…
G.G.
  • 592
  • 5
  • 16
3
votes
1 answer

JMS - Couldn't create session factory even if connection to remote provider is OK

I make a jar to connect to JMS provider, it's work fine in a server (a) but doesn't work on a server (b). I verify that connection to the JMS provider from server (b) is OK via telnet as shown below: -> telnet -d 10.127.161.247 4447 Trying…
3
votes
0 answers

Spring JMS: How work with `ActiveMQ Advisory Message`

For a Spring Framework app working with ActiveMQ and with/without WebSocket The requirement is prior to send any message to a Topic a check should be done about Number Of Consumers, if it returns 1 the message can be sent safely. If it returns 0,…
Manuel Jordan
  • 15,253
  • 21
  • 95
  • 158
1
2 3
19 20