8 Replies Latest reply on Nov 30, 2009 10:04 AM by ips

    jboss jndi creation

      Hi,
      I'm using jboss 5.
      When I using the admin console:

      * if you create a new data source, it is places in server/xxx/deploy as jndiname -ds.xml
      * if you edit an existing data source (including one you just created a few seconds ago) then the modifications (or actually, a whole new set of config settings) is placed in server/xxx/data/attachment/ datasourcename-ds.xml-randomid /org.jboss.resource.metadata.mcf.ManagedConnectionFactoryDeploymentGroup.attachment.xml

      What I would like to do is merge the changes that appear in the org.jboss.resource.metadata.mcf.ManagedConnectionFactoryDeploymentGroup.attachment.xml file into the server/xxx/deploy/*-ds.xml file.

      There is a way to do this?
      Thanks

        • 1. Re: jboss jndi creation
          ips

          No, there is no way to do this. The ds.xml files are only updated at creation or deletion. The ProfileService tracks all property updates only in the attachment xml files, and those files take precedence over the ds.xml files.

          • 2. Re: jboss jndi creation
            peterj

             

            those files take precedence over the ds.xml files.

            Is embedded jopr the one that applies the changes? In other words, if I delete the server/xxx/deploy/admin-console.war, are those changes still applied when I boot?

            • 3. Re: jboss jndi creation
              peterj

              Never mind - I should read and comprehend the full response before answering:

              The ProfileService tracks all property updates


              • 4. Re: jboss jndi creation
                ips

                No problem. I should have also added that the Jopr jboss-as-5 plugin makes all config updates via the Profile Service. This is different than the jboss-as-4 plugin which directly updated the ds.xml files (since the Profile Service did not exist in AS4).

                • 5. Re: jboss jndi creation

                  Hi,
                  thanks for the info.
                  Another question: I've installed JON and I've put the agent on 2 different servers that have JBoss AS 5.
                  By JON I have the ability to monitor processes, but exists the possibility to create resources (eg DataSource, JMS queues, etc.) or is "just" a monitoring console?
                  Thanks a lot
                  Bye

                  • 6. Re: jboss jndi creation

                     

                    "Artec" wrote:
                    Hi,
                    thanks for the info.
                    Another question: I've installed JON and I've put the agent on 2 different servers that have JBoss AS 5.
                    By JON I have the ability to monitor processes, but exists the possibility to create resources (eg DataSource, JMS queues, etc.) or is "just" a monitoring console?
                    Thanks a lot
                    Bye


                    ...sorry, I've found what I'm looking for.
                    Thans a lot
                    Bye
                    Davide

                    • 7. Re: jboss jndi creation

                      Hi,
                      there's a way, by JON, to create a datasource and deploy it on a cluster ( 2 different servers ) ?
                      Thanks
                      Bye
                      Davide

                      • 8. Re: jboss jndi creation
                        ips

                        There's currently no way to deploy a datasource to a group via the Jopr GUI. However, it could probably be scripted using the CLI. Can someone who's more of a CLI expert comment on this?