Skip to content

Commit

Permalink
[PRMT-4677] - Defined ActiveMqConnectionFactory trusted packages with…
Browse files Browse the repository at this point in the history
…in ActiveMQConfig.java
  • Loading branch information
MohammadIqbalAD-NHS committed Mar 25, 2024
1 parent 758912c commit 74e8210
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
import org.springframework.context.annotation.Configuration;
import org.springframework.jms.config.DefaultJmsListenerContainerFactory;

import java.util.List;

@Configuration
public class ActiveMQConfig {

Expand Down Expand Up @@ -41,6 +43,7 @@ public DefaultJmsListenerContainerFactory myFactory(ConnectionFactory connection
@Bean
public ConnectionFactory connectionFactory() {
ActiveMQConnectionFactory activeMQConnectionFactory = new ActiveMQConnectionFactory();
activeMQConnectionFactory.setTrustedPackages(List.of("uk.nhs.prm.repo.ehrtransferservice"));
activeMQConnectionFactory.setBrokerURL(failoverUrl());
activeMQConnectionFactory.setPassword(brokerPassword);
activeMQConnectionFactory.setUserName(brokerUsername);
Expand Down

0 comments on commit 74e8210

Please sign in to comment.