How do I add SSL configuration to JBOSS standalone file for a Spring Boot application? - spring-boot

We have a Spring Boot application that we need to deploy to a JBOSS server. We have a requirement to keep all configuration in the JBOSS standalone.xml file. I need to get SSL set up on the Spring Boot application, but every guide I find shows how to add it to application.properties. How can I tell the Spring Boot application to use the SSL configuration from the JBOSS standalone.xml file?

Related

Do i need c3p0 for Springboot 2.x?

I am migrating a existing Spring application (non Spring boot) to Springboot 2.x. I see there is a c3p0.properties file with following configuration: com.mchange.v2.c3p0.management.ExcludeIdentityToken=true. What does this does exactly? Do I need this if I am using Springboot 2.x? Or do I need to setup something else configuration in my application.properties file?
Thank you for help.
Spring Boot 2.x use HikariCp as a default JDBC connection pool. It is faster then c3p0.
You should use Hikari.
You can read about it compared with c2p0:
Hikari vs other CPs
Spring Boot will autoconfig it to you, but you can customize it (for example in application.properties)
For the com.mchange.v2.c3p0.management.ExcludeIdentityToken visit the documentation page's Jmx configuration section
JMX configuration

Enbedded Tomcat configuration in Spring boot

I was going through the tomcat configuration for embedded tomcat in spring boot doc, I was not able to get prestartminSpareThreads property for embedded tomcat. However this prestartminSpareThreads is available in tomcat documentation. Could you please help me with setting up this property in embedded tomcat?

How to deploy SpringBoot and Keycloak war on tomcat 9

I want to use SpringBoot 2.1.4.RELEASE, Keycloak 6.0.1, java 8 and deploy the war in an external tomcat 9 that also has other applications.
Keycloak documentation mentions -
https://github.com/keycloak/keycloak-documentation/blob/master/securing_apps/topics/oidc/java/spring-boot-adapter.adoc
'If you plan to deploy your Spring Application as a WAR then you should not use the Spring Boot Adapter and use the dedicated adapter for the application server or servlet container you are using. Your Spring Boot should also contain a web.xml file.'
Keycloak does not have tomcat 9 adapter.
is there any way to deploy the war on tomcat 9 ?
in my app, I don't have web.xml. Should I create an empty web.xml ?

Spring Boot Jetty with SSL ,Acceptor and Selector configuration not working

Without SSL the following configurations to configure acceptors and selectors work fine.
server.jetty.acceptors=4
server.jetty.selectors=32
But when I enable SSL , then this configuration for Jetty in Spring Boot doesnt work. Tried using
jetty.ssl.acceptors=4
jetty.ssl.selectors=32
I am using Spring Boot with Embedded Jetty. Everytime it runs it configures 1 Acceptor in SSL mode. Any help is appreciated.

Running multiple spring boot web app on tomcat

I am trying to deploy multiple spring boot web app on tomcat. All have the same application.properties.How can I split the configuration files for different app running on tomcat.
Spring Boot doesn't require an external Tomcat, because it contains its own embedded Tomcat. So you can run all of your application in it's own Tomcat on the same machine. All you have to do is to define different ports for your applications via server.port property.

Resources