jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Rohart <martinroh...@gmail.com>
Subject Adding data in a remote repositry
Date Tue, 02 May 2006 13:18:23 GMT

Hi everybody,

I would like to use a jackrabbit repository on a server, and I was first
using the already existing RepositoryStartupServlet for this, accessed via
RMI, and all was working well.
I could access the content, or create nodes and properties from my client
But my only problem was to put some data in a property, from a file, via an
InputStream. I did it like this :
myNode.setProperty("jcr:data", new FileInputStream(myFile));

And this ends with an Unmarshall Exception, as it wasn't able to use an
InputStream object with RMI.
I had no problem to do it locally when using a TransientRepository, but
there seems to be no way with a RemoteRepository (the one used in the
servlet) to do this, or am I wrong ?
So anyone has an idea of how to do this with a remote repository ? Can I
send some kind of URL to it, pointing to my file ?

Else I will have to deploy a "normal" repository on the server, send to it
my file, and then add the property locally.

Thank you for your ideas,
Martin R.

View this message in context: http://www.nabble.com/Adding-data-in-a-remote-repositry-t1537228.html#a4176176
Sent from the Jackrabbit - Users forum at Nabble.com.

View raw message