0 Replies Latest reply on May 25, 2007 11:53 AM by spievak

    Dynamic Data Sources...

    spievak

      Hi,

      I have a application using spring-framework, this application has a service management/deployment structure, it has its own embedded jetty web-server/servlet-container, customized to launch contexts dynamically. In this way i can serve new clients without having to restarting the entire web-server (jetty), like dynamic virtual host. Now i want to use the jboss TM and jboss xa-datasourcess, connection pooling, and cache.
      As my application launches diferent contexts, each context having it's own properties, i have to launch a data source configuration dynamically, have it associated with the jndi, and disponible to the context.
      I have done some tests, that create a new xa ds xml descriptor file, copies it to deploy dir, and it sucessfully launched. And then removing the descriptor file, to stop de datasource.
      Is there any way to dynamically launch a new datasource, without having to write xml files ?

      Thanks

      Rodrigo S. Cavalcanti