Thanks.
but only version 2.0 have this property(matchOnUriPrefix)...

Evgeny


Claus Ibsen-2 wrote:
> 
> On Fri, Mar 13, 2009 at 9:22 AM, Willem Jiang <[email protected]>
> wrote:
>> Hi,
>>
>> You just need to set opetion matchOnUriPrefix[1] to be true, then all
>> the request to jetty:http://localhost:1234/base/* will came to your
>> jetty endpoint first.
>>
>> [1] http://camel.apache.org/jetty.html
> Cool, I didnt know this feature.
> 
> 
>>
>> Willem
>>
>>
>> pevgen wrote:
>>> Thank you, Bruno.
>>>
>>> But i think, that i could't explain my problem :)
>>>
>>> if i create a "direct:path" (like "jetty:http://localhost:1234/base";),
>>> then
>>> all requests like  "...base/blablabla" can't process by the jetty
>>> endpoint.
>>>
>>> i want create http-router and route in-messages like
>>> if "path1" then {
>>>   process1();}
>>> if "path2" {
>>>   process2();}
>>> ...
>>> where path1 and path2 are context-paths....
>>>
>>> There are any councils ?
>>>
>>> Evgeny
>>>
>>>
>>>
>>> Bruno Borges wrote:
>>>> Isn't possible to do a "direct:path" and from there you multicast to
>>>> other
>>>> endpoints?
>>>>
>>>>
>>>>
>>>> Like:
>>>>
>>>> from("some:where").to("direct:path");
>>>>
>>>> String[] paths = getJettyPaths();
>>>>
>>>> from("direct:path").multicast(paths);
>>>>
>>>>
>>>> How about this?
>>>>
>>>> Bruno Borges
>>>> blog.brunoborges.com.br
>>>> +55 21 76727099
>>>>
>>>> "The glory of great men should always be
>>>> measured by the means they have used to
>>>> acquire it."
>>>> - Francois de La Rochefoucauld
>>>> Sent from: Rio de janeiro Rj Brazil.
>>>>
>>>> On Thu, Mar 12, 2009 at 1:32 PM, pevgen <[email protected]> wrote:
>>>>
>>>>> Hello.
>>>>>
>>>>> How can i get a jetty-endpoint with many context paths ?
>>>>> for example, i want to get requests on
>>>>> http://localhost:1234/base/path1and
>>>>> http://localhost:1234/base/path2. but 'path1' and 'path2' are runtime
>>>>> paths
>>>>> (from 1 to .... many :)).
>>>>> if i configured the endpoint as "jetty:http://localhost:1234/base";,
>>>>> then
>>>>>  i
>>>>> got jetty http 404 error.
>>>>>
>>>>> Thanks
>>>>> Evgeny
>>>>> --
>>>>> View this message in context:
>>>>> http://www.nabble.com/jetty-component-%3A-many-context-paths-tp22479524p22479524.html
>>>>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>
>>>> -----
>>>> Bruno Borges
>>>> blog.brunoborges.com.br
>>>> +55 21 76727099
>>>>
>>>> "The glory of great men should always be
>>>> measured by the means they have used to
>>>> acquire it."
>>>> - Francois de La Rochefoucauld
>>>>
>>>
>>
>>
> 
> 
> 
> -- 
> Claus Ibsen
> Apache Camel Committer
> 
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/jetty-component-%3A-many-context-paths-tp22479524p22533229.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to