cancel
Showing results for 
Search instead for 
Did you mean: 

Problems adding nodes

rcortesr
Star Contributor
Star Contributor
Hi,

I am adding nodes with the addNode() function.
My problem is the following: for to see the added nodes I must restart the server.

Is possible to see the nodes without having to restart the server?

Thanks.
2 REPLIES 2

davidc
Star Contributor
Star Contributor
I assume you're adding nodes in a process that's separate to the server process.

In that case, the server's cache will not see your changes, because it hasn't been informed of the changes.

You can either use JCR-RMI to add nodes to the server from a remote client, or execute your code within the server process.

rcortesr
Star Contributor
Star Contributor
It's posible to refresh the cache from my application?

I have executed the example FirstJCRClient.java but the problem persists.
This example of JCR-RMI doesn't solve to me the problem.

Thanks.