Hi,

On 05.08.2010 02:05, Jason Rose wrote:
> In my current project we use Camel (via ServiceMix) to handle all of our
> integration with our other applications.  The application I'm personally
> working on uses Sling/JCR to store most of its content, but a large amount
> of other stuff it uses is held in data stores in these other applications.
> 
> Currently, I'm creating servlets for every external application operation I
> want to expose, then manually invoking Camel to fetch/push data across the
> ESB.  Lately, I've been thinking of creating a ResourceProvider to expose
> all my camel endpoints as Resources, which would mesh a lot more cleanly
> with Sling.
> 
> Looking at the Sling source, I can see the ResourceResolver for JCR;
> ResourceProviderFactories for Servlets; and ResourceProviders for each of
> the filesystem, servlets, bundles, users, and the JCR.  My question is, what
> parts do I need to implement myself to have integration with ServiceMix as
> transparent as the other types of resources?

What you would implement is the ResourceProvider interface which returns
your own implementations of the Resource interface.

For examples you might want to look at the Bundle Resource Provider [1]
and the Filesystem Resource Provider [2].

Hope this helps.

Regards
Felix

[1]
http://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/bundleresource
[2]
http://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/fsresource

Reply via email to