Rabbitmq , send message to appropriate consumer - java

I have three applications,
java rest api
android application
rabbitmq service
When android application is turn on it listens some queue then application can make http request and java rest api service put some message to this queue.
The question is, how to send message from rest api service to only one user, because all users are listening the same queue?

Related

Connecting to Remote control unit WebSocket

I have a java module in my android 5.1 application that has to communicate with a remote control unit device which makes available only a WebSocket interface and a "subscription" mechanism to receive updates on the current state of some sensors physically connected to the control unit.
What I need to do is:
request a Json web token
connect to the control unit websocket with the retrieved token
once connected, make a subscription request for sensors's status
waiting for updates from control unit (json response messages)
update my android app status based on response received
I've looked for libraries to use and I found Jetty and JSR 356.
My Java module is written in Java SE 8.
What kind of implementation is possible to use ?
I need to implement a ServerHandler to manage the session status and possibile reconnection actions or a WebSocket listener only to receive updates ?
Any code sample reference or tutorial are well accepted.

Contain webhook in my client

I have a java client that reads and writes to a local postegresql database. The application receives SMS messages from Twilio through a webhook. Right now I use spark in the client and utilize ngrok to create a URL of localhost that twilio can use as the webhook. How can I scale this to production? I would like to keep the webhook as part of the client, so I can receive messages in real time instead of periodically requesting the messages from a web server.
Is this possible?

How does iOS app get messages from JMS queue

I have a mobile app with a backend that will connect to a JMS server. The user of the app will make a search, this search will then be sent through the JMS API to our data provider. The results then need to be sent back to the app. How does the mobile app interface with the JMS API? If it makes any difference, the JMS API must be hosted by Solace, no other platforms like Glassfish are available per requirements of our data provider.

Running a task asynchronously on Weblogic

I'm developing a web application and one of it's features is to send email notifications once the form is submitted. I wonder what's the easiest/best way of sending them asynchronously. I'd like to get the response from the server instantly and invoke an email sending job in the background not waiting for it to finish.
Thanks
You can use JMS to send mails asynchronously.
Here is a question about this befure
You can look at thtis link fopr simple JMS Queue implemantation

Use XMPP to implement a push notification infrastructure

I am currently working on a project which requires a server to request data from the devices which are currently connected to the server. Meaning, first the server finds out which devices are connected to the server and then sends an application specific message to the client device which should wake certain functionality present on the client.
I was looking into XMPP service which looked promising since it works as a PUSH notification. The in XMPP can be used to check if the device is currently connected and has subscribed to the server. Since every android user has a gmail account, I was thinking of using the gmail xmpp service to connect /subscribe to the server. Then send specific message to the client, i.e x...#gmail.com.
However if a message is sent this way the client app gets the message as well as the native gtalk client. So how do I go about intercepting this so that it doesn't show up on the gtalk client but my app still gets it ?
Use the full JID when sending the message. The send to multiple clients should only occur when the bare JID is used.
Full JID -> xyz#gmail.com/device
Bare JID -> xyz#gmail.com

Categories