2 Replies Latest reply on Sep 23, 2013 1:52 PM by shawkins

    Defining a REST service backed by UDF

    madhu.garimilla

      Hi,

       

      I am trying out a POC to define a REST service in a vdb which defines a uri that points to a teiid virtual funciton (UDF). Implementation of this function is inside my java class. This class is bundled in a jar and deployed as a Jboss module. I see that my vdb is getting deployed properly and is ACTIVE but when i try to access the REST service using the url it is throwing a 404 error.

       

      http://127.0.0.1:8080/cfar_1/cdeploy/7

       

      here

       

      vdb name is 'cfar'

      vdb version is '1'

      model name is 'cdeploy'

      Input to the REST service is '7'

       

      Am i doing this in right way? Can we define the REST service in this way? I have attached the VDB and the JAR contianing the UDF.