4
8
|
For the following scenario I am looking for your advices and tips on best practices:
In a distributed (mainly Java-based) system with:
How would one best apply the JMS support provided by the Spring Integration framework to decouple the clients from the worker nodes? When reading through the reference documentation and some very first experiments it looks like the configuration of an JMS inbound adapter inherently require to use a subscriber, which in a decoupled scenario does not exist.
Small side note: communication should happen via JMS text messages (using a JSON data structure for future extensibility).
| ||
add comment |
1
|
This doesn't really answer your question, but make sure you look into Apache Camel for connecting your different components. I found it extremely useful for connecting a JMS queue up to an existing web service and plan to use it for other components also.
An example that monitors an ActiveMQ queue for messages, transforms them, and posts them to a web service:
That's all that's necessary in our Spring application to fire up Camel and start processing messages.
| ||||||||||||
|
3
|
Here is the Spring Integration I was coming up with today, if you find things which could be improved please follow up.
On the client side the messages can be send out and received through a SimpleMessagingGateway:
And the configuration on the processing node side looks like (please see the comments inline for more explanation of the Spring Integration elements):
| ||
add comment |
1
|
Are you asking if Spring Integration can be used to implement a protocol bridge? Then the answer is yes, and does so quite simply.
| ||||||||||||
|