We are using spring integration/spring batch job to run jobs within multiple jboss nodes connected to the common ActiveMQ queue. We have configured auto startup as false for inbound gateway listening to the queue/channel. Problem with auto-start as true is that if inbound gateway has more concurrent consumers property, then those many number of consumer threads would be active in all nodes started during server startup even through frequency of the job requiring these consumer threads is very rare. In this scenario, spring batch job gets triggered in one of the 4 nodes. We can make use of control bus to start inbound gateway component when the job starts, it works for the same JVM. But in the worker nodes ( running in different JVM), how do we send the control bus message to start the inbound gateway component so that they start consuming the message put by the triggering job ?
How to use Control bus in Spring integration to start/stop integration components from another JVM
176 Views Asked by rockycres At
1
There are 1 best solutions below
Related Questions in SPRING-BATCH
- How to customize the Spring Batch default configuration without breaking autoconfiguration
- Is there any catch in Reading and Updating to the same Oracle table in Single Threaded Spring batch job?
- Starting first job causes - Dispatcher has no subscribers for channel exception when declared multiple DirectChannels
- Looping Over a Group of Steps in Spring Batch
- Already value [datasource.ConnectionHolder@6b144bd8] for key [datasource.DriverManagerDataSource@56739ee9] bound to thread [main]
- How to Use ControllerAdvice for Exception Handling in Spring Batch Application?
- Writing in multiple related tables in spring batch
- Restarting a FAILED job is not processing the failed chunk data again : Continuation
- Spring Batch Not persisting Data Properly in MYSQL Database
- Strange Spring Batch exception, something I did wrong?
- Parameter 0 of method jobBean in com.nextuple.BatchProcessing.config.BatchConfig required a bean named 'dataSource' that could not be found
- is spring batch supports parquet file reading and writing
- Spring Batch 5 - Don't want it to automatically create tables in database
- Transaction flow for distributed transaction in Spring Batch
- How to solve JobBuilder deprecated in SpringBatch 5.1.1
Related Questions in SPRING-INTEGRATION
- Starting first job causes - Dispatcher has no subscribers for channel exception when declared multiple DirectChannels
- Azure Service Bus With Spring Integration Executor Channel Error Handling
- How does taskExecutor with Queue size set work with AcceptOnceFileListFilter filter for file input adapter
- Spring Integration JMS MessageDrivenChannelAdapter connection status
- Spring integration rotating server advice with SFTP outbound gateway
- Spring integration sftp new version upgrade issues
- Spring integration- Add check not to process inbound files older than 2 days and empty file
- JmsOutboundGateway retries to connect to mq -> GatewayReplyListenerContainer refreshConnectionUntilSuccessful (maxAttempts=unlimited)
- RequestHandlerCircuitBreakerAdvice doesn't work if somethings fail in descending Service activator
- Spring Integration and Spring Batch transaction manager collision
- Taking too long to send first message to JMS topic from Spring Integration
- Unable to process failed jobs in spring batch when using remote chunking
- Spring Integration Java DSL with Kafka
- Spring Integration nullChannel reference in Non-DSL
- Spring Integration 6.x http outbound gateway http uri variable expression not evaluating application properties
Related Questions in SPRING-INTEGRATION-AMQP
- Taking too long to send first message to JMS topic from Spring Integration
- Not able to establish a connection between Spring Integration with ActiveMQ using AMQP
- How to create backpressure mitigation using rabbitmq as buffer in spring integration?
- Spring Integration - wait for all data on data channel after message received on completion channel
- spring integration: process input messages in parallel by partition key
- Observing memory leak in CachingSessionFactory ( DefaultSftpSessionFactory)
- Spring integration amqp adding headers repetitively
- How to use Control bus in Spring integration to start/stop integration components from another JVM
- Async RabbitMQ communcation using Spring Integration
- Spring Integration - Control retry logic in http outboundAdapter
- Detect Exception on RabbitMq connection
- Log XML payload when MarshallingMessageConverter is used in Spring Integration's Amqp inboundAdapter
- Slow down inbound channel
- Spring Batch Integration consuming RabbitMq Message
- spring integeration amqp when convert message from amqp occur err, it does not go retry
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?
The Control Bus is just an endpoint to consume messages from it input channel. The channel could be an in-memory one, or distributed, based on some shared store. For example, the mention ActiveMQ is just a JMS vendor, so you can use a JMS Inbound Endpoint to consume command messages from ActiveMQ topic and produce it to that Control Bus input channel: https://docs.spring.io/spring-integration/docs/current/reference/html/jms.html#jms-message-driven-channel-adapter