0

I want to specify the location and name of the quickfix/j configuration file in the springboot starter project.

quickfixj:
  server:
    config: classpath:quickfixj-server.cfg
    auto-startup: true
    force-disconnect: false
    phase: 0
    jmx-enabled: true
    concurrent:
      enabled: true
      useDefaultExecutorFactory: true
      queueCapacity: Integer.MAX_VALUE
      corePoolSize: 8
      maxPoolSize: Integer.MAX_VALUE
      allowCoreThreadTimeOut: true
      keepAliveSeconds: 60
      waitForTasksToCompleteOnShutdown: false
      awaitTerminationMillis: 0
      threadNamePrefix: "QuickFixJ Spring Boot Starter thread-"
    message-store-factory: memory
    log-factory: screen

I am not sure in which file do I need to write this. I tried writing it in application.properties but it seems like even if I change the location of the config attribute, the program is still reading it from the default location "classpath:quickfixj-server.cfg".By the way I have the config file with the name "quickfixj-server.cfg" in the resources folder, but I want to load my own cofiguration file with a new name. Thank You

  • If you want to load your own configuration file, just change the value in application.properties. For example: `config: classpath:your-quickfixj-config.cfg` or `config: file:///path-to-config/your-quickfixj-config.cfg`. Please refer to the documentation for more details https://github.com/esanchezros/quickfixj-spring-boot-starter#configuring-the-quickfixj-server – Eduardo Sanchez-Ros Feb 28 '23 at 10:53

0 Answers0