Re: Read Sling resources remotely

2013-08-22 Thread Dishara Wijewardana
Hi all, I have created the JIRA [1] and attached the Apache Bench Mark results as requested. All the reports and graphs attached to JIRA. I did it in 2 modes. - All tests based on single server startup. - Each test based on a fresh server startup. [1] - https://issues.apache.org/jira/browse/SLING-

Re: Read Sling resources remotely

2013-08-17 Thread Dishara Wijewardana
Hi Ian, I added and commited a new load test class which adds bulk data to cassandra. Can find all info how to configure it and run to add bulk data in under a defined parent as you mentioned. But still I am blocking on the issue I raised on using HTTP call to such added data. On Wed, Aug 14, 201

Re: Read Sling resources remotely

2013-08-15 Thread Bertrand Delacretaz
Hi, On Fri, Aug 16, 2013 at 5:31 AM, Dishara Wijewardana wrote: > ...java.lang.NullPointerException > at > org.apache.sling.servlets.resolver.internal.SlingServletResolver.resolveServlet(SlingServletResolver.java:581)... There's no code in trunk at that line, you'll need to debug the ve

Re: Read Sling resources remotely

2013-08-15 Thread Dishara Wijewardana
HI, Is there a reason why I can resolve my cassandra paths at /content/cassandra/movies/foo/bar1/test/bbb.json but fails on http://localhost:8080/content/cassandra/movies/foo/bar1/test/bbb.json with a Internal Server Error (500) The requested URL /content/cassandra/movies/foo/bar1/test/bbb.json

Re: Read Sling resources remotely

2013-08-14 Thread Ian Boston
On 14 August 2013 09:55, Bertrand Delacretaz wrote: > On Wed, Aug 14, 2013 at 10:53 AM, Ian Boston wrote: >> ...Before you start on the next phase I would like to see some stats, >> even if they are only rudimentary > > Would be good IMO to collect these stats in a jira issue, so that we > ca

Re: Read Sling resources remotely

2013-08-14 Thread Bertrand Delacretaz
On Wed, Aug 14, 2013 at 10:53 AM, Ian Boston wrote: > ...Before you start on the next phase I would like to see some stats, > even if they are only rudimentary Would be good IMO to collect these stats in a jira issue, so that we can keep track of the evolution. -Bertrand

Re: Read Sling resources remotely

2013-08-14 Thread Ian Boston
Hi DIshara, Excelent news. Before you start on the next phase I would like to see some stats, even if they are only rudimentary. Can you build a test profile that adds 1K,10K,100K,1M items to Cassandra, each under 1 parent collection. eg /content/cassandra/1K/0 to /content/cassandra/1K/999 /con

Re: Read Sling resources remotely

2013-08-13 Thread Dishara Wijewardana
Hi Ian, I followed the steps you aforementioned and it worked fine ! (I had to fix couple of bugs I had in the code). This is Wonderful. It gives me the asking resource if it is there. Unless says resource not exists. I tested it having Cassandra running in back ground. I will start a new thread to

Re: Read Sling resources remotely

2013-08-12 Thread Ian Boston
Hi Dishara, The ResourceResolverFactory bundle should not be using any bundle implementing a ResourceProvider, as that would imply a circular dependency. It looks like your service is starting correctly as its listed as service ID 257, component ID 103. Looking at the code, I dont think you have

Re: Read Sling resources remotely

2013-08-11 Thread Dishara Wijewardana
On Sun, Aug 11, 2013 at 2:49 PM, Ian Boston wrote: > Hi Dishara, > The Resource is not being found. > > Things to check. > > 1. Check that the CassandraResourceProvider is registered with the > ResourceResolver at the correct path. > > Got to > http://localhost:8080/system/console/services(lo

Re: Read Sling resources remotely

2013-08-11 Thread Dishara Wijewardana
On Mon, Aug 12, 2013 at 3:10 AM, Robert Munteanu wrote: > On Mon, Aug 12, 2013 at 12:33 AM, Dishara Wijewardana > wrote: > > On Mon, Aug 12, 2013 at 2:54 AM, Robert Munteanu wrote: > > > >> On Mon, Aug 12, 2013 at 12:13 AM, Dishara Wijewardana > >> wrote: > >> > Hi Ian, > >> > Thank you very m

Re: Read Sling resources remotely

2013-08-11 Thread Robert Munteanu
On Mon, Aug 12, 2013 at 12:33 AM, Dishara Wijewardana wrote: > On Mon, Aug 12, 2013 at 2:54 AM, Robert Munteanu wrote: > >> On Mon, Aug 12, 2013 at 12:13 AM, Dishara Wijewardana >> wrote: >> > Hi Ian, >> > Thank you very much for this detailed steps. This was what I was looking >> to >> > gather

Re: Read Sling resources remotely

2013-08-11 Thread Dishara Wijewardana
On Mon, Aug 12, 2013 at 2:54 AM, Robert Munteanu wrote: > On Mon, Aug 12, 2013 at 12:13 AM, Dishara Wijewardana > wrote: > > Hi Ian, > > Thank you very much for this detailed steps. This was what I was looking > to > > gather from docs. > > > > In step1, on services, there is no CassandraResour

Re: Read Sling resources remotely

2013-08-11 Thread Robert Munteanu
On Mon, Aug 12, 2013 at 12:13 AM, Dishara Wijewardana wrote: > Hi Ian, > Thank you very much for this detailed steps. This was what I was looking to > gather from docs. > > In step1, on services, there is no CassandraResourceProvider. I searched > for the name and there is no such. But in bundles

Re: Read Sling resources remotely

2013-08-11 Thread Dishara Wijewardana
On Mon, Aug 12, 2013 at 2:43 AM, Dishara Wijewardana < ddwijeward...@gmail.com> wrote: > Hi Ian, > Thank you very much for this detailed steps. This was what I was looking > to gather from docs. > > In step1, on services, there is no CassandraResourceProvider. I searched > for the name and there

Re: Read Sling resources remotely

2013-08-11 Thread Dishara Wijewardana
Hi Ian, Thank you very much for this detailed steps. This was what I was looking to gather from docs. In step1, on services, there is no CassandraResourceProvider. I searched for the name and there is no such. But in bundles I have it in active state. I tried refreshing it again too. But still I

Re: Read Sling resources remotely

2013-08-11 Thread Ian Boston
Hi Dishara, The Resource is not being found. Things to check. 1. Check that the CassandraResourceProvider is registered with the ResourceResolver at the correct path. Got to http://localhost:8080/system/console/services(login admin:admin) Locate the CassandraResourceProvider and take a note

Re: Read Sling resources remotely

2013-08-10 Thread Dishara Wijewardana
On Sat, Aug 10, 2013 at 1:47 PM, Bertrand Delacretaz wrote: > Hi, > > On Sat, Aug 10, 2013 at 7:02 AM, Dishara Wijewardana > wrote: > > ...The integration tests > > calls to HTTP REST endpoints. So there should be a place that I should be > > writing something like JAX-RS using sling APIs... > >

Re: Read Sling resources remotely

2013-08-10 Thread Bertrand Delacretaz
Hi, On Sat, Aug 10, 2013 at 7:02 AM, Dishara Wijewardana wrote: > ...The integration tests > calls to HTTP REST endpoints. So there should be a place that I should be > writing something like JAX-RS using sling APIs... You don't need JAX-RS, Sling provides RESTful HTTP APIs out of the box. > ..

Re: Read Sling resources remotely

2013-08-09 Thread Dishara Wijewardana
Hi all, Thanks for the links and references. I looked in to the integration tests since eventually that is the place I should be adding the Cassandra Provider. I looked inside the Test classes and base tests. The integration tests calls to HTTP REST endpoints. So there should be a place that I shou

Re: Read Sling resources remotely

2013-08-09 Thread Bertrand Delacretaz
Hi, On Fri, Aug 9, 2013 at 5:28 AM, Dishara Wijewardana wrote: > ...Can we access sling resources from a java client ? Is there any > sample/links to refer ?.. Besides the POST servlets docs mentioned by Shashank, this has the basics: http://sling.apache.org/documentation/getting-started/discove

RE: Read Sling resources remotely

2013-08-08 Thread Shashank Gupta
://hc.apache.org/ -Original Message- From: Dishara Wijewardana [mailto:ddwijeward...@gmail.com] Sent: 09 August 2013 08:58 To: dev@sling.apache.org Subject: Read Sling resources remotely Hi, Can we access sling resources from a java client ? Is there any sample/links to refer ? This is just to

Read Sling resources remotely

2013-08-08 Thread Dishara Wijewardana
Hi, Can we access sling resources from a java client ? Is there any sample/links to refer ? This is just to test the Cassandra impl on Sling. Now the Cassandra bundle is installed in sling server. There is a documentation on editing the JCR content through SlingPostServlet. Can I call this servlet