embed-server in cli in WF 24+

28 views
Skip to first unread message

Misha Shaygu

unread,
Jul 18, 2024, 3:54:05 PM (9 days ago) Jul 18
to WildFly
hi all, i don't find any description on major limitations of usage embed-server in official documentation

i see i can use embed-server for offline configuring server but what about running server?

i can use universal cli like

embed-server --server-config=standalone-full-ha.xml

if (outcome == success) of /system-property=jboss.as.management.blocking.timeout:read-resource
    /system-property=jboss.as.management.blocking.timeout:remove
end-if
/system-property=jboss.as.management.blocking.timeout:add(value=600)


and don't check server status(offline/running)? 

i can use embed-server for change configuration on the fly if it non reload-needed?

i need stop embed-server if i use /bin/jboss-cli.sh --file=test.cli?

Bartosz Baranowski

unread,
Jul 22, 2024, 2:32:53 AM (5 days ago) Jul 22
to WildFly
On Thursday, July 18, 2024 at 9:54:05 PM UTC+2 Misha Shaygu wrote:
hi all, i don't find any description on major limitations of usage embed-server in official documentation

i see i can use embed-server for offline configuring server but what about running server?

https://www.wildfly.org/news/2017/10/10/Embedded-Host-Controller/

AFAIR, embedded server is just for admin to tweak everything without server going live. Essentially sandboxed process that allow server process to ingest config or receive commands without it being exposed to outside world.

i can use universal cli like

embed-server --server-config=standalone-full-ha.xml

WDYM "universal". Above will use specific config to populate embedded server. 

if (outcome == success) of /system-property=jboss.as.management.blocking.timeout:read-resource
    /system-property=jboss.as.management.blocking.timeout:remove
end-if
/system-property=jboss.as.management.blocking.timeout:add(value=600)


and don't check server status(offline/running)? 

embedded-server has:
--timeout
 
 
i can use embed-server for change configuration on the fly if it non reload-needed?

AFAIR, no. Embedded server is different entity from running server. Changing XML config of running server by any means, is not reflected in running process(I think WFLY does not check).
 

i need stop embed-server if i use /bin/jboss-cli.sh --file=test.cli?

Im not sure what you are exactly trying to achieve here. 
Reply all
Reply to author
Forward
0 new messages