Hello,
since I receive no answers it seems that there is a problem with my question. Could you please give me feedback at least, if so, such that I can ask better?
No problem at all, but especially when it’s not office hours, it could take a while.
You can see most of the properties for configuring the axon Server connection here. For the servers this is axon.axonserver.servers which is a comma separated list of the servers, where the port will default to 8124.
The problem is not how to configure the server. There is more than enough material I think. But I do really think there is way too few information on how to connect to the server.
Too bad I received no replies. Please create an entry in the docs or in the dev blog or something because this can really be frustrating to search and always only get information on how to configurate the server, not on how to configure the application in order to connect to the server.
I’m not sure I properly understand the problem you have. If you are using Spring Boot with auto configuration, which you seem to be doing, you just optionally need to set some properties, and the rest will be auto wired for you.
The property and the link I shared was for the clients, not for configuring the server. I guess there might be more documentation on how to use Axon Server, when you don’t use Spring Boot through.
I am sorry that I have obviously misread your message. In what file do I put this list, could you tell me that?
Can you explain to a greenhorn what you mean by
The property and the link I shared was for the clients, not for configuring the server. I guess there might be more documentation on how to use Axon Server, when you don’t use Spring Boot through
Where should I put the values for the prefix axon.axonserver.servers? In application.properties, application.yml or whole another file? Or do you mean as argument to AxonConfiguration#setServer(String routingServers) ?
I’m not sure I properly understand the problem you have.
Well, sometimes the very basics are harder problems than many advanced topics as they are just premised and hence nowhere really described. I can imagine that basics like this are more or less self-evident to you. To me they are not yet.
It mostly depends on your setup where to put them. For example you could use a profile to use with docker, in which case they should be in a application-docker.properties or the Yaml variant. Up for personal preference.
It’s very much true there might be some things lacking, which might be obvious for experienced developers.
I was at your place a couple of months ago… So in order to setup the connection to your axon docker server, I have a question for you. Are you using Spring Boot? If you are, your server configuration will be done mostly in application.yml.