Search code examples
javajbossjmsjndi

How to register new JNDI name at run time by our program?


Is there any way to create/register new JNDI name at run time in JBoss from our java class? Want to add new Queue on newly created JNDI name.

Thanks in advance.


Solution

  • Use bind method of InitialContext to register new objects in JNDI tree.