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.
274 questions
28
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
  • 795
  • 2
  • 13
  • 28
6
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
  • 2,763
  • 7
  • 23
  • 33
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
  • 11,766
  • 17
  • 76
  • 117
5
votes
3 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
  • 6,662
  • 12
  • 48
  • 93
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
  • 795
  • 2
  • 13
  • 29
4
votes
3 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 this 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
  • 8,460
  • 13
  • 60
  • 129
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
  • 484
  • 11
  • 25
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
  • 133
  • 3
  • 12
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
  • 2,440
  • 2
  • 19
  • 42
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
  • 359
  • 1
  • 4
  • 15
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.
  • 562
  • 4
  • 15
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
1 answer

JMS pub sub multiple listener with same subscription id for same topic in distributed application

I am developing distributed application ( 4 instances are running and controlled by Load balance. each instance is identical. one instance will not depend on another instance and each instance will do all operation ). Application needs to listen one…
Gnana
  • 1,662
  • 3
  • 19
  • 48
3
votes
0 answers

JMS error : Error while deserialising an object

Getting Following strange exception weblogic.jms.commom.JMSException:[JMSClientExceptions:055115]Error deserialising an object Caused by: java.lang.ClassNotFoundException: com.my.TestClass To my surprise , this is not happening for all…
Balaji Reddy
  • 4,901
  • 3
  • 30
  • 43
1
2 3
18 19