2 Replies Latest reply on Jan 26, 2003 10:45 PM by Setya Setya

    Bounding JNDI name to datasource at runtime

    Setya Setya Newbie

      Hi all,

      Is it possible to assemble datasource info and bound JNDI name to it at runtime ?
      I want to develop a GUI application that prompts for database name, server name etc at runtime and based on the input I want to assemble connection info to connect to the database and also bound the datasource to a JNDI name.
      The docs always instruct to edit the various XML files manually but never mention how to do it programmatically.
      I've browsed through various JBoss's jars and found that j2ee-management.jar might be the solution (or might not ?), but I just don't know where to start.

      I'm stuck and quick help is very much needed.

      Any advice would be greatly appreciated.

      Setya