<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: How to reference a java application URL in a destination using mtad.yaml in Neo environment in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/how-to-reference-a-java-application-url-in-a-destination-using-mtad-yaml-in/qaa-p/11916432#M4476268</link>
    <description>&lt;P&gt;Hi Ivan,&lt;/P&gt;&lt;P&gt;that sample wouldn't help since it just creates a self reference for the application. The destination is not available on subaccount level and cannot be used from another HTML5 module.&lt;/P&gt;&lt;P&gt;(I've read the documentation several times.)&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Wed, 15 May 2019 14:24:19 GMT</pubDate>
    <dc:creator>karstenvoigt</dc:creator>
    <dc:date>2019-05-15T14:24:19Z</dc:date>
    <item>
      <title>How to reference a java application URL in a destination using mtad.yaml in Neo environment</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-reference-a-java-application-url-in-a-destination-using-mtad-yaml-in/qaq-p/11916430</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I have a little solution that' s deployed to Neo. The solution has two java applications, one HTML5 app and many different destinations. Everything works fine, but I have an issue referencing the java application urls within the destination definition.&lt;/P&gt;
  &lt;P&gt;Example (excerpt mtad.yaml):&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;modules:
  - name: my-backend
    type: java.tomcat
    path: my-backend/my.war
    parameters:
       name: mybackend
       runtime-version: 3.79
       java-version: JRE 8
       compute-unit-size: PREMIUM
       minimum-processes: 1
       maximum-processes: 4
    provides:
       - name: java-backend
         properties:
            backendurl: ${default-url}   

...

- name: dest-mybackend
    type: com.sap.hcp.destination
    parameters:
      name: mybackenddest
      type: HTTP
      url: ~{backendurl}
      force-overwrite: false
      description: Destination for the java backend application (authenticated)
      proxy-type: Internet
      authentication: AppToAppSSO
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;This sample will cause an exception during solution deployment:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;Details: Detected short reference in [~{backendurl}]. All references must be fully qualified&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;So what's the correct way to reference the java app url?&lt;/P&gt;
  &lt;P&gt;Any hints are welcome.&lt;/P&gt;
  &lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 13:59:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-reference-a-java-application-url-in-a-destination-using-mtad-yaml-in/qaq-p/11916430</guid>
      <dc:creator>karstenvoigt</dc:creator>
      <dc:date>2019-05-07T13:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to reference a java application URL in a destination using mtad.yaml in Neo environment</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-reference-a-java-application-url-in-a-destination-using-mtad-yaml-in/qaa-p/11916431#M4476267</link>
      <description>&lt;P&gt;Hi Karsten,&lt;/P&gt;&lt;P&gt;Please read the documentation below on session entitled "&lt;STRONG&gt;Destinations Target Platform Keyword Options&lt;/STRONG&gt;" you can see how the deployment deals with references to java application URLs :&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/viewer/65de2977205c403bbc107264b8eccf4b/Cloud/en-US/f1caa871360c40e7be7ce4264ab9c336.html"&gt;https://help.sap.com/viewer/65de2977205c403bbc107264b8eccf4b/Cloud/en-US/f1caa871360c40e7be7ce4264ab9c336.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Basically here is what's on the docs:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;modules:
  - name: java-module
    type: com.sap.java
    provides:
      - name: java-module
        properties:
          application-url: ${default-url}
    requires:
      - name: java-module
    parameters:
      name: exampleapp
      destinations:
        - name: ExampleWebsite
          type: HTTP
          url: ${java-module/application-url}
      ...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Ivan&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 18:40:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-reference-a-java-application-url-in-a-destination-using-mtad-yaml-in/qaa-p/11916431#M4476267</guid>
      <dc:creator>Ivan-Mirisola</dc:creator>
      <dc:date>2019-05-13T18:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to reference a java application URL in a destination using mtad.yaml in Neo environment</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-reference-a-java-application-url-in-a-destination-using-mtad-yaml-in/qaa-p/11916432#M4476268</link>
      <description>&lt;P&gt;Hi Ivan,&lt;/P&gt;&lt;P&gt;that sample wouldn't help since it just creates a self reference for the application. The destination is not available on subaccount level and cannot be used from another HTML5 module.&lt;/P&gt;&lt;P&gt;(I've read the documentation several times.)&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 14:24:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-reference-a-java-application-url-in-a-destination-using-mtad-yaml-in/qaa-p/11916432#M4476268</guid>
      <dc:creator>karstenvoigt</dc:creator>
      <dc:date>2019-05-15T14:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to reference a java application URL in a destination using mtad.yaml in Neo environment</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-reference-a-java-application-url-in-a-destination-using-mtad-yaml-in/qaa-p/11916433#M4476269</link>
      <description>&lt;P&gt;Hi Karsten,&lt;/P&gt;&lt;P&gt;i think you only have to add the name of the java-application in the destination level.&lt;/P&gt;&lt;P&gt;Instead of       url:~{backendurl}&lt;/P&gt;&lt;P&gt;try       url:~{java-backend/backendurl}&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;-name: dest-mybackend
    type: com.sap.hcp.destinationparameters:name: mybackenddest
      type: HTTP
      url:~{java-backend/backendurl}
      force-overwrite: false
      description:Destinationfor the java backend application(authenticated)
      proxy-type: Internet
      authentication: AppToAppSSO&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 May 2019 11:55:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-reference-a-java-application-url-in-a-destination-using-mtad-yaml-in/qaa-p/11916433#M4476269</guid>
      <dc:creator>christophroth</dc:creator>
      <dc:date>2019-05-22T11:55:08Z</dc:date>
    </item>
  </channel>
</rss>

