1- // Copyright (c) 2023, Oracle and/or its affiliates.
1+ // Copyright (c) 2023, 2024, Oracle and/or its affiliates.
22// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
33
44package com .example .checks ;
88import org .springframework .boot .autoconfigure .SpringBootApplication ;
99import org .springframework .boot .autoconfigure .jms .DefaultJmsListenerContainerFactoryConfigurer ;
1010import org .springframework .cloud .client .discovery .EnableDiscoveryClient ;
11- // import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
1211import org .springframework .cloud .openfeign .EnableFeignClients ;
1312import org .springframework .context .annotation .Bean ;
1413import org .springframework .jms .annotation .EnableJms ;
@@ -31,9 +30,10 @@ public static void main(String[] args) {
3130
3231 /**
3332 * Serialize message content to json using TextMessage.
33+ *
3434 * @return TO-DO
3535 */
36- @ Bean
36+ @ Bean
3737 public MessageConverter jacksonJmsMessageConverter () {
3838 MappingJackson2MessageConverter converter = new MappingJackson2MessageConverter ();
3939 converter .setTargetType (MessageType .TEXT );
@@ -43,6 +43,7 @@ public MessageConverter jacksonJmsMessageConverter() {
4343
4444 /**
4545 * TO-DO.
46+ *
4647 * @param connectionFactory TO-DO
4748 * @return TO-DO
4849 */
@@ -56,15 +57,17 @@ public JmsTemplate jmsTemplate(ConnectionFactory connectionFactory) {
5657
5758 /**
5859 * TO-DO.
60+ *
5961 * @param connectionFactory TO-DO
60- * @param configurer TO-DO
62+ * @param configurer TO-DO
6163 * @return TO-DO
6264 */
6365 @ Bean
6466 public JmsListenerContainerFactory <?> factory (ConnectionFactory connectionFactory ,
65- DefaultJmsListenerContainerFactoryConfigurer configurer ) {
67+ DefaultJmsListenerContainerFactoryConfigurer configurer ) {
6668 DefaultJmsListenerContainerFactory factory = new DefaultJmsListenerContainerFactory ();
67- // This provides all boot's default to this factory, including the message converter
69+ // This provides all boot's default to this factory, including the message
70+ // converter
6871 configurer .configure (factory , connectionFactory );
6972 // You could still override some of Boot's default if necessary.
7073 return factory ;
0 commit comments