jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manolo Gomez Lopez" <performa...@gmail.com>
Subject Re: Registering custom node types in jackrabbit
Date Wed, 27 Feb 2008 15:26:11 GMT

   Sorry, I'll reply myself.

   Finally we were able to access the NodeTypeManager through the RMI interface.

   What we did was to modify
org.apache.jackrabbit.rmi.server.jmx.JCRServer  and use
JackrabbitServerAdapterFactory as the factory that implements the
RemoteAdapterFactory that binds to the RMI registry, this:

   RemoteAdapterFactory factory = new JackrabbitServerAdapterFactory();

   instead of:

    RemoteAdapterFactory factory = new ServerAdapterFactory();

   Once compiled in jackrabbit-jcr-rmi.jar we are able to expose the
proper methods to our clients.

   Is this approach correct?, I mean, If accessing jackrabbit-specific
features is a must in some deployments, wouldn't it be easier for
deployers to offer this as a configurable parameter at deployment

Best regards,

2008/2/26, Manolo Gomez Lopez <performante@gmail.com>:
> Hi,
>    We have a jackrabbit server deployed using model 3 (as stated in
>  jackrabbit's site). We get the repository via RemoteRepository.
>    We are facing the problem of not been able to register neither
>  nodetypes nor namespaces as the remote interface lacks of the
>  appropriate methods.
>    Someone posted in this list that the solution for this problem
>  resides in changing jackrabbit's used factories:
>    "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."
>    Please, can anyone help us giving some hints on how to get this
>  scenario configured in a jboss jackrabbit environment, where our RMI
>  clients will be able to register node types and namespaces without the
>  need of administering the jackrabbit server?
>  greets,

View raw message