/*
* Not exactly as elegant as I'd like. Maybe we could have the EmbeddedServer configuration in openejb-core so all the adapters can use it.
* Depending on tomee-embedded is fine in this adapter, but less desirable in the others, as we'd get loads of stuff in the classpath we don't need.
*/
private Configuration convertConfiguration(final EmbeddedTomEEConfiguration tomeeConfiguration) {
final Configuration configuration = new Configuration();
configuration.setDir(tomeeConfiguration.getDir());
configuration.setHttpPort(tomeeConfiguration.getHttpPort());
configuration.setStopPort(tomeeConfiguration.getStopPort());
configuration.setHost(tomeeConfiguration.getHost());
configuration.setServerXml(tomeeConfiguration.getServerXml());
configuration.setProperties(tomeeConfiguration.systemPropertiesAsProperties());
configuration.setQuickSession(tomeeConfiguration.isQuickSession());
configuration.setSsl(tomeeConfiguration.isSsl());
configuration.setHttpsPort(tomeeConfiguration.getHttpsPort());
configuration.setKeystoreFile(tomeeConfiguration.getKeystoreFile());
configuration.setKeystorePass(tomeeConfiguration.getKeystorePass());
configuration.setKeyAlias(tomeeConfiguration.getKeyAlias());
configuration.setKeystoreType(tomeeConfiguration.getKeystoreType());
configuration.setClientAuth(tomeeConfiguration.getClientAuth());
configuration.setKeyAlias(tomeeConfiguration.getKeyAlias());
configuration.setSslProtocol(tomeeConfiguration.getSslProtocol());
return configuration;
}