Try navigating down the /deployment=Foo.war/subsystem/ejb3/entity-bean= path
nop not there, I dont think it is going to be under a deployment since in standalone.xml its a global setting for ejb3 subsystem.
But mostly,I need to do it programatically from Java.
The flag which needs to be written is default-entity-bean-optimistic-locking it is in ejb3 subsystem. What confused me was trying to look for entity-bean sub-level,similar to standalone.xml file