TomS
TomS

Reputation: 1169

Show all JNDI names in Wildlfy 9

What is the correct way to show registered JNDI names in Wildfly 9?

For older versions it was possible to use /subsystem=naming:jndi-view, however it seems not working anymore. When running in domain mode.

Thanks for help.

Upvotes: 4

Views: 5326

Answers (2)

Peter Butkovic
Peter Butkovic

Reputation: 12179

The graphical way also worked for me, navigating to admin console and going for:

Runtime -> Standalone server -> Subsystems -> JNDI View -> View

Upvotes: 8

Tomaz Cerar
Tomaz Cerar

Reputation: 5791

Given that you are running in domain mode you need to tell server in which profile you are interested in jndi names.

running /subsystem=naming:jndi-view executes command on domain controller itself not on some profile that actually has subsystems defined.

to get what you want you would need to execute jndi-view operation on actual server running inside your domain.

For example :

/host=master/server=server-one/subsystem=naming:jndi-view

would return you jndi-view of server server-one on host master

Upvotes: 7

Related Questions