Not currently. It could probably be added as a
Managed Operation to org.jboss.ejb.Container
Sure, this code sets a JNDI Value:
public void addEntry(String jndiName, String entry)
InitialContext jndiContext = new InitialContext();
Util.bind( jndiContext, jndiName, entry );
catch ( NamingException namEx )
logger.error( "Exception caught in addEntry", namEx );
Make this code an exposed MBean method, and you're done.
Well actually that won't work for env entries.
They are classloader based.
You have to temporarily swap in the container's
classloader - see invoke()
You probably also want to validate it is a property, not
an ejb-ref or a resource.
There's some conversion required of the entry
into the required class.