I am trying to declare a new JNDI with the tool jboss-cli.sh.
This is my basic instruction:
/subsystem=naming/binding=java:/comp/env/config/rutaLogback:add(value="/var/opt/logback.xml",binding-type=simple)
The problem is that my value has a dot (value="/var/opt/logback.xml") and when I execute it , the value shown is only "xml" instead of the complete value that I wrote in the instruction.
I tried to escape the dot by many different ways.
:add(value="/var/opt/logback\.xml",binding-type=simple)
:add(value="/var/opt/logback\\.xml",binding-type=simple)
:add(value="/var/opt/logback\\\.xml",binding-type=simple)
:add(value="/var/opt/logback.xml",binding-type=simple)
Etc...
But it doesn`t work..
I expect to obtain the value /var/opt/logback.xml in the JNDI when i look that in the server console.
Finally I found the solution:
I watch the value in the standalone.xml and there the value is OK!! The problem seems to be only with the viewer of the admin console of the JBOSS and it doesn`t matter!