Skip to content

Instantly share code, notes, and snippets.

View objectorientedperson's full-sized avatar

Ali Yucel Akgul objectorientedperson

  • MyRegistry/Clipix
  • New Jersey
View GitHub Profile
@objectorientedperson
objectorientedperson / util_datasource.kt
Created September 20, 2019 13:30
Eclipselink HikariCP Datasource. Creates 'EntityManagerFactory' instance.
object Util_DataSource {
private fun getDataSource(): DataSource {
val config = HikariConfig().apply {
jdbcUrl = "jdbc:mysql://localhost:3306/{DB_NAME}?autoReconnect=true&useUnicode=true"
username = "root"
password = "root_pass"
driverClassName = "com.mysql.cj.jdbc.Driver"
addDataSourceProperty("cachePrepStmts", "true")
addDataSourceProperty("prepStmtCacheSize", "250")
<!DOCTYPE html>
<html ng-app="projectRtc">
<head>
<title><%= title %></title>
<base href="/" />
<link rel='stylesheet' href='/stylesheets/style.css' />
<script type="text/javascript" src="/socket.io/socket.io.js"></script>
<script type="text/javascript" src="javascripts/adapter.js"></script>
<script type="text/javascript" src="javascripts/rtcClient.js"></script>