-
1. Re: Eviction of security cache in domain mode or cluster mode
Bernard Labno Aug 8, 2013 4:53 PM (in response to Lukasz Szymik)Lukasz, have you resolved this?
-
2. Re: Eviction of security cache in domain mode or cluster mode
Lukasz Szymik Aug 9, 2013 3:42 AM (in response to Bernard Labno)Hello,
Unfortunatelly I did not find how to resolve that issue. This is currently on my long TODO list.
I will try to debug it one day.
-
3. Re: Eviction of security cache in domain mode or cluster mode
Radoslav Husar Aug 12, 2013 7:46 AM (in response to Lukasz Szymik)1 of 1 people found this helpfulJMX? No.
Use this CLI command:
[standalone@localhost:9999 /] /host=master/server=server-one/subsystem=security/security-domain=jboss-ejb-policy:flush-cache() { "outcome" => "success", "result" => undefined }
-
4. Re: Eviction of security cache in domain mode or cluster mode
Lukasz Szymik Aug 12, 2013 8:36 AM (in response to Radoslav Husar)Thanks a lot.
It is working with CLI command. At least it is only way how we could resolve it in domain mode. I will need to investigate how I could use it as interceptor from within source code of our business application. Maybe it will require that host and server node names will be configured inside application.
Best regards
Łukasz
-
5. Re: Eviction of security cache in domain mode or cluster mode
catherine zhou Aug 28, 2013 2:15 AM (in response to Lukasz Szymik)Hello Lukasz,
have you resolved this?
I have faced with same prombles in cluster domain mode, when I create a user or logoff, always expection: javax.management.InstanceNotFoundException: JBAS011342: No operation called 'flush-cache'.I did not find how to resolve this issue.
Thank you for your any help.
Best regards
Catherine
-
6. Re: Eviction of security cache in domain mode or cluster mode
Radoslav Husar Aug 28, 2013 7:27 AM (in response to Lukasz Szymik)Maybe it will require that host and server node names will be configured inside application.
Actually that might not even be necessary, the operation is executed on the domain and applies to all nodes. Also, IIRC if you connect via management client to a node you are managing the whole domian, not just one server. Read on for the management API reference:
https://docs.jboss.org/author/display/AS72/Management+API+reference
-
7. Re: Eviction of security cache in domain mode or cluster mode
Radoslav Husar Aug 28, 2013 7:29 AM (in response to catherine zhou)I have faced with same prombles in cluster domain mode, when I create a user or logoff, always expection: javax.management.InstanceNotFoundException: JBAS011342: No operation called 'flush-cache'.I did not find how to resolve this issue.
See above whats the right CLI-form command or send in the code to look at.
-
8. Re: Eviction of security cache in domain mode or cluster mode
catherine zhou Aug 29, 2013 5:56 AM (in response to Radoslav Husar)There is an error with CLI command in my environment.
/host=master/server=server-one/subsystem=security/security-domain=jboss-ejb-policy:flush-cache(). How to run CLI-form command? have relevant documents?
-
9. Re: Eviction of security cache in domain mode or cluster mode
Radoslav Husar Aug 29, 2013 1:17 PM (in response to catherine zhou)Please, always remember to add information that is helpful to help with what's wrong. Plainly saying "there is an error" is not helpful.
The CLI command is fed to the cli interface:
[rhusar@rhusar jboss-eap-6.1]$ ./bin/jboss-cli.sh -c
(or bat on windows)
You need to change the command to reflect your configuration: master host (master) server name (server-one), security domain (jboss-ejb-policy).
See some documentation here CLI Recipes - JBoss AS 7.2 - Project Documentation Editor and around or Command Line Interface