An option would be to create a simple MBean that binds what you want, and is deployed on startup.
There are probably other ways of doing this as well...
Thanks for you suggestion. But I would like to avoid hard coding it.
I was thinking that there was an existing Mbean that's doing the task just like the External Context Mbean and so ...
any other suggestion ?
There might be an existing MBean, I don't know.
If you write your own, you could make the MBean read what is to be bound from the jboss-service.xml file-