{"id":22869035,"url":"https://github.com/jbilander/mm-api","last_synced_at":"2025-08-13T21:41:53.640Z","repository":{"id":137347275,"uuid":"126461753","full_name":"jbilander/mm-api","owner":"jbilander","description":"A RESTful web service with Jersey/JAX-RS on Java 9 packaged and deployed as a webapp (war-file) in Tomcat 9.","archived":false,"fork":false,"pushed_at":"2018-04-10T05:40:32.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T11:14:01.735Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jbilander.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-23T09:20:20.000Z","updated_at":"2019-01-28T12:53:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"1be2ed3d-fcdc-45fe-9135-d82eee546bf0","html_url":"https://github.com/jbilander/mm-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbilander%2Fmm-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbilander%2Fmm-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbilander%2Fmm-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbilander%2Fmm-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jbilander","download_url":"https://codeload.github.com/jbilander/mm-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbilander%2Fmm-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259172111,"owners_count":22816514,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-13T12:45:00.210Z","updated_at":"2025-06-10T23:39:23.724Z","avatar_url":"https://github.com/jbilander.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch4\u003e Technologies used in this project: \u003c/h4\u003e\n\u003cbr /\u003e\n\u003cul\u003e\n    \u003cli\u003eJersey 2.26/ JAX-RS 2.1\u003c/li\u003e\n    \u003cli\u003eJson/Jackson 2.26 (annotations)\u003c/li\u003e\n    \u003cli\u003eJava SDK 9\u003c/li\u003e\n    \u003cli\u003eTomcat 9\u003c/li\u003e\n    \u003cli\u003eJNDI DataSource (Commons DBCP 2 Connection Pool in Tomcat 9)\u003c/li\u003e\n    \u003cli\u003eMariaDB Connector/J 2.2.3 jdbc-driver for MySQL\u003c/li\u003e\n    \u003cli\u003eFast Socket-connection to MySQL (Unix-socket/Windows-Pipe), Requires App and Db on same machine!\u003c/li\u003e\n    \u003cli\u003ePure JDBC with Prepared Statements and transaction-handling/rollbacks\u003c/li\u003e\n    \u003cli\u003eSimple logging with java.util.logging\u003c/li\u003e\n    \u003cli\u003eMaven 3\u003c/li\u003e\n    \u003cli\u003ePackaged with Maven 3 \"package\"-feature as a war-file\u003c/li\u003e\n\u003c/ul\u003e\n\u003cbr /\u003e\u003cbr /\u003e\nCaveats Java 9 SDK: \u003cbr /\u003e\u003cbr /\u003e\n\nThe java.xml.bind module is deprecated for removal in Java 9 (along with the other modules shared with Java EE) so expect these modules to not be included in the JDK some day.\nTo make the JAXB APIs available at runtime, specify the following VM option:\n\nWindows, add this to bin/catalina.bat:\u003cbr /\u003e\u003cbr /\u003e\n\u003cpre\u003e\n\nset JDK_JAVA_OPTIONS=--add-modules java.xml.bind\n\u003c/pre\u003e\u003cbr /\u003e\nLinux, add this to bin/catalina.sh:\u003cbr /\u003e\u003cbr /\u003e\n\u003cpre\u003e\n\nexport JDK_JAVA_OPTIONS=--add-modules java.xml.bind\n\u003c/pre\u003e\n\u003cbr /\u003e\n\u003cbr /\u003e\n\nDataSource config added in Tomcats conf/context.xml-file: \n\nWindows:\u003cbr /\u003e\u003cbr /\u003e\n\u003cpre\u003e\n\u0026lt;Context\u0026gt;\n    \u0026lt;Resource name=\"jdbc/MyAtgDS\" auth=\"Container\" type=\"javax.sql.DataSource\"\n               maxTotal=\"100\" maxIdle=\"30\" maxWaitMillis=\"10000\" validationQuery=\"select 1\"\n               username=\"my_user\" password=\"my_password\" driverClassName=\"org.mariadb.jdbc.Driver\"\n               url=\"jdbc:mariadb://localhost/myatg?autoReconnect=true\u0026amp;pipe=C:\\tmp\\mysql.sock\"/\u0026gt;\n\n\u0026lt;/Context\u0026gt;\n\u003c/pre\u003e\nLinux:\u003cbr /\u003e\u003cbr /\u003e\n\u003cpre\u003e\n\u0026lt;Context\u0026gt;\n    \u0026lt;Resource name=\"jdbc/MyAtgDS\" auth=\"Container\" type=\"javax.sql.DataSource\"\n               maxTotal=\"100\" maxIdle=\"30\" maxWaitMillis=\"10000\" validationQuery=\"select 1\"\n               username=\"my_user\" password=\"my_password\" driverClassName=\"org.mariadb.jdbc.Driver\"\n               url=\"jdbc:mariadb://localhost/myatg?autoReconnect=true\u0026amp;localSocket=/var/run/mysqld/mysqld.sock\"/\u0026gt;\n\u0026lt;/Context\u0026gt;\n\u003c/pre\u003e\n\u003cbr /\u003e\nConnection to database in code through DataSource:\n\u003cbr /\u003e\u003cbr /\u003e\u003cbr /\u003e\n\u003cpre\u003e\nContext initContext = new InitialContext();\nContext envContext  = (Context)initContext.lookup(\"java:/comp/env\");\nDataSource ds = (DataSource)envContext.lookup(\"jdbc/MyAtgDS\");\nConnection conn = ds.getConnection();\n\u003c/pre\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbilander%2Fmm-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjbilander%2Fmm-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbilander%2Fmm-api/lists"}