João Antônio Duarte replied to Divad's topic in Cross-platform
I run my web services as self-contained services, so I use Indy as the HTTP server. However, all my webservices are behind a reverse proxy (Nginx), so I can set up load balancing for endpoints with a large flow of requests.
João Antônio Duarte replied to Divad's topic in Cross-platform
Perhaps the problem occurs because you are deploying your application as an Apache module. In my case I don't use apache, I deploy it as a self-contained application running as a Linux service.
The way an Apache module is started is different from a self-contained application. It may be that this is causing a failure in the Spring container.
João Antônio Duarte replied to Divad's topic in Cross-platform
See this example project: https://github.com/joaoduarte19/DMVC-with-Spring4D-DI
I use Ubuntu 20.04 and 22.04 to deploy in production. For testing and debugging I use Windows WSL.
By default DMVC registers a serializer only for the application/json content-type.
But you can define a serializer for other types. In your WebModule, after creating the TMVCEngine add the following code:
FEngine.Serializers.Add('application/sim+json', TMVCJSONDataObjectsSerializer.Create);