I am trying a demo app where we send commands over a UI which then goes through spring integration to deliver a command to a device and gives a command status back to UI, this is my first time using Spring Integration and am a bit unsure of the various implementations of channels. MQTT does not provide P2P direct communication, hence what channel should I use for Inbound and Outbound Adapters in my flow, PublishSubscribe or Direct?
Which Spring Integration Channel should be used for MQTT
587 Views Asked by Anadi Misra At
1
There are 1 best solutions below
Related Questions in SPRING-INTEGRATION
- Custom XML Validator Factory
- spring-integration-dsl-groovy-http return null when i use httpGet method
- having spring integration tcpserver to manage clients and send them messages
- Syntax error on tokens, delete these tokens - kafka spring integration demo application
- how to respond from plain tcp client to MessagingTemplate's sendAndReceive
- How to send basicAck to inbound adapter after publisher confirm from outbound adapter
- Maximum simultaneous connection when using ftp adapter
- Spring Integration: SMTP server
- Spring Integration and returning schema validation errors
- Error handling using poller
- spring-integration Aggregator annontation attributes
- spring-integration end point
- Spring integration FileTailingMessageProducer: Remember current line when restarting
- Send Excel or xls file to remote directory using spring integration
- Which Spring Integration Channel should be used for MQTT
Related Questions in MQTT
- I want to dump data which is received by MQTT broker to the sqlite3 db provided by Django/
- I received the last message on MQTTkit ios
- Trouble interfacing/communicating between Arduino Block and Intel Edison
- Which Spring Integration Channel should be used for MQTT
- Implementing an MQTT broker
- gatling stress testing on AWS, threads staying in active
- IOT Mosquitto mqtt how to test on localhost
- How to Produce from MQTT and consume as MQTT and JMS in ActiveMQ
- MQTT topic match evaluation
- Thread issue while subscribing to MQTT in Python using Paho MQTT
- mosquitto_pub: error while loading shared libraries: libmosquitto.so.1: cannot open shared object file: No such file or directory
- node mosca mqtt Browserify I don't get message in the broker
- Node-RED, IOT Foundation Out Node Not Sending Commands
- Socket io + MTQQ
- Is it possible to disconnect old mqtt connection with same client Id in server side if new connection is came with same client Id?
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)
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?
I think you need to know more than "which channel type should I use?".
If you mean you want to send a command to the device and wait for a reply and send that reply to the browser, you need to turn an essentially asynchronous protocol into a synchronous request/reply scenario.
You would somehow need to to suspend the http request thread until the async reply from the device is received, correlate the reply to the request and release the request thread after handing over the reply to it.
You could simply do the correlation in your
@Controllerand send the replies to some other method in the controller, do the correlation there, and release the http thread.This answer has one technique for a similar use case; we are considering adding a component to the framework to make such scenarios simpler to implement.
In any case, you would use
DirectChannels to connect the components.If I have completely misunderstood your question, please clarify.