Re: Datastore usage

2015-03-11 Thread connuser1 connuser1
Did you try using JCR Observation for NODE_REMOVED event ? On Wed, Mar 11, 2015 at 11:20 AM, Anjan poliset...@gmail.com wrote: When a document is deleted, SlingConstants.TOPIC_RESOURCE_REMOVED event is fired. But the node is already deleted by the time I try to access it by it's path. So I

Re: [Sling IDE Tooling] New sling content project needs 'content' folder on sling instance

2015-02-20 Thread connuser1 connuser1
Thanks. This works fine now. On Fri, Feb 20, 2015 at 4:11 PM, Robert Munteanu romb...@apache.org wrote: On Fri, 2015-02-20 at 16:07 +0530, connuser1 connuser1 wrote: Hi It seems like its necessary to have a /content folder already on a sling instance when using ide tooling to export

[Sling IDE Tooling] New sling content project needs 'content' folder on sling instance

2015-02-20 Thread connuser1 connuser1
Hi It seems like its necessary to have a /content folder already on a sling instance when using ide tooling to export a sling content project to sling. The export fails unless I manually create a /content folder there. Thanks

Re: Sling IDE Tooling:Unable to install bundle for the first time

2015-02-11 Thread connuser1 connuser1
the local directory, if Sling runs on the same machine. Robert On Wed, 2015-02-11 at 15:20 +0530, connuser1 connuser1 wrote: Hi I am experimenting with sling IDE tooling. I am facing a problem wherein I am unable to deploy the bundle for the very first time using it. Once I have uploaded

Re: Configuring a service using sling:OsgiConfig

2015-02-04 Thread connuser1 connuser1
Ok. Thanks for clarifying. I could setup OsgiConfig nodes manually as well but in any case, the setting done via console would override. On Mon, Feb 2, 2015 at 7:16 PM, Bertrand Delacretaz bdelacre...@apache.org wrote: On Mon, Feb 2, 2015 at 2:39 PM, connuser1 connuser1 connus...@gmail.com

Re: Implementing ModifyingResourceProvider

2015-02-04 Thread connuser1 connuser1
of the ModifyingResourceProvider as well. related ticket is https://issues.apache.org/jira/browse/SLING-4381 stefan -Original Message- From: connuser1 connuser1 [mailto:connus...@gmail.com] Sent: Thursday, January 29, 2015 2:42 PM To: users@sling.apache.org Subject: Re: Implementing

Re: Configuring a service using sling:OsgiConfig

2015-02-02 Thread connuser1 connuser1
bdelacre...@apache.org wrote: Hi, On Mon, Feb 2, 2015 at 2:25 PM, connuser1 connuser1 connus...@gmail.com wrote: ...I think whenever a install/service-pid.config node gets created in the repo, the changes done to the sling:OsgiConfig node stop taking effect Yes, if you have two

Re: Configuring a service using sling:OsgiConfig

2015-02-02 Thread connuser1 connuser1
created in the repo, the changes done to the sling:OsgiConfig node stop taking effect. Thanks On Mon, Feb 2, 2015 at 6:24 PM, Bertrand Delacretaz bdelacre...@apache.org wrote: Hi, On Mon, Feb 2, 2015 at 1:48 PM, connuser1 connuser1 connus...@gmail.com wrote: ...Editing the config once using

Re: Configuring a service using sling:OsgiConfig

2015-02-02 Thread connuser1 connuser1
not sure of. On Mon, Feb 2, 2015 at 6:02 PM, connuser1 connuser1 connus...@gmail.com wrote: While I am still trying to figure out other differences, here are a few observations: One difference that I found was that the config file was placed in 'install' folder for sling-test while I was keeping

Configuring a service using sling:OsgiConfig

2015-02-02 Thread connuser1 connuser1
Hi I am trying to configure a service by creating a node with jcr:primaryType as sling:OsgiConfig in the /app/my-project/config directory. I am following the steps as detailed in [1]. But I am unable to see the configuration getting applied. Could someone please guide, what could I be missing?

Re: Configuring a service using sling:OsgiConfig

2015-02-02 Thread connuser1 connuser1
=org.apache.sling.scripting.jsp.JspScriptEngineFactory], digest=354ad20d28352775381b06f675117d8a) Does this ring a bell...? On Mon, Feb 2, 2015 at 5:19 PM, connuser1 connuser1 connus...@gmail.com wrote: Thanks Bertrand. I'll compare with it. On Mon, Feb 2, 2015 at 4:57 PM, Bertrand Delacretaz bdelacre

Re: Configuring a service using sling:OsgiConfig

2015-02-02 Thread connuser1 connuser1
Thanks Bertrand. I'll compare with it. On Mon, Feb 2, 2015 at 4:57 PM, Bertrand Delacretaz bdelacre...@apache.org wrote: Hi, On Mon, Feb 2, 2015 at 11:40 AM, connuser1 connuser1 connus...@gmail.com wrote: ...I am trying to configure a service by creating a node with jcr:primaryType

Re: Implementing ModifyingResourceProvider

2015-01-29 Thread connuser1 connuser1
in ModifiableValueMap be translated to the changes to be done on the dynamodb backend. [1] - http://docs.adobe.com/docs/en/cq/current/javadoc/org/apache/sling/api/resource/ModifiableValueMap.html On Thu, Jan 29, 2015 at 6:45 PM, connuser1 connuser1 connus...@gmail.com wrote: Hi I am implementing

Re: AWS DynamoDB as a Sling resource

2015-01-26 Thread connuser1 connuser1
@Bruce I do see the patch applied and the aws-ext is present on the jackrabbit trunk. Please see [0] @Bertrand, thanks for pointing to the jackrabbit-aws-ext. I have configured it as specified at [1] . Can you please cite an example on how to use it ? Specifically, how to get its instance and

Re: AWS DynamoDB as a Sling resource

2015-01-25 Thread connuser1 connuser1
-sling/ [2] - http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tools.DynamoDBLocal.html [3] - http://dynamodb.jcabi.com/ Thanks On Wed, Jan 21, 2015 at 4:05 PM, connuser1 connuser1 connus...@gmail.com wrote: Thanks Dominic and Bertrand for your valuable comments

Re: AWS DynamoDB as a Sling resource

2015-01-22 Thread connuser1 connuser1
Hi Bruce Are you using S3 for blob storage? Not yet but that's what I plan to do. I am writing a very basic S3 resource provider to just get things started. I am not sure if there is something which already exists which I can reuse. I would surely share whenever I have some more details on this.

Re: AWS DynamoDB as a Sling resource

2015-01-21 Thread connuser1 connuser1
at 4:29 PM, Robert Munteanu romb...@apache.org wrote: On Wed, Jan 21, 2015 at 12:58 PM, Robert Munteanu romb...@apache.org wrote: On Wed, Jan 21, 2015 at 12:52 PM, connuser1 connuser1 connus...@gmail.com wrote: Hi Robert Yes, I had to add the aws java sdk jar on purpose. The jar size from

Re: AWS DynamoDB as a Sling resource

2015-01-21 Thread connuser1 connuser1
it further as to why the jar size is just a few KBs on maven central. Maybe there's some change in the way its built since 1.9 Thanks On Wed, Jan 21, 2015 at 4:12 PM, Robert Munteanu romb...@apache.org wrote: On Wed, Jan 21, 2015 at 9:06 AM, connuser1 connuser1 connus...@gmail.com wrote

Re: AWS DynamoDB as a Sling resource

2015-01-21 Thread connuser1 connuser1
Thanks Dominic and Bertrand for your valuable comments. This implementation is an offshoot of the work that I am doing currently in my job and my intent is to share any generic part which could help others. I am quite enthusiastic about maintaining and improving it as I would have to do it anyway

HtmlRendererServlet with ValueMap

2015-01-19 Thread connuser1 connuser1
Hi I am relying on the default get servlet for rendering my custom (non-JCR) resource. I see that with the .html extension, the HtmlRendererServlet comes into play and it tries to adapt the resource to either of Map, String or String[]. Is there a specific reason for it to not try to adapt to

Re: Resource Type for custom resource provider

2015-01-09 Thread connuser1 connuser1
: Hi, On Thu, Jan 8, 2015 at 8:19 AM, connuser1 connuser1 connus...@gmail.com wrote: ...I am creating a SyntheticResource. How do I add properties to it?... The Planets resource provider example at [1] might help, I think its json representation is what you expect. Note that it uses

Fwd: Resource Type for custom resource provider

2015-01-06 Thread connuser1 connuser1
Hi I am writing a custom resource provider by implementing the ResourceProviderFactory interface. Currently I have sets its 'Resource Type' to a path which maps to my custom servlet for rendering this resource. This is working perfectly but I am not really sure if this is the right way to do it.

Re: Randomly Failing Unit tests

2014-12-21 Thread connuser1 connuser1
: Thanks for reporting these, I looked at the first one and changed the exit check for that test. Could you please give it a try if it solves the problem? Thanks Carsten Am 18.12.14 um 11:17 schrieb connuser1 connuser1: Hi I recently synced code from slink trunk and am trying to build

Creating Synthetic resource with both path and metadata

2014-01-13 Thread connuser1 connuser1
Hi Why isn't there a way to create a Synthetic resource with both path and metadata? Currently it has only 2 constructors: *SyntheticResource

Problem using sling-jcr-contentloader

2013-08-01 Thread connuser1 connuser1
Hi I am having problems using 'sling-jcr-contentloader'. Though I am able to create folders using it, I am unable to create nodes inside that folder using the xml format specified at [0]. I am attaching the xml that I am using to create the node. Also here is what is added in MANIFEST.MF:

Re: New JavaScript node types library for Sling

2013-07-15 Thread connuser1 connuser1
dependency as optional. Thats why I'm interested in the name of the bundles/packages that you remember were missing. Best, Sandro Am Wed Jul 10 11:15:59 2013 schrieb connuser1 connuser1: Thanks Sandro! I am able to get it working now. I did need to check the 'deploy optional dependencies' checkbox

Re: When is LoginModulePlugin.getAuthentication called?

2013-05-29 Thread connuser1 connuser1
wrote: Hi Connuser, the reason why your getAuthentication is never called, I assume, is that the getPrincipal method in your custom LoginModule returns null Regards Antonio On May 27, 2013, at 9:07 AM, connuser1 connuser1 wrote: Hi I have written an implementation of LoginModulePlugin

pingAndCheck keeps initializing my LoginModulePlugin

2013-04-10 Thread connuser1 connuser1
Hi I have implemented my own LoginModulePlugin and registered it as a service with the name of LoginModulePlugin so that it gets called for authentication. I have overridden canHandle method which returns true only when the authentication is coming from my authentication handler and all this is

Re: pingAndCheck keeps initializing my LoginModulePlugin

2013-04-10 Thread connuser1 connuser1
Thanks Betrand! I thought I had mis-configured something. Thanks for clarifying. On Wed, Apr 10, 2013 at 2:02 PM, Bertrand Delacretaz bdelacre...@apache.org wrote: Hi, On Wed, Apr 10, 2013 at 8:17 AM, connuser1 connuser1 connus...@gmail.com wrote: ...there's a pingAndCheck method which