cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject a simple URI format for referring to EndpointInfo (was Re: Introducing Apache Camel)
Date Fri, 30 Mar 2007 15:29:17 GMT
Apologies if this is a dumb question but I've noodled the wiki & code
and not seen anything like this yet so thought I'd ask.

Often the EndpointInfo is configured via XML (JAXB/Spring stuff). I'm
wondering has anyone ever figured out a simple String URI <->
EndpointInfo converter to deal with common cases? I realise that
EndpointInfo is a complex object and the URI could get pretty complex;
I'm just looking for something that solves the common 80% of cases
(e.g. HTTP endpoint at some address).

In ActiveMQ and ServiceMix we've got kinda hooked on URIs as a nice
alternative to XML

Here's the various URIs supported in ActiveMQ

e.g. here's a couple of specific URIs

Here's examples of the ServiceMix URIs supported

So I was wondering if we could do something similar in CXF; have a
simple way to convert a String URI into an EndpointInfo object; this
would ease Camel integration for a start as its currently using a
single URI to do the routing of HTTP / JBI / JMS / MINA / files / XMPP

I was thinking we could use something similar to ServiceMix such as

endpoint:qname (the endpoint name)

To allow an endpointInfo to be specified by interface / service /
endpoint name / address etc. Then there's always the handy URI query
arguments to customize things further.



FWIW when folks use CXF from inside  Camel, we're currently just
stripping off the "cxf:" prefix and then interpreting the rest as an
EndpointInfo (which is hackily hard coded to take the rest as a http
address :)



View raw message