Expand my Community achievements bar.

SOLVED

AEM 6.2 depcreated method

Avatar

Level 4

JackrabbitSession session = (JackrabbitSession) repository.loginAdministrative(null);

I am using this method in my bundle and  it works.

Why it is working if it is depcreated?

Any issue in using it ?

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 10

No issue other than a future version may drop it, However for now - it works. 

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

No issue other than a future version may drop it, However for now - it works. 

Avatar

Employee

Two things here:

1. Try to avoid admin sessions if you can

2. Since 6.0 there is a preferred way to get this, see this article for more details: 

http://stackoverflow.com/questions/35859278/aem-how-to-get-administrative-resource-resolver-since-ge...

Avatar

Level 10

To learn how to use a system user and sling mapping, see http://scottsdigitalcommunity.blogspot.ca/2014/12/querying-adobe-experience-manager-6.html?m=0. This links to article and video. In AEM 6.x, this is best practice: http://scottsdigitalcommunity.blogspot.ca/2014/12/querying-adobe-experience-manager-6.html?m=0