I'm writing a Java JMS application that is responsible for comunication between cluster nodes. The messaging is done by publish\subscribe using Topic. The TopicSubscriber is created by calling TopicSession.createSubscriber(topic, null, true), meaning that it is not a durable subscriber. Now I'm implementing a "release" method that should unsubscribe the Subscriber (and then close the connection, etc). I saw that TopicSession.unsubscribe(String name) is relevant only for durable subscribers, so how do I unsubscribe a non-durable one? Is it necessary?
Should I unsubscribe a non-durable JMS Topic subscriber?
2.4k views Asked by user1124556 At
1
There are 1 answers
Related Questions in JMS
- Using selector with JMSMessageID always returns null
- Put JMS message properties in IBM MQ queue and access from other JMS client which run on Websphere liberty
- How to browse ActiveMQ queue using JMS selector when number of messages in queue is > 100K
- How to tell if a JMS Session is async
- ActiveMQ Artemis - Get current redelivery count for scheduled messages
- Valid value usage in JMeter's JMS Subscriber 'JMS Selector' property - in order to consume messages with a dynamically changing JMSCorrelationID
- Setting the Maximum Message Size for JMS Destinations in Payara
- ActiveMQ Artemis HA split-brain issue on OOME crash
- JMeter JMS Publisher: Getting the JMSMessageId (generated at runtime) in the header and using it as the value of another JMS Property before publish
- ActiveMQ Artemis: Muticast address deliver messages inconsistently
- ActiveMQ Artemis Consumer Connection Distribution
- ActiveMQ Artemis server produces lots of AMQ224016 error in logs after migration to Jakarta API client
- How to create a JMS queue with topic in Docker Compose?
- jakarta.jms.JMSException: Failed to build body from content. Serializable class not available to broker
- How do i stop @JmsListener from listening a queue using JmsListenerEndpointRegistry in spring boot?
Related Questions in SUBSCRIBER
- Preventing Merge and Branch your own code on TFS
- Is there way to calculate or query 'finish_lsn' of failing logical subscription in Postgres
- ROS2 cannot import name 'iou3d_nms_cuda'
- Issue to import python libraries/moduls for a ROS2 subscriber
- Callback on calling unsubscribe from subscription RxJava
- subscriber doesn't receive the topic in case of starting by "ros2 launch"
- Why the UIView extension doesn't work using combine?
- Use ros subscriber to modify class attribute
- How can I call flow method from Java code
- "Empty Subscriber" in Swift Combine?
- No 'ack' header in MESSAGE frame
- how to detect an order placed with shopware 6.5 (event subscribers) and also get its present state
- How can I create a JMS topic subscriber for a cluster with multiple server instances in Weblogic?
- NestJS Typeorm Subscriber afterUpdate event not returning updated columns
- Setting (and getting) a Symfony (Shopware 6) Subscriber class array from a function
Related Questions in UNSUBSCRIBE
- how to fix TypeError: Cannot read properties of null (reading 'click') at iife (<anonymous>:25:58)
- In Angular v16 unsubscribe from an Obserable using takeUntillDestroy or toSignal what should I do
- One-click unsubscribe is not visible on some emails with Gmail
- Getting response from the behaviourSubject everytime even after unsubscribing
- How to populate email on unsubscribe page
- Strategies for adding an unsubscribe link to an email
- What Shoul I explicity unsubscribe on this component?
- Is there a way to customize/move the "Unsubscribe" message and link of an Amazon SNS message to the bottom of the page?
- Cancel subscription through VISA API
- Why does my Php Unsubscribe form return a 500 error?
- Streaming of DolphinDB: Cancel all subscriptions on the current node
- when to unsubscribe from a table (supabase)
- Email addresses automatically getting added to Global Unsubscribe after API send
- How can I configure the SendGrid unsubscribe link to not add the email to any unsubscribe lists?
- Why does Entity Framework show that item is already tracked, despite of fact that it is not tracked?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
No, you don't need to issue
TopicSession.unsubscribe()for non-durable subscription. Closing the consumer will remove the subscription from JMS provider. You can also doSession.Close()orConnection.Close()to remove the subscription from JMS provider.In your
Releasemethod just close the subscriber or session or connection.Unsubscribe is required only for durable subscriptions.