: Mark Herman
Sent: Thursday, July 07, 2011 9:04 AM
To: users@sling.apache.org
Subject: RE: Beginners question with Sling.
In reference to ESP vs JSP:
You may be able to use Day CRX (now Adobe) documentation as a resource.
They have a series of blogs called CRX Gems. Some are product specific
On 08.07.11 10:39, Phil Rice phil.rice.erud...@googlemail.com wrote:
DefaultHttpClient client = new DefaultHttpClient();
client.getCredentialsProvider().setCredentials(new AuthScope(localhost,
8080), new UsernamePasswordCredentials(admin, admin));
I guess you need to use preemptive auth:
Hi Phil
Check out the integration tests, as Bertrand suggested. In the class
AbstractAuthenticatedTest[0] there is pretty much the same code you're
trying to write. I think that should get you going.
Regards
Julian
[0]
Thanks for the help Alex. Unfortunately that is one of the things that has
changed in the new API. Its no longer a method available from the
parameters. However the advice to follow the test framework was very good
and the following now works. I can rip this apart and reduce to to the
minimum
Also thanks Julain/Bertand. I now have about the simplest hello world
program working. I suspect as I get further into the project, I will need to
look at the authentication system a lot more thoroughly, but for now I am
happy with just being able to POST and GET data!
public class
Out of curiosity, why are you using Java and access Sling through HTTP?
If you really like Java, you can create an OSGi bundle and deploy the bundle
to Sling (felix, /system/console).
You can put Servlets and other useful utilities in the bundle.
And, you can access the repository directly
On Fri, Jul 8, 2011 at 1:31 PM, Julian Sedding jsedd...@gmail.com wrote:
...Typically when working with Sling you don't access it via HTTP a lot.
Rather you work within Sling. I.e. you write scripts that run within
an authenticated request (which typically originates from a browser).
I believe
Why don't you use Jackrabbit via DavEx or RMI?
http://wiki.apache.org/jackrabbit/RemoteAccess
I don't think Sling is a remote repository.
I'm not sure what you meant by a mixture of structured and unstructured
data.
Have you looked at other databases such as CouchDB or MongoDB?
On Fri, Jul
On Fri, Jul 8, 2011 at 8:51 AM, sam lee skyn...@gmail.com wrote:
Why don't you use Jackrabbit via DavEx or RMI?
http://wiki.apache.org/jackrabbit/RemoteAccess
DavEX and RMI are both fairly heavyweight. IIUC, the use case is
similar to remote logging where simple data is posted from lots of
On Fri, Jul 8, 2011 at 7:31 AM, Julian Sedding jsedd...@gmail.com wrote:
Hi Phil
Typically when working with Sling you don't access it via HTTP a lot.
How do you figure? Seem to me that Sling applications are almost
always accessed via HTTP.
Justin
Rather you work within Sling. I.e. you
Hi Phil,
On Fri, Jul 8, 2011 at 4:15 PM, Phil Rice
phil.rice.erud...@googlemail.com wrote:
...Although I came to Sling for the Restful interface, there are a few of
features that Sling adds to Jackrabbit that I like:
1: It looks as though Sling would deal with the schema changing across
time
@sling.apache.org
Subject: Re: Beginners question with Sling.
Hi Phil,
On Fri, Jul 8, 2011 at 4:15 PM, Phil Rice
phil.rice.erud...@googlemail.com wrote:
...Although I came to Sling for the Restful interface, there are a few of
features that Sling adds to Jackrabbit that I like:
1: It looks
You can use /system/sling.js
It has Sling.removeContent() and Sling.getContent().
You just need to implement Sling.createContent(), Sling.updateContent(),
Sling.query() using xhr.
Then you have something like couchdb.
I don't think sling has RESTful API reference. It would be useful.
On Thu,
On Thu, Jul 7, 2011 at 3:03 PM, sam lee skyn...@gmail.com wrote:
...I don't think sling has RESTful API reference. It would be useful
you're right, OTOH Sling has an extensive integration test suite which
uses its HTTP interfaces, so you can learn a lot by looking at the
code under [1].
If
the language, but make sure you
carefully read the license agreement before actually deploying bundles to
sling.
-Original Message-
From: Mark Herman
Sent: Thursday, July 07, 2011 9:04 AM
To: users@sling.apache.org
Subject: RE: Beginners question with Sling.
In reference to ESP vs JSP:
You may
Hello everyone.
I have just downloaded Sling, and am very impressed with it. I am planning
on using it in conjunction with an Eclipse plugin to crowd source
information about open source projects.
I am having the usual teething problems that I get whenever I use an open
source product, and I am
On Jul 6, 2011, at 5:16 PM, Phil Rice phil.rice.erud...@googlemail.com wrote:
Hello everyone.
Hi
I have just downloaded Sling, and am very impressed with it. I am planning
on using it in conjunction with an Eclipse plugin to crowd source
information about open source projects.
Sounds
17 matches
Mail list logo