jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sudhan <s.kan...@gmail.com>
Subject Re: Custom node types with RMI
Date Tue, 15 May 2007 17:54:22 GMT

Hi Jukka,

OK so I will have to use these two optional classes.

At present i was just using the binary source for jackrabbit-webapp-1.3.war
and deploying it on JBoss Server. So now i will have to modify the source
and use JackrabbitServerAdaptorFactory instead of ServerAdapterFactory and
similarly will have to change same stuff on client application and rebuild
the respective jars.

If you have any snippet of these changes will be greatly appreciated.

Once again thanks for all your support.


Jukka Zitting wrote:
> Hi,
> On 5/15/07, Sudhan <s.kanade@gmail.com> wrote:
>> Earlier i was using jackrabbit 1.2.1, but now after your suggestion -
>> downloaded 1.3 version and tried implementing the custom node type
>> registration code. But it is failing because the NodeTypeManager which it
>> is
>> returing is ClientNodeTypeManager and when i cast it to
>> JackrabbitNodeTypeManager it is giving ClassCast Exception.
>> Is there any thing which i am missing.
> Ah, sorry, my mistake. To be able to use the Jackrabbit-specific
> features you need to use the JackrabbitClientAdapterFactory [1] and
> JackrabbitServerAdapterFactory [2] classes in your client and server
> code instead of the standard ClientAdapterFactory and
> ServerAdapterFactory classes. The reason for this is to keep the
> jackrabbit-api dependency optional for clients and servers that don't
> need or implement this functionality.
> [1]
> http://jackrabbit.apache.org/api/1.3/org/apache/jackrabbit/rmi/jackrabbit/JackrabbitClientAdapterFactory.html
> [2]
> http://jackrabbit.apache.org/api/1.3/org/apache/jackrabbit/rmi/jackrabbit/JackrabbitServerAdapterFactory.html
> BR,
> Jukka Zitting

View this message in context: http://www.nabble.com/Custom-node-types-with-RMI-tf3728625.html#a10627715
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

View raw message