How to update standalone.xml offline

233 views
Skip to first unread message

Dipankaj Medhi

unread,
Aug 10, 2021, 6:32:56 AM8/10/21
to WildFly

Hi All,

Currently, as part of my project, I need to support legacy JAAS security domain to protect my EJBs. I am following the quickstart (https://github.com/wildfly/quickstart/tree/master/ejb-security-jaas) and updating the configuration using jboss-cli (https://github.com/wildfly/quickstart/blob/master/ejb-security-jaas/configure-elytron-jaas.cli). Everything is working fine with my POC.

 But, I am facing an issue when I am trying to apply this concept in production code. We wrap our production code along with WildFly and ask customer to start our product (which internally starts WildFly). As per my understanding, jboss-cli needs WildFly to be running- so, I am trying with the following two approach 

 Approach 1
  1. Start WildFly 
  2. Run jboss-cli and make all the config related to supporting legacy JAAS security domain
  3. Restart WildFly
This is having lots of challenges including the requirement to restart

  Approach 2 
  1. Update the standalone.xml (using ant.build during my product build time)
  2. Package my production code along with updated standalone.xml and WildFly   

Currently, I am following approach 2, but updating standalone.xml with ant.build looks inefficient for me. Is there any better approach? Any suggestion from the experts is welcome.   

Regards  

 Dipankaj

Yeray Borges Santana

unread,
Aug 12, 2021, 5:38:52 AM8/12/21
to Dipankaj Medhi, WildFly
Hello Dipankaj,

The embedded server is in place for such configuration activity without launching a server.

Take a look at this blog post entry: https://www.wildfly.org/news/2015/03/14/Offline-CLI/

Regards,
Yeray

--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/b2dbc5a8-6a24-4b9e-bf24-ab22107aeeedn%40googlegroups.com.

Dipankaj Medhi

unread,
Aug 12, 2021, 6:37:28 AM8/12/21
to Yeray Borges Santana, WildFly
Thanks  Yeray. That made my day :)
Reply all
Reply to author
Forward
0 new messages