Skip to content

Commit

Permalink
Merge pull request #242 from nhsconnect/PRMT-4677
Browse files Browse the repository at this point in the history
[PRMT-4677] - Defined ActiveMqConnectionFactory trusted packages with…
  • Loading branch information
MohammadIqbalAD-NHS authored Mar 25, 2024
2 parents 758912c + b0cc802 commit 2bd4d86
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.Collections;

@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(Collections.singletonList("uk.nhs.prm.repo.ehrtransferservice"));
activeMQConnectionFactory.setBrokerURL(failoverUrl());
activeMQConnectionFactory.setPassword(brokerPassword);
activeMQConnectionFactory.setUserName(brokerUsername);
Expand Down

0 comments on commit 2bd4d86

Please sign in to comment.