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...