To further simplify the example, taking out my REST services out of the
picture, simply running the following code in a Java Oak app:
DB database = new MongoClient("127.0.0.1", 27017).getDB("sling");
DocumentNodeStore store = new
Hi,
I'm currently using the Sling 8 standalone and it's connected to a MongoDB
database. I've got an application which also connects to the same MongoDB
database and writes/reads from it. The connection is done using DocumentMK,
following the instructions at
On Tue, Dec 1, 2015 at 10:07 PM, H K wrote:
> My problem is that when I write data to the repository through my
> application, Sling does not seem to get it fast enough, which may be because
> it is caching or because it only periodically checks to see if the data it
On Tuesday 01 December 2015 11:37:42 H K wrote:
> Hi,
Hi,
> I'm currently using the Sling 8 standalone and it's connected to a MongoDB
> database. I've got an application which also connects to the same MongoDB
> database and writes/reads from it. The connection is done using DocumentMK,
>
Hi,
Sure. In pseudocode, here it is:
1. Have Sling standalone running and have application that provides REST
service createChildFolder (for example sake). Application connects to
repository by using DocumentMK, as in the link from the OP post.
2. Call createChildFolder("pathToParent",
Are you saying that you have a non-Oak application which connects directly
to MongoDB and manipulates the documents?
On Tue, Dec 1, 2015 at 2:22 PM H K wrote:
> Hi,
>
> Sure. In pseudocode, here it is:
>
> 1. Have Sling standalone running and have application that
It is an Oak application and yes, it does manipulate the documents directly
without making REST calls to Sling. Much of it taken from
http://jackrabbit.apache.org/oak/docs/construct.html , here is what the code
may look like:
// REST service createChildFolder running on localhost:8040
public
Hello,
It seems I cannot execute a single query in the JCR Explorer. Something
simple like this "SELECT * FROM [sling:Folder]" produces this :
* Wrapped javax.jcr.RepositoryException: This query result has already been
iterated through (/libs/sling/servlet/default/explorer/search.esp#82) (500)*
I've had this problem... changing the Query Language to "JCR-JQOM" seems to
work and produces results. I assumed this was some sort of bug.
-Original Message-
From: Guillaume Lucazeau [mailto:glucaz...@gmail.com]
Sent: Tuesday, December 01, 2015 10:41 AM
To: users@sling.apache.org