esanchezros / quickfixj-spring-boot-starter-examples

QuickFixJ Spring Boot Starter Examples
Other
65 stars 39 forks source link

Example using quickfixj.client.configString #19

Closed ggershaw closed 1 year ago

ggershaw commented 1 year ago

Hi,

I've tried several approaches to add the default/session level properties as a value to the above mentioned property. When I attempt to run in the latest Boot 2.x version, boot dies with an error code and no explanation as to what occurred. Maybe an exception is being swallowed?

I've looked through your examples repo and found all the examples use a .cfg file to hold the default and session level settings. Would you please create an example using configString.

esanchezros commented 1 year ago

https://github.com/esanchezros/quickfixj-spring-boot-starter-examples/tree/master/simple-client-and-server-config-string

ggershaw commented 1 year ago

Hello,

Almost to New Years!! I downgraded to the latest 2.x boot. I see FIX messages in the logs of both the client and the server. This is great. I am hitting what I believe is the final problem. For some reason, the server is picking up the client's cfg file. I have looked at all your examples and believe I have made a correct yml file. I've forced pushed to the branch. If you have time, can you try and run BootifiedServer. You'll see in the log output that its picking up the client.cfg

[main] INFO org.gershaw.quickfixj.springboot.server.BootifiedServer - Starting BootifiedServer using Java 19.0.1 on DESKTOP-NNERO46 with PID 3788 (C:\Users\ggers\IdeaProjects\Examples\spring-boot-starter\target\classes started by ggers in C:\Users\ggers\IdeaProjects\Examples) [main] INFO org.gershaw.quickfixj.springboot.server.BootifiedServer - No active profile set, falling back to 1 default profile: "default" [main] INFO io.allune.quickfixj.spring.boot.starter.connection.SessionSettingsLocator - Loading settings from 'classpath:/quickfixj-client.cfg'

Thanks for your time and help! When I publish this example on LinkedIn would you be okay with me giving you a shout out. I would also like to point to your repo on my readme with your permission

Best


From: Eduardo Sanchez-Ros @.> Sent: Thursday, December 29, 2022 8:20 AM To: esanchezros/quickfixj-spring-boot-starter-examples @.> Cc: Raleigh Fix Fan @.>; Author @.> Subject: Re: [esanchezros/quickfixj-spring-boot-starter-examples] Example using quickfixj.client.configString (Issue #19)

https://github.com/esanchezros/quickfixj-spring-boot-starter-examples/tree/master/simple-client-and-server-config-stringhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fesanchezros%2Fquickfixj-spring-boot-starter-examples%2Ftree%2Fmaster%2Fsimple-client-and-server-config-string&data=05%7C01%7C%7Cf19d1b47480a4290356d08dae99f70e6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638079168250243658%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=jlbgnLSrPp1UEv5n2i8i5101X%2B3JbrhvYZkH101xxsk%3D&reserved=0

— Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fesanchezros%2Fquickfixj-spring-boot-starter-examples%2Fissues%2F19%23issuecomment-1367314850&data=05%7C01%7C%7Cf19d1b47480a4290356d08dae99f70e6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638079168250243658%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=NC4ncTgvJpPKjjOQeViFfq1%2FTFb%2FvbuyOZlDbn9HYwo%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAGD4VG4BSOPX4LGPAF7RBTTWPWFZHANCNFSM6AAAAAATMCWB5M&data=05%7C01%7C%7Cf19d1b47480a4290356d08dae99f70e6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638079168250243658%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=B9dOizBuHz%2BWRae4ZSGh2uwTmA7EYDrKwwXBZxue10c%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>

esanchezros commented 1 year ago

Hi,

Seems like a copy-paste error. In BootifiedServer you're loading BootifiedClient :smiley: Once changed it loads quickfixj-server.cfg