camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-5312) Adding Restlet routes with relative paths to Apache Camel context does NOT work after I send first request to restlet route
Date Fri, 08 Jun 2012 06:33:22 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-5312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen resolved CAMEL-5312.
--------------------------------

       Resolution: Invalid
    Fix Version/s: 2.10.0
         Assignee: Claus Ibsen

This is not a problem in camel-reslet, but on your side when you use the Spring Restlet servlet
or whatever.

You will need to handle this yourself, as you are not using the Camel RestletComponent.
                
> Adding Restlet routes with relative paths to Apache Camel context does NOT work after
I send first request to restlet route 
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5312
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5312
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-restlet
>    Affects Versions: 2.9.1
>         Environment: Grails, Apache Camel
>            Reporter: Amit Patel
>            Assignee: Claus Ibsen
>             Fix For: 2.10.0
>
>         Attachments: RestletSpringServlet.java
>
>
> Adding Restlet routes with relative paths to Apache Camel context does NOT
> work after I send first request to restlet route.
> 1) Add Restlet route restletRoute1 with relative path to Apache Camel context
> 2) Send a request to restletRoute1 (works)
> 3) Add a route restletRoute2 with relative path to Apache Camel context
> 4) Send a request to restletRoute2 (does not works). RestletServlet
> does not find the restlet endpoint and return Not Found message.
> when I checked jconsole It saw the restletRoute1 and restletRoute2 started
> successfully. If I add restletRoute1 and restletRoute2 then send a
> request to restletRoute1 and restletRoute2 both works. Our
> application supports add route on-the-fly feature, so we don't have
> to start the application every time when we add a new route. Because of
> the above issue we can't integrate restlet to our application.
> Routes
> -------
> <routes xmlns="http://camel.apache.org/schema/spring">
> <route>
> <from uri="restlet:/restletRoute1"/>
> <setHeader headerName="Content-Type">
> <constant>text/plain</constant>
> </setHeader>
> <setBody>
> <constant>restletRoute1</constant>
> </setBody>
> </route>
> <route>
> <routes xmlns="http://camel.apache.org/schema/spring">
> <route>
> <from uri="restlet:/restletRoute2"/>
> <setHeader headerName="Content-Type">
> <constant>text/plain</constant>
> </setHeader>
> <setBody>
> <constant>restletRoute2</constant>
> </setBody>
> </route>
> <route>
> libs
> -----
> 'org.apache.camel:camel-restlet:2.9.1'
> 'org.restlet.jee:org.restlet.ext.spring:2.0.13'
> Web.xml
> -----------
> <servlet>
>                      <servlet-name>RestletServlet</servlet-name>
>                      <servlet-class>org.restlet.ext.spring.SpringServerServlet</servlet-class>
>                      <init-param>
>                            <param-name>org.restlet.component</param-name>
>                            <param-value>restletComponent</param-value>
>                      </init-param>
>               </servlet>
>               <servlet-mapping>
>                      <servlet-name>RestletServlet</servlet-name>
>                      <url-pattern>/rs/*</url-pattern>
>               </servlet-mapping>
> Resources.groovy
> -----------------
> restletComponent(org.restlet.Component)
> restletComponentService(org.apache.camel.component.restlet.RestletComponent, ref("restletComponent"))

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message