0 Replies Latest reply on Jan 27, 2012 3:20 AM by Jesper Thorhauge

    Custom subsystem deploying CLI scripts hangs

    Jesper Thorhauge Newbie

      Hi,

       

      I am trying to avoid using standalone.xml for configuring my AS7 instance, because for me, its really not realistic to configure 20+ instances, each with prod., dev. and test stagings. I simply want each WAR deployment to embed a CLI script that sets up datasources, mailservice, jaas configuration etc. Much like https://issues.jboss.org/browse/AS7-3427 suggest. This was soo easy to do in AS 5.1 using thing like -ds.xml, login-config.xml, mail-service.xml etc. in EAR deployments. But now i want to keep-it-simple and use WAR files :-) So...;

       

      1. I have managed to write a custom subsystem  (https://docs.jboss.org/author/display/AS7/Example+subsystem) that hooks into the WAR deployment process before everything else, and that works so far.

       

      2. It picks up a CLI (sort-of) script from within the WAR file and connects to the AS7 via the detyped management API (https://docs.jboss.org/author/display/AS7/Detyped+management+and+the+jboss-dmr+library)

       

      3. And hangs when i try to add a datasource :-(

       

      The message is

       

      "JBAS015052: Did not receive a response to the deployment operation within the allowed timeout period [60 seconds]. Check the server configuration file and the server logs to find more about the status of the deployment."

       

      The exact same CLI commands works fine executed "outside" the WAR deployment process, that is, before and after the WAR file is deployed. Is AS 7 somehow locking the configuration during deployment?

       

      Any help  will be much appriciated.