since ‎05-05-2019
‎10-12-2019
UweG
Level 1
getServiceResourceResolver with unique name
Avatar

UweG

UweG
- Adobe Experience Manager
Hi to all,we are using ResourceResolverFactory.getServiceResourceResolver from different threads and different event listener with a identical identifier, e.g.Map authenticationProperties = new HashMap<>();authenticationProperties.put(ResourceResolverFactory.SUBSERVICE, "our_id");ret = resourceResolverFactory.getServiceResourceResolver(authenticationProperties);We don't share the service resource resolver between thread or listeners. Every call to the listener or every thread calls the code snip...

Views

323

Likes

0

Replies

1
Re: write ResourceResolver.commit asynchronously?
Avatar

UweG

UweG
- Adobe Experience Manager
Hi,thanks for clarification. Does perform .commit() a synchronious write into JCR?This means, when I wake up the 2nd thread instantly after calling .commit() and when thread 2 is reading the data after calling resourceResolver.refresh(), get thread 2 all data? Or is it neccessary to sync thread 2 with a EventListener on JCR Level?ThxUwe

Views

306

Likes

0

Replies

0
EventHandler for /var/
Avatar

UweG

UweG
- Adobe Experience Manager
Hi to everybody,I tried to implement an EventHandler for AEM 6.4.1 to observe a subtree within /var/ and don't get this running.What's the right way to configure this class with @Component? What's the right value for EVENT_TOPIC to observe a /var/sub-path?@Component(immediate = true, property = { EventConstants.EVENT_TOPIC + "=????", EventConstants.EVENT_FILTER + "=(varPath=/var/my/sub/path/de_DE/*)" })Thanks in advanceUwe

Views

221

Likes

0

Replies

1
write ResourceResolver.commit asynchronously?
Avatar

UweG

UweG
- Adobe Experience Manager
Hi to everybody,I write a lot of values into JCR /var/xxx and close the operation with a ResourceResolver commit and a refresh. My question was: does AEM perform the persistance operation asynchronously and should I wait with a EventHandler for these values? Or is it possible to continue without waiting?Thanks in advanceUwe

Views

385

Likes

0

Replies

4