Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

valcohen
valcohen
Offline

Badges

Badges
15

Accepted Solutions

Accepted Solutions
2

Likes Received

Likes Received
9

Posts

Posts
27

Discussions

Discussions
6

Questions

Questions
21

Ideas

Ideas
0

Blog Posts

Blog Posts
1
Top badges earned by valcohen
Customize the badges you want to showcase on your profile
Re: Lucene Index with Multiple Properties - Adobe Experience Manager 08-06-2022
Thanks, and thanks for the quick response!

Views

56

Like

1

Replies

0
Re: Lucene Index with Multiple Properties - Adobe Experience Manager 08-06-2022
Hi @Jörg_Hoh, The linked cheat sheet is a great document -- very nicely organized, clear examples -- but it is no longer accessible. Do you mind to repost it somewhere so we can save it?

Views

62

Like

1

Replies

2
Re: How to get ResourceResolver in a background thread? - Adobe Experience Manager 21-02-2018
Sorry for the delay, but I finally got it working. A few notes:My initial design was never going to work. I tried to pass the servlet's request.getResourceResolver() down to my worker class and then reference it in the new Thread. But when the servlet then issues a redirect (or any other response) back to the client, the request, and therefore the ResourceResolver, is closed, and the thread throws an exception when trying to use the now-closed resolver.My second attempt was close, but I had @Ref...

Views

4.1K

Likes

0

Replies

0
Re: How to get ResourceResolver in a background thread? - Adobe Experience Manager 16-02-2018
Julio Tobar Wow, you're fast! I've been playing with a couple of approaches and still no-go, but haven't tried your latest suggestion yet. I'm wrapping up work now -- we have a holiday weekend here -- so I'll get back to this Tuesday morning. I'll let you know how it works out -- thanks very much for all the help!

Views

3.9K

Likes

0

Replies

0
Re: How to get ResourceResolver in a background thread? - Adobe Experience Manager 16-02-2018
Julio TobarWell , I just tried, but immediately inside the run() method of my Runnable, when I test the resolver I get an exception that says This makes sense to me -- I get the resolver from the request to my servlet. The servlet passes its resolver to my worker class (so far so good, it logs the admin user), but the worker class spawns a new thread and in its run() method the resolver is closed. I think that's by the time the Runnable executes run(), the servlet has already issued its redirect...

Views

3.9K

Likes

0

Replies

0
Re: How to get ResourceResolver in a background thread? - Adobe Experience Manager 16-02-2018
I'm not downloading from the response; I'm downloading from a separate URL. The flow is:user opens a page with a form from my AEM site, and POSTs the form to my servletservlet converts the form to PDF, sends it to docusign server-side, and gets back a DocuSign redirect URLservlet responds to the request from (1) with a redirect to the URL from (2)the redirect displays the DocuSign form-signing page. When the user completes it, that page GETs my servlet again, with an ID that lets me know where t...

Views

3.9K

Likes

0

Replies

0
Re: How to get ResourceResolver in a background thread? - Adobe Experience Manager 16-02-2018
Interesting, I'll give it a try and let you know how it works out.

Views

3.9K

Likes

0

Replies

0
How to get ResourceResolver in a background thread? - Adobe Experience Manager 16-02-2018
I'm working on a solution that receives an HTTP request containing a URL to a file, which I want to download and store in the JCR.So, I have a servlet that receives the request. It spawns a thread so that I can do the download in the background, and then redirects to a confirmation page. This allows me to send the user on their way without waiting while I try to download the file.I can download the file just fine, but I'm having trouble getting a usable ResourceResolver to store the file in the ...

Views

10.0K

Like

1

Replies

10
Re: How to control OSGi dependency injection in AEM? - Adobe Experience Manager 10-11-2017
rmahendr Yes, I've read that article, and the service ranking info tells me how the framework selects one implementation out of many. What it does not address, and what I'm still seeking, is how to change the service ranking value via configuration rather than by changing an annotation in the Java class. Changing the annotation means re-deploying, and I want to avoid that.From what I can tell, If an @Component has metatype=true, then @Property annotations on fields inside the class generate cont...

Views

6.9K

Likes

0

Replies

0
Re: How to control OSGi dependency injection in AEM? - Adobe Experience Manager 09-11-2017
That sounds promising -- I looked at ReferenceCardinality but didn't look at ConfigurationPolicy. And, I was hoping to be able to make the service.ranking a property -- that would generate a Felix GUI for it -- but I've only done that on fields within a class, so I didn't think it could be done. Can you sketch out some example code that would show how I would decorate the class to make service.ranking into a property?I have to leave for the day -- I'll take a look back here tomorrow. Thanks for ...

Views

6.9K

Likes

0

Replies

3