Giter Club home page Giter Club logo

Comments (1)

nikipore avatar nikipore commented on September 28, 2024

The Artemis frame contains two Stomp protocol headers I wouldn't expect. First, it loops through the receipt header. This shouldn't be a problem, though. Second, the subscription header is added although no id header was given (which is optional in Stomp 1.0). The protocol specification says:

You can also specify an id header which can then later on be used to UNSUBSCRIBE from the specific subscription as you may end up with overlapping subscriptions using selectors with the same destination. If an id header is supplied then Stomp brokers should append a subscription header to any MESSAGE commands which are sent to the client so that the client knows which subscription the message relates to.

To sum up, you can/should do either of the following:

  1. File a bug to Artemis because their implementation of STOMP 1.0 isn't correct and wait until it's fixed.
  2. Add an explicit id(properly coded, that would be StompSpec.ID_HEADER) header to work around the Artemis bug.

Probably you shouldn't use Stomp 1.0 in the first place because it's an under-specified protocol (no NACK frames, no header escaping, no heartbeating). Actually, I recommend to start new projects on Stomp 1.2 or (if your broker doesn't support it) Stomp 1.1.

from stompest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.