Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

Commit

Permalink
Merge pull request #4 from ttsokov/master
Browse files Browse the repository at this point in the history
Use MTA reference to resource property "~{hdi-container-name}"
  • Loading branch information
ttsokov committed Nov 20, 2018
2 parents 0dad113 + 2300c57 commit fa7b7d2
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,7 @@ $ # The response should be `HTTP: 404`
```

# Known Issues
* Currently there is one backend module implemented in Java. In future will be provided more backend modules implemented in different languages, like Node.js, Python, etc.
* References in module properties in the MTA deployment descriptors are currently not used. They will be used in future.
* Currently there is one backend module implemented in Java. In future will be provided more backend modules implemented in different languages, like Node.js, Python, etc.

# How to obtain support
If you need any support, have any question or have found a bug, please report it in the [GitHub bug tracking system](https://github.com/SAP/cloud-hdi-zdm-reference-app/issues).
Expand Down
5 changes: 4 additions & 1 deletion cloud-hdi-zdm-ref-app.blue/mta-jee/mta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ modules:
path: ../cloud-hdi-zdm-ref-app.backend.jee.blue
properties:
TARGET_RUNTIME: tomee
JBP_CONFIG_RESOURCE_CONFIGURATION: "[tomee/webapps/ROOT/WEB-INF/resources.xml: {service_name_for_DefaultDB : hdi-container}]"
SET_LOGGING_LEVEL: "{OpenEJB: DEBUG, OpenEJB.options: DEBUG, OpenEJB.server: DEBUG, OpenEJB.startup: DEBUG, OpenEJB.startup.service: DEBUG, OpenEJB.startup.config: DEBUG, OpenEJB.hsql: DEBUG, openjpa.Tool: DEBUG, openjpa.Runtime: INFO, openjpa.Remote: DEBUG, openjpa.DataCache: DEBUG, openjpa.MetaData: DEBUG, openjpa.Enhance: DEBUG, openjpa.Query: DEBUG, openjpa.jdbc.SQL: DEBUG, openjpa.jdbc.SQLDiag: DEBUG, openjpa.jdbc.JDBC: DEBUG, openjpa.jdbc.Schema: DEBUG}"
parameters:
disk-quota: 256M
buildpack: sap_java_buildpack
requires:
- name: hdi-container
properties:
JBP_CONFIG_RESOURCE_CONFIGURATION: "[tomee/webapps/ROOT/WEB-INF/resources.xml: {service_name_for_DefaultDB : ~{hdi-container-name}}]"
- name: db

- name: db
Expand All @@ -28,4 +29,6 @@ modules:

resources:
- name: hdi-container
properties:
hdi-container-name: ${service-name}
type: com.sap.xs.hdi-container
5 changes: 4 additions & 1 deletion cloud-hdi-zdm-ref-app.green/mta-jee/mta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ modules:
path: ../cloud-hdi-zdm-ref-app.backend.jee.green
properties:
TARGET_RUNTIME: tomee
JBP_CONFIG_RESOURCE_CONFIGURATION: "[tomee/webapps/ROOT/WEB-INF/resources.xml: {service_name_for_DefaultDB : hdi-container}]"
SET_LOGGING_LEVEL: "{OpenEJB: DEBUG, OpenEJB.options: DEBUG, OpenEJB.server: DEBUG, OpenEJB.startup: DEBUG, OpenEJB.startup.service: DEBUG, OpenEJB.startup.config: DEBUG, OpenEJB.hsql: DEBUG, openjpa.Tool: DEBUG, openjpa.Runtime: INFO, openjpa.Remote: DEBUG, openjpa.DataCache: DEBUG, openjpa.MetaData: DEBUG, openjpa.Enhance: DEBUG, openjpa.Query: DEBUG, openjpa.jdbc.SQL: DEBUG, openjpa.jdbc.SQLDiag: DEBUG, openjpa.jdbc.JDBC: DEBUG, openjpa.jdbc.Schema: DEBUG}"
parameters:
disk-quota: 256M
buildpack: sap_java_buildpack
requires:
- name: hdi-container
properties:
JBP_CONFIG_RESOURCE_CONFIGURATION: "[tomee/webapps/ROOT/WEB-INF/resources.xml: {service_name_for_DefaultDB : ~{hdi-container-name}}]"
- name: db

- name: db
Expand All @@ -28,4 +29,6 @@ modules:

resources:
- name: hdi-container
properties:
hdi-container-name: ${service-name}
type: com.sap.xs.hdi-container
13 changes: 9 additions & 4 deletions mtad.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,27 @@ version: 0.0.1
modules:
- name: backend
type: java.tomee
path: cloud-hdi-zdm-ref-app.backend/target/cloud-hdi-zdm-ref-app-backend.war
parameters:
buildpack: sap_java_buildpack
disk-quota: 256M
properties:
JBP_CONFIG_RESOURCE_CONFIGURATION: "['tomee/webapps/ROOT/WEB-INF/resources.xml': {'service_name_for_DefaultDB' : 'hdi-container'}]"
SET_LOGGING_LEVEL: "{OpenEJB: DEBUG, OpenEJB.options: DEBUG, OpenEJB.server: DEBUG, OpenEJB.startup: DEBUG, OpenEJB.startup.service: DEBUG, OpenEJB.startup.config: DEBUG, OpenEJB.hsql: DEBUG, openjpa.Tool: DEBUG, openjpa.Runtime: INFO, openjpa.Remote: DEBUG, openjpa.DataCache: DEBUG, openjpa.MetaData: DEBUG, openjpa.Enhance: DEBUG, openjpa.Query: DEBUG, openjpa.jdbc.SQL: DEBUG, openjpa.jdbc.SQLDiag: DEBUG, openjpa.jdbc.JDBC: DEBUG, openjpa.jdbc.Schema: DEBUG}"
SET_LOGGING_LEVEL: '{OpenEJB: DEBUG, OpenEJB.options: DEBUG, OpenEJB.server: DEBUG, OpenEJB.startup: DEBUG, OpenEJB.startup.service: DEBUG, OpenEJB.startup.config: DEBUG, OpenEJB.hsql: DEBUG, openjpa.Tool: DEBUG, openjpa.Runtime: INFO, openjpa.Remote: DEBUG, openjpa.DataCache: DEBUG, openjpa.MetaData: DEBUG, openjpa.Enhance: DEBUG, openjpa.Query: DEBUG, openjpa.jdbc.SQL: DEBUG, openjpa.jdbc.SQLDiag: DEBUG, openjpa.jdbc.JDBC: DEBUG, openjpa.jdbc.Schema: DEBUG}'
requires:
- name: hdi-container
properties:
JBP_CONFIG_RESOURCE_CONFIGURATION: '[tomee/webapps/ROOT/WEB-INF/resources.xml: {service_name_for_DefaultDB : ~{hdi-container-name}}]'
- name: db

- name: db
type: com.sap.xs.hdi
path: cloud-hdi-zdm-ref-app.db/
parameters:
memory: 256M
disk-quota: 256M
requires:
- name: hdi-container

resources:
- name: hdi-container
properties:
hdi-container-name: ${service-name}
type: com.sap.xs.hdi-container

0 comments on commit fa7b7d2

Please sign in to comment.