I need to create and set a System Property to be available to deployed servlets.
Essentially I need to do the equivalent to invoking a JVM with a -D option.
How can this be done in JBoss?
You could start JBoss with -Dx=y :).
Or you could use the system properties service MBean...
Which lets you view and set system properties.