You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Martin Rohart <ma...@gmail.com> on 2006/05/02 15:18:23 UTC

Adding data in a remote repositry

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
application.
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.