Re: Reg - Clustering

2014-09-23 Thread Henry Saginor
I believe the original question was “Does Sling support HTTP Session replication”. Not disagreeing with any of the points being made regarding maintaining RESTful nature of Sling applications (+1 on all of them). But, I believe correct answer is that such capability is not even a concern of a fr

Re: Getting started with Sling

2014-12-28 Thread Henry Saginor
Hi Sylvain, I hope I understand what you are trying to do. But here is what I would suggest. 1) Think about how you are going to structure your blog content ahead of time. I would suggest something like /content/blog/year/month/post/comments. This way your archive script does not need to query t

Re: Getting started with Sling

2014-12-29 Thread Henry Saginor
Hi Sylvian, Can you access Felix Web Console at http://localhost:8080/system/console? How are you starting your Sling instance? Henry On Dec 29, 2014, at 2:30 PM, Sylvain Wallez wrote: > Le 29/12/2014 08:17, Bertrand Delacretaz a écrit : >> Hi Sylvain, >> >> Good to see you here ;-) > > Hi

Re: Getting started with Sling

2014-12-29 Thread Henry Saginor
hpad-8-SNAPSHOT-standalone.jar > > Sylvain > > Le 30/12/2014 00:02, Henry Saginor a écrit : >> Hi Sylvian, >> >> Can you access Felix Web Console at http://localhost:8080/system/console? >> How are you starting your Sling instance? >> >> Henry >

XSS bundle mail dependency with base sling build

2014-12-30 Thread Henry Saginor
Greetings All, I am trying to play around with Sightly scripting in base sling build. Sightly has a dependency on XSS bundle. After installing xss I discovered that it imports javax.mail.internet which does not get resolved. Just to get over the hurdle I added javax.mail.internet to sling boot

Re: Getting started with Sling

2014-12-30 Thread Henry Saginor
sure I'll end up with something that deserves to be contributed, but > want to thank you guys for the support in helping me dive into Sling! > > Sylvain > > > Le 30/12/2014 10:23, Bertrand Delacretaz a écrit : >> On Tue, Dec 30, 2014 at 12:30 AM, Henry Saginor w

Re: Best practices for java DTOs to/from Sling

2015-07-22 Thread Henry Saginor
Hi Michael, Since Sling itself is a framework for building web applications with it’s own persistence and services layer it’s a bit unusual to get questions on integration with Spring here (I think). But I don’t know enough about your application and its use cases to question why you are doing

Re: Best practices for java DTOs to/from Sling

2015-07-27 Thread Henry Saginor
tem where we utilize JCR directly in some cases, but Sling >> in others possible/desirable? >> >> I'll also take a look at Sling Models. That sounds promising. >> >> -Original Message- >> From: Sarwar Bhuiyan [mailto:sarwar.bhui...@gmail.com] >> Sent: Thur

Re: SPNEGO authentication

2016-01-04 Thread Henry Saginor
Hi Jalal, I don’t know anything about SPNEGO. But you can implement your own authentication handlers. https://sling.apache.org/documentation/the-sling-engine/authentication/authentication-framework.html

Re: Create rep:SystemUser

2016-02-10 Thread Henry Saginor
Hi Not sure if anyone has replied to you yet. But there is currently some work being done on this [1]. The ticket also discusses some options available to you now. You can also create system users programmatically in the bundle activator. [1] https://issues.apache.org/jira/browse/SLING-5355

Re: Call JSP Directly on Apache Sling

2016-08-12 Thread Henry Saginor
Hi Junior Apache Sling is a resource based framework. You create a content node such as a web page (usually as JCR node in a JCR repository) with a property sling:resourceType that is mapped to a location of your scripts and other content properties that maybe specific to your application requi

issue with sling models injection

2016-09-19 Thread Henry Saginor
Hi All, Today we had a production issue with multiple null pointer exceptions in our sling models. Multiple fields with @Inject annotations were just not getting injected even though they were not declared optional. Some of these field were content properties and some common sling objects like

Re: issue with sling models injection

2016-09-20 Thread Henry Saginor
e apparent and you won’t get a fallback to the pojo provider. > > Santiago García Pimentel| Sr Software Engineer > Netcentric Ibérica SLU > M: +34687915463 > santiago.pimen...@netcentric.biz | www.netcentric.biz > >> On Sep 20, 2016, at 6:53 AM, Henry Saginor wrote: >&g

Re: Adding jcr:created date to resource

2016-09-20 Thread Henry Saginor
I believe jcr:created is a protected JCR property which means it can only be set by the repository. This constraint is enforced by JCR implementation, not by Sling. As Steven suggested remove the line that explicitly sets it and it should work. If you have a use case that requires setting a “cre

Re: Generating report of tens of thousands of pages

2016-09-22 Thread Henry Saginor
Hi Jordan, You might need to create an index for your query to avoid using the default traversal indexer (that’s what the warnings are about). See Apache Oak documentation on that. Also, rather than getting the entire result set for the query at once consider pagination via setLimit and setOffs

Re: How to create Rest APIs for non-JCR data in Sling 8??

2017-01-27 Thread Henry Saginor
Can’t you just create sling servlet registered to some resource type? You can then simply create JCR node(s) mapped to your resource type. You can also use a SynthaticResource via custom resource provider, which is the track you’re on and what Steven is suggesting. But I find that in most cases

Re: How to create Rest APIs for non-JCR data in Sling 8??

2017-01-28 Thread Henry Saginor
In my opinion Sling is first and foremost a REST framework specifically designed for this kind of thing. It’s not only to serve JCR content. The paradigm Steven described earlier in this thread is EXACTLY the way to implement it. In the Sling world the resource IS the RESTful object addressable

Re: How to create Rest APIs for non-JCR data in Sling 8??

2017-01-30 Thread Henry Saginor
Hi Lance, I think a better practice is to register your servlet with a resource type instead of path. For this you can use either sling.servlet.resourceType property or a newer SlingServlet annotation with resourceType property [1]. Then create a JCR note with sling:resourceType property referen

Re: How to create Rest APIs for non-JCR data in Sling 8??

2017-01-31 Thread Henry Saginor
that way at all. I do have a lot of experience with Sling and CQ/AEM as well. :) > On Jan 31, 2017, at 12:57 PM, lancedolan wrote: > > Henry Saginor-2 wrote >> Hi Lance, >> >> I think a better practice is to register your servlet with a resource type >> in

Re: How to create Rest APIs for non-JCR data in Sling 8??

2017-01-31 Thread Henry Saginor
Oh you beat to it.:) I had a similar approach for aggregating page specific JavaScript via a fake resource and was going to provide a skeleton of it. But I am glad you got it to work. I want to add that Sling could probably benefit from Jersey-like ability to generate web services from simple

Re: import and export JCR data

2017-02-07 Thread Henry Saginor
Hi Lance, I sometimes use this simple shell script [1] with file vault to import content from one AEM instance to another. I am happy to share if it helps. I am not sure if you are doing this between 2 sling instances though. But you should be able to change it to use export instead of rcp. Of

Re: Sling Resource Rendering Inheritance

2017-03-22 Thread Henry Saginor
Hi Andreas I was looking at the configuration you provided in your initial e-mail. I noticed that sling:resourceSuperType under your home page content node is different from what’s under component node (“sample” vs “sample/page”). Have you tried deleting this property from the content node? It

esx ScriptEngine + react.js

2017-08-17 Thread Henry Saginor
Hi, I would like to run some server side react.js components in Sling. I was experimenting with the esx engine [1] which works like a NodeJs loader and allows you to load any valid Node module. I am able to run the demo examples that come with that bundle. So, I installed react npm module and