-
Gabriel Rossetti wrote:
if you look here: [[http://docs.tigase.org/tigase-server/snapshot/Development_Guide/webhelp/_global_configuration_settings.html]] is says to use
SHARED_USER_REPO_PROP_KEY@, @SHARED_USER_REPO_POOL_PROP_KEY&SHARED_AUTH_REPO_PROP_KEYwhich are marked as deprecated. The page needs to be updated to use @RepositoryFactory@.Thank you, corrected in the repository.
Is this (e.g.
AuthRepository auth_repo = (AuthRepository) properties.get(RepositoryFactory.SHARED_AUTH_REPO_PROP_KEY)@) still the way to get the auth & user repos or should @RepositoryFactory.getAuthRepository()&RepositoryFactory.getUserRepository()be used now? Pls update the example if this is is the way to do this now.Method described in the docs refer to configuration and obtaining default, shared repository(pool) instance. @RepositoryFactory.get*()* methods on the other hand can provide you your own pool of repositories.
Also you reference
UserAuthRepositorywhich I was unable to find in 5.2.1, not sure if this is an error or if it is in the development version.This was remnant from older code, corrected.
-
Wojciech Kapcia wrote:
Gabriel Rossetti wrote:
Thanks for the corrections you did.
Is this (e.g.
AuthRepository auth_repo = (AuthRepository) properties.get(RepositoryFactory.SHARED_AUTH_REPO_PROP_KEY)@) still the way to get the auth & user repos or should @RepositoryFactory.getAuthRepository()&RepositoryFactory.getUserRepository()be used now? Pls update the example if this is is the way to do this now.Method described in the docs refer to configuration and obtaining default, shared repository(pool) instance. @RepositoryFactory.get*()* methods on the other hand can provide you your own pool of repositories.
Ok, I see. Maybe this can be mentioned somewhere?
Also, I cannot close the issue myself so since it is asigned to me I get email reminders all the time for this issue, once you have answered the above can you pls close it?
Thanks,
Gabriel
-
Applied in changeset commit:tigase-server|223dbee3.
| Type |
Bug
|
| Priority |
Normal
|
| Assignee | |
| RedmineID |
2603
|
| Spent time |
0
|
Hi all,
if you look here: [[http://docs.tigase.org/tigase-server/snapshot/Development_Guide/webhelp/_global_configuration_settings.html]] is says to use
SHARED_USER_REPO_PROP_KEY@, @SHARED_USER_REPO_POOL_PROP_KEY&SHARED_AUTH_REPO_PROP_KEYwhich are marked as deprecated. The page needs to be updated to use @RepositoryFactory@.Is this (e.g.
AuthRepository auth_repo = (AuthRepository) properties.get(RepositoryFactory.SHARED_AUTH_REPO_PROP_KEY)@) still the way to get the auth & user repos or should @RepositoryFactory.getAuthRepository()&RepositoryFactory.getUserRepository()be used now? Pls update the example if this is is the way to do this now.Also you reference
UserAuthRepositorywhich I was unable to find in 5.2.1, not sure if this is an error or if it is in the development version.Thx,
Gabriel