1 Reply Latest reply on Apr 22, 2013 2:44 AM by Tomohisa igarashi

    hornetq-configuration.xml and hornetq-jms.xml files,

    Put Time Newbie

      I read in the HornetQ's documentation that the files hornetq-configuration.xml and hornetq-jms.xml, are used to configure HornetQ.

       

      I can see that these files are present in the quickstart sample "camel-jms-binding" (and many others).

       

      But when I tried to create my own project from scratch, these two files are not present. How did it get created in the quickstart sample?

       

      I tried adding this to my project's pom.xml,

       

       

        <dependency>
         <groupId>org.hornetq</groupId>
         <artifactId>hornetq-core-client</artifactId>
        </dependency>
        <dependency>
         <groupId>org.hornetq</groupId>
         <artifactId>hornetq-core</artifactId>
        </dependency>
        <dependency>
         <groupId>org.hornetq</groupId>
         <artifactId>hornetq-jms</artifactId>
        </dependency>
        <dependency>
         <groupId>org.hornetq</groupId>
         <artifactId>hornetq-jms-client</artifactId>
        </dependency>
        <dependency>
         <groupId>org.jboss.netty</groupId>
         <artifactId>netty</artifactId>
        </dependency>
      
      

       

      but I get the error saying:

       

      Project build error: 'dependencies.dependency.version' for org.hornetq:hornetq-core-client:jar is missing.

      Project build error: 'dependencies.dependency.version' for org.jboss.netty:netty:jar is missing.

       

       

      and so on.

        • 1. Re: hornetq-configuration.xml and hornetq-jms.xml files,
          Tomohisa igarashi Master

          hornetq-configuration.xml and hornetq-jms.xml are placed in src/test/resources for just testing purpose so the HornetQMixIn could start standalone HornetQ instance. You don't need it when you deploy your application on AS7 with HornetQ enabled. If you want to use HornetQMixIn and standalone HornetQ in your unit test case, those 2 files are not created automatically, so just copy those from one of SY quickstarts to the src/test/resources in your application and modify if you need.

           

          And then, going to 2nd question:

           

          I tried adding this to my project's pom.xml,

           

           

            <dependency>
             <groupId>org.hornetq</groupId>
             <artifactId>hornetq-core-client</artifactId>
            </dependency>
            <dependency>
             <groupId>org.hornetq</groupId>
             <artifactId>hornetq-core</artifactId>
            </dependency>
            <dependency>
             <groupId>org.hornetq</groupId>
             <artifactId>hornetq-jms</artifactId>
            </dependency>
            <dependency>
             <groupId>org.hornetq</groupId>
             <artifactId>hornetq-jms-client</artifactId>
            </dependency>
            <dependency>
             <groupId>org.jboss.netty</groupId>
             <artifactId>netty</artifactId>
            </dependency>
          
          

           

          but I get the error saying:

           

           

          Project build error: 'dependencies.dependency.version' for org.hornetq:hornetq-core-client:jar is missing.

           

           

          Project build error: 'dependencies.dependency.version' for org.jboss.netty:netty:jar is missing.

           

           

           

          and so on.

           

          You may need to add "version" element for each dependency entry as the error message says. You can see SwitchYard parent pom to know which version is used by SwitchYard.

          https://github.com/jboss-switchyard/parent/blob/master/pom.xml