[wildfly-dev] Reading Mgt Model from a Servlet
Stan Silvert
ssilvert at redhat.com
Thu Jul 14 10:26:50 EDT 2016
So now I need to do this from the Keycloak Server WAR. If I assume that
my Keycloak WAR is the only application running on WildFly, can I safely
use Mazzitelli's approach? I need to read and write the management
model from Keycloak.
On 5/26/2015 5:51 PM, Jason Greene wrote:
> Nope. Although I would use newCachedThreadPool instead, as the fixed thread pool of 5 is just wasteful.
>
> Keep in mind this API is not something we encourage people to use from deployments, as any management op that acquires a write lock (some sort of modification), will deadlock the server if it used in the initialization path of a deployment. For this reason, we don’t publish it via any simple means
>> On May 26, 2015, at 3:51 PM, Stan Silvert <ssilvert at redhat.com> wrote:
>>
>> Some time ago, John Mazzitelli wrote a blog on how to get a local
>> ModelControllerClient from within a servlet.
>> http://management-platform.blogspot.com/2012/07/co-located-management-client-for.html
>>
>> Is there an easier way to do it these days?
>>
>> I need to read the attributes under /deployment=mydeployment.war/. Is
>> there an easier way to do that from the WAR than using a
>> ModelControllerClient?
>>
>> Thanks,
>>
>> Stan
>> _______________________________________________
>> wildfly-dev mailing list
>> wildfly-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/wildfly-dev
> --
> Jason T. Greene
> WildFly Lead / JBoss EAP Platform Architect
> JBoss, a division of Red Hat
>
More information about the wildfly-dev
mailing list