{"id":16991934,"url":"https://github.com/ppodgorsek/sap-commerce-utils","last_synced_at":"2026-02-03T12:03:16.874Z","repository":{"id":86100656,"uuid":"195826700","full_name":"ppodgorsek/sap-commerce-utils","owner":"ppodgorsek","description":"A set of extensions to improve SAP Commerce (formely SAP Hybris Commerce)","archived":false,"fork":false,"pushed_at":"2024-02-07T16:39:28.000Z","size":203,"stargazers_count":6,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T04:27:27.188Z","etag":null,"topics":["hybris","sap","sap-commerce","sap-hybris","utilities"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ppodgorsek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":"ppodgorsek","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2019-07-08T14:16:41.000Z","updated_at":"2024-09-05T09:37:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"272d44f9-51df-42d2-b320-3bad2c995361","html_url":"https://github.com/ppodgorsek/sap-commerce-utils","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ppodgorsek/sap-commerce-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppodgorsek%2Fsap-commerce-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppodgorsek%2Fsap-commerce-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppodgorsek%2Fsap-commerce-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppodgorsek%2Fsap-commerce-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ppodgorsek","download_url":"https://codeload.github.com/ppodgorsek/sap-commerce-utils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppodgorsek%2Fsap-commerce-utils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29045440,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T10:09:22.136Z","status":"ssl_error","status_checked_at":"2026-02-03T10:09:16.814Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["hybris","sap","sap-commerce","sap-hybris","utilities"],"created_at":"2024-10-14T03:27:48.880Z","updated_at":"2026-02-03T12:03:15.074Z","avatar_url":"https://github.com/ppodgorsek.png","language":null,"funding_links":["https://github.com/sponsors/ppodgorsek"],"categories":[],"sub_categories":[],"readme":"\u003e [!CAUTION]  \n\u003e This repository is now archived, as I don't have access to the latest releases of SAP Commerce anymore.\n\n# SAP Commerce Utils\n\nA set of extensions to improve SAP Commerce, formely known as SAP Hybris Commerce.\n\n**Disclaimer: this project is not affiliated, associated, authorized, endorsed by, or in any way officially connected with SAP, or any of its subsidiaries or its affiliates.**\n\nThis project aims to improve the following features:\n\n  * Datasource connection using [HikariCP](https://github.com/brettwooldridge/HikariCP)\n\n## HikariCP datasource\n\nThe default Commerce datasource can be replaced by HikariCP, which is more performant.\n\n### Installing the library\n\nAs the datasource will be defined directly in Tomcat, your database library must be added to the Tomcat libraries in `hybris/config/customize/platform/tomcat/lib`:\n\n  * Oracle: `ojdbc6-w.x.y.z.jar`\n  * MySQL: `mysql-connector-java-x.y.z.jar`\n\nThe HikariCP library can then be easily installed by running the following command from your `platform` folder:\n\n    ant customize\n\nAlong with the HikariCP library, Slf4j libraries will also be copied, as the datasource relies on them. They are however not used by Tomcat and simply pass on any log messages to the existing logger.\n\n### local.properties\n\nNew properties have to be defined in order to use the new datasource:\n\n  ```properties\n    db.pool.name=sapCommerceDataSource\n    db.pool.fromJNDI=java:jdbc/${db.pool.name}\n  ```\n\nThese properties must however not be used for the JUnit tenant, as they will cause unexpected issues. To avoid this, add the following properties to `hybris/config/local_tenant_junit.properties`:\n\n  ```properties\n    db.pool.name=\n    db.pool.fromJNDI=\n    db.pool.fromJNDI.dbtype=\n    db.pool.dataSourceClassName=\n  ```\n\nDifferent properties must be added, depending on the database you are using:\n\n  * HSQLDB:\n  \n  ```properties\n    db.pool.fromJNDI.dbtype=hsqldb\n    db.pool.dataSourceClassName=org.hsqldb.jdbc.JDBCDataSource\n  ```\n\n  * Oracle:\n  \n  ```properties\n    db.pool.fromJNDI.dbtype=oracle\n    db.pool.dataSourceClassName=oracle.jdbc.pool.OracleDataSource\n  \n    # Make sure your DB URL is complete and has a syntax similar to below\n    db.url=jdbc:oracle:thin:@127.0.0.1:1521:xe\n  ```\n\n  * MySQL:\n  \n  ```properties\n    db.pool.fromJNDI.dbtype=mysql\n    db.pool.dataSourceClassName=com.mysql.jdbc.jdbc2.optional.MysqlDataSource\n  ```\n\n  * SQL Server:\n  \n  ```properties\n    db.pool.fromJNDI.dbtype=sqlserver\n    db.pool.dataSourceClassName=com.microsoft.sqlserver.jdbc.SQLServerDataSource\n  ```\n\n  * SAP HANA:\n  \n  ```properties\n    db.pool.fromJNDI.dbtype=sap\n    db.pool.dataSourceClassName=\u003cDataSource class name for SAP HANA\u003e\n  ```\n\n### Declare the datasource in the application server\n\nThe steps below describe how to install the datasource in Tomcat but they are very similar for tcServer.\n\n  1. Open `hybris/config/tomcat/conf/context.xml` (if this file does not exist, create it based on `hybris/bin/platform/tomcat/conf/context.xml`)\n  2. Declare the resource link for the Commerce application before the `\u003cContext\u003e` tag closes:\n  \n      ```xml\n      \u003cResourceLink name=\"jdbc/${db.pool.name}\"\n                global=\"jdbc/${db.pool.name}\"\n                auth=\"Container\"\n                type=\"javax.sql.DataSource\" /\u003e\n      ```\n\n  3. Open `hybris/config/tomcat/conf/server.xml`\n  4. Declare the datasource resource in the `\u003cGlobalNamingResources\u003e` tag:\n  \n  * Oracle:\n  \n      ```xml\n      \u003cResource name=\"jdbc/${db.pool.name}\"\n                global=\"jdbc/${db.pool.name}\"\n                auth=\"Container\"\n                type=\"javax.sql.DataSource\"\n                factory=\"com.zaxxer.hikari.HikariJNDIFactory\"\n                dataSourceClassName=\"${db.pool.dataSourceClassName}\"\n                username=\"${db.username}\"\n                password=\"${db.password.XMLENCODED}\"\n                connectionTimeout=\"${db.pool.maxWait}\"\n                maximumPoolSize=\"${db.pool.maxActive}\"\n                poolName=\"${db.pool.name}ConnectionPool\"\n                dataSource.url=\"${db.url.XMLENCODED}\"\n      /\u003e\n      ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppodgorsek%2Fsap-commerce-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fppodgorsek%2Fsap-commerce-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppodgorsek%2Fsap-commerce-utils/lists"}