1 Reply Latest reply on May 4, 2009 10:56 AM by peterj

    How can we add the data-source programmatic ally

      Hi All,

      How can we add the data-source programmatic ally. since we don't want the mydatasource-ds.xml file.

      Please let us know how would we achieve it


      Appreciate your help

      Thanks & Regards,
      Naveen

        • 1. Re: How can we add the data-source programmatic ally
          peterj

          My, you like to do things the hard way, don't you? When JBoss AS deploys the *-ds.xml file, it generates a number of MBeans based on the *-ds.xml contents. So the trick would be to generate those MBeans programmatically.

          It would actually be easier to programmatically generate the *-ds.xml file (in some temp directory), and then programmatically move the file into the deploy directory. (I know this was discussed a time or two before but I cannot those posts...)