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
1
vote
0 answers

Camel route runs multiple times for a single jms topic message

I'm having a problem with handling JMS topic message using Apache Camel. Here's a route (Spring context fragment) I use to read and handle the message:
1
vote
0 answers

Message Driven Bean deploy error in WildFly

I'm quite new to JMS and WildFly 10.0.0.CR5 I've started with a very simple task: adding a topic to the default server shipped with WildFly and deploy a MDB (in an EJB jar, and the EJB jar is inside an EAR) that listens on that topic. The code of…
Stefano Cazzola
  • 1,597
  • 1
  • 20
  • 36
1
vote
1 answer

jms 2 shared subscriber

I have been seeing some issues in our application where two instances of the application were receiving the same message even though their consumers were created using createSharedConsumer and had the same subscription name. At first I thought this…
1
vote
1 answer

Is there a Tool to modify durable JMS Topic Messages?

We are using Websphere MQ8 and thinking about using durable Topics to implement a Publish and Subscribe pattern. We are using Queues already and Hermes JMS-Browser to correct erroneous Queue-Messages. I know that you can use Hermes to subscribe to…
Dirk
  • 1,064
  • 1
  • 11
  • 13
1
vote
0 answers

activemq enable duplicate message - durable subscriber

I am using activemq with durable topic subscription. I am also using JTA and therefor in case of error, I wanted the resend to be triggered by the activeMQ. For this to work, I did the redeliveryPlugin settings and it was working fine until I…
Varesh
  • 1,648
  • 2
  • 14
  • 22
1
vote
0 answers

Subscriber won't receive JMS message

I'm new to JMS message passing. I want to publish a message to a topic and subscriber should receive it. Here is my spring bean definition.
Darshana
  • 2,462
  • 6
  • 28
  • 54
1
vote
1 answer

How to unsubscribe from durable topic subscription

Using Stomp WebSockets to connect to an ActiveMQ server, my extjs5 browser webapp has numerous topic subscriptions scoped to panels. Here is an example of a topic subscription with headers: var sub = this.mqClient.subscribe('/topic/Status',…
Stevko
  • 4,345
  • 6
  • 39
  • 66
1
vote
1 answer

Get a Topic in JMS using Java SE

I am using Java SE. I create a topic when the app first starts like so: connectionFactory = new ActiveMQConnectionFactory("vm://localhost"); conn = connectionFactory.createTopicConnection(); session = conn.createTopicSession(false, …
user489041
  • 27,916
  • 55
  • 135
  • 204
1
vote
1 answer

ActiveMQ recursive wildcards used in Camel route

Apache ActiveMQ supports wildcards for a source like topics/queues in a Camel route for instance. The documentation shows that there is the possibility to matche recursively a pattern like this: PRICE.STOCK.> Matches…
рüффп
  • 5,172
  • 34
  • 67
  • 113
1
vote
1 answer

ActiveMQ durable topics, messages pre-subscription?

In our business requirement, we need to transmit updates to a couple of thousands of clients, distributed across the country. Thing is, many of these clients connect to us using 3g network, so, many connect/disconnect occurs... The updates we need…
Emilio
  • 75
  • 2
  • 5
1
vote
1 answer

How to resolve exception in thread “main” javax.naming.NameNotFoundException: not bound?

I'm trying to create a jms publisher/subscriber chat application in eclipse. import java.util.Properties; import javax.jms.JMSException; import javax.jms.Message; import javax.jms.MessageListener; import javax.jms.TextMessage; …
Sree Ram
  • 21
  • 2
1
vote
0 answers

JMS publish to topic takes really long time and gets killed by the transaction reaper

So I have this code which publishes to JMS topic: public void notifyCreateListeners(MyCreatedObject payload) { logger.trace("ServiceImpl.notifyCreateListeners"); TopicConnection conn = null; TopicSession session = null; Topic…
1
vote
0 answers

jms topic Connenction factory lookup hangs

I am trying to connect to HornetQ and perform look up on topic connection factory bTopicConnectionFactory hornetQConnectionFactory = (javax.jms.TopicConnectionFactory)ic.lookup("/ConnectionFactory"); but it gives an error…
1
vote
1 answer

Checking JMS type while reading messages asynchronously

I have a Queue in my JMS. While sending messages to the queue I am mentioning the JMStype as 'XYZ'. At the consumer end I have an onMessage listener. What I want to know is the following In onMessage listener how do I check for the JMStype of the…
ashish198511
  • 49
  • 1
  • 5
1
vote
0 answers

Why are topic subscribers on the ActiveMQ admin UI constantly changing?

I have a JMS non-durable topic with multiple subscribers (using ActiveMQ). Each subscriber is a web application deployed on a separate Tomcat instance. When a message arrives, I want it delivered to all subscribers (somewhat of a distributed cache…
machinery
  • 3,793
  • 4
  • 41
  • 52