Skip to content

Instantly share code, notes, and snippets.

@JorisNienkemper
Last active November 27, 2020 16:41
Show Gist options
  • Save JorisNienkemper/93ff358355378c47c434676b5e9eeca5 to your computer and use it in GitHub Desktop.
Save JorisNienkemper/93ff358355378c47c434676b5e9eeca5 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<server description="new server">
<!-- Enable features -->
<featureManager>
<feature>cdi-1.2</feature>
<feature>jaxrs-2.0</feature>
<feature>jpa-2.1</feature>
<feature>json-1.0</feature>
<feature>jndi-1.0</feature>
<feature>ejbLite-3.2</feature>
</featureManager>
<!-- To access this server from a remote client add a host attribute to the following element, e.g. host="*" -->
<httpEndpoint id="defaultHttpEndpoint"
httpPort="9080"
httpsPort="9443"/>
<!-- Automatically expand WAR files and EAR files -->
<applicationManager autoExpand="true"/>
<!-- Default SSL configuration enables trust for default certificates from the Java runtime -->
<ssl id="defaultSSLConfig" trustDefaultCerts="true"/>
<dataSource id="DefaultDataSource" jndiName="jdbc/mySQL">
<jdbcDriver libraryRef="MySQLLib"/>
<properties databaseName="cursistdb?serverTimezone=UTC" serverName="localhost" portNumber="3306"
user="changeusername" password="changepassword"/>
</dataSource>
<library id="MySQLLib">
<file name="/changetoyourpathtolocalmavenrepository/.m2/repository/mysql/mysql-connector-java/8.0.22/mysql-connector-java-8.0.22.jar"/>
</library>
</server>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment