Robin Wyles pisze:

In this particular case it's an extension of the JackrabbitRepository from the JCR block.

I have it defined like so in my xconf:

<components>
    <include src="resource://org/apache/cocoon/jcr/jcr.roles"/>
    <jcr-repository class="com.jac.james.library.JamesRepository">
        <credentials login="guest" password="guest"/>
<home src="file://users/robinwyles/work/james-data/james-library/repos"/> <configuration src="resource://META-INF/cocoon/jackrabbit/repository.xml"/>
        <workspace name="james-library"/>
<nodetypes src="resource://META-INF/cocoon/jackrabbit/nodetypes.cnd"/>
    </jcr-repository>
</components>

.. The included jcr.roles looks like this...

<role-list>
  <role name="javax.jcr.Repository"
        shorthand="jcr-repository"/>
</role-list>

Hmmm, not entirely sure in this case but have you tried:
javax.jcr.Repository/com.jac.james.library.JamesRepository

I believe it should work.

Is this class a Spring bean itself?

It might be, or it might not be :) This was a more general question really... Most likely I guess it will be a Spring bean.

You should implement BeanFactoryAware interface, see:
http://static.springframework.org/spring/docs/2.5.x/reference/beans.html#beans-factory-method-injection

--
Grzegorz Kossakowski

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to