0 Replies Latest reply on Sep 13, 2006 2:36 PM by Charles Abreu

    Define datasource at runtime on embedded container

    Charles Abreu Newbie


      What are the basics steps to define a datasource at runtime?

      Our application is running very well via Webstart. All the jars are signed, because of security requirements. The problem comes when we need to distribute our app to our users and try to install it on their web servers. Then we need to modify the datasource, which is defined inside embedded-jboss-beans.xml, which was placed inside a archive, which is signed. We have found the process to be very complex to open archive, edit xml, rebuild archive and sign it again - specially the last step. If we could define de datasource in a separate file and load it ourselves in our code, we could solve the problem without touching the archives.

      Thanks in advance.