activemq - Communication between two java classes using Spring -


i have 2 java classes implements runnable within same application, let's , b classes.

these 2 classes share blockingqueue pass data. class sends data class b through blockingqueue. class b takes data , process it. trying when conditions happen in class b result of process data, sends messages class a, , class prints these messages.

so having @ spring messaging using apache activemq, seems broker must started in order communication works using "activemq start" command. there possibility without having broker started?

what best option this? using spring framework can done using kind of approach in spring? or possiblity using spring through apache activemq?

take looks @ spring integration; components communicate using messages.

you can use entirely in-memory configuration or provide persistence via broker such activemq.

the components not concerned that; send/receive messages.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -