camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Lundstrom (JIRA)" <>
Subject [jira] [Created] (CAMEL-9617) Support inlining model inside Blueprint
Date Thu, 18 Feb 2016 16:25:18 GMT
Simon Lundstrom created CAMEL-9617:

             Summary: Support inlining model inside Blueprint
                 Key: CAMEL-9617
             Project: Camel
          Issue Type: Improvement
          Components: camel-cxfrs
    Affects Versions: 2.16.1
         Environment: ServiceMix 6.1.0
            Reporter: Simon Lundstrom
            Priority: Minor

Defining a REST service without any code or additional files other than a blueprint file is
nice to have. restlet supports this but restlet doesn't integrate with the OSGi http feature.
CXFRS does though.

<?xml version="1.0" encoding="UTF-8"?>

  <rsServer id="rsServer" xmlns="">
      <resource path="/mailcommit">
	<operation verb="POST">
	  <param type="REQUEST_BODY" />

  <camelContext xmlns="">
      <from uri="cxfrs:bean:rsServer" />
      <convertBodyTo type="java.lang.String" />
      <inOnly uri="log:test" />
should be able to create a REST service which answers on POSTs to /cxf/mailcommit.

It's possible today to use:
      <from uri="cxfrs://?modelRef=file:/path/to/model.xml" />
      <convertBodyTo type="java.lang.String" />
      <inOnly uri="log:test" />
but this adds the dependency of an external file.

This message was sent by Atlassian JIRA

View raw message