Simple Embedded Broker from Jar file

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Simple Embedded Broker from Jar file

sub3
Hi,

I am trying to get a very simple embedded broker running, inside a jar, running correctly. I have the
broker reading the activemq.xml file from the jar.  But what about other needed files?  It appears to
be trying to download other xsds.

My assumption was: If I have the right jars, it shouldn't be trying to download
the xsds (all necessary xsds were in the jars).

So my question is, Is that true?  If so, what am I missing from my dependency list.
If not, what do I need to do? Just dropping those schema files into a jar didn't work.

Thanks.

----

Dependencies from pom.xml:


        <dependencies>
        <dependency>
            <groupId>org.apache.activemq</groupId>
            <artifactId>activemq-all</artifactId>
                        <version>5.5.0</version>
        </dependency>
        <dependency>
            <groupId>org.apache.activemq</groupId>
            <artifactId>activemq-camel</artifactId>
            <version>5.5.0</version>
        </dependency>
        <dependency>
            <groupId>org.apache.xbean</groupId>
            <artifactId>xbean-spring</artifactId>
            <version>3.7</version>
        </dependency>

                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring</artifactId>
                        <version>2.5.6</version>
                </dependency>
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-jms</artifactId>
                        <version>2.5.6</version>
                </dependency>

                <dependency>
                        <groupId>org.apache.camel</groupId>
                        <artifactId>camel-spring</artifactId>
                        <version>2.7.0</version>
                </dependency>
       
 
                <dependency>
                        <groupId>org.slf4j</groupId>
                        <artifactId>slf4j-api</artifactId>
                        <version>1.5.8</version>
                </dependency>
                <dependency>
                        <groupId>org.slf4j</groupId>
                        <artifactId>slf4j-log4j12</artifactId>
                        <version>1.5.8</version>
                </dependency>
                <dependency>
                        <groupId>log4j</groupId>
                        <artifactId>log4j</artifactId>
                        <version>1.2.16</version>
                </dependency>

        </dependencies>
Reply | Threaded
Open this post in threaded view
|

Re: Simple Embedded Broker from Jar file

tocrone
I actually don't have a good answer for your question but I thought I would
add something based on my recent experience...

activemq-all seems to already have an slf4j (5.x) contained as a dependency.
 This caused me issues because I was trying to use SLF4j 6.x.  I switched to
activemq-core and all was well.  Just a note if you start having weird
issues with dependencies.

Todd

On Wed, Aug 24, 2011 at 9:15 AM, sub3 <[hidden email]> wrote:

> Hi,
>
> I am trying to get a very simple embedded broker running, inside a jar,
> running correctly. I have the
> broker reading the activemq.xml file from the jar.  But what about other
> needed files?  It appears to
> be trying to download other xsds.
>
> My assumption was: If I have the right jars, it shouldn't be trying to
> download
> the xsds (all necessary xsds were in the jars).
>
> So my question is, Is that true?  If so, what am I missing from my
> dependency list.
> If not, what do I need to do? Just dropping those schema files into a jar
> didn't work.
>
> Thanks.
>
> ----
>
> Dependencies from pom.xml:
>
>
>        <dependencies>
>        <dependency>
>            <groupId>org.apache.activemq</groupId>
>            <artifactId>activemq-all</artifactId>
>                        <version>5.5.0</version>
>        </dependency>
>        <dependency>
>            <groupId>org.apache.activemq</groupId>
>            <artifactId>activemq-camel</artifactId>
>            <version>5.5.0</version>
>        </dependency>
>        <dependency>
>            <groupId>org.apache.xbean</groupId>
>            <artifactId>xbean-spring</artifactId>
>            <version>3.7</version>
>        </dependency>
>
>                <dependency>
>                        <groupId>org.springframework</groupId>
>                        <artifactId>spring</artifactId>
>                        <version>2.5.6</version>
>                </dependency>
>                <dependency>
>                        <groupId>org.springframework</groupId>
>                        <artifactId>spring-jms</artifactId>
>                        <version>2.5.6</version>
>                </dependency>
>
>                <dependency>
>                        <groupId>org.apache.camel</groupId>
>                        <artifactId>camel-spring</artifactId>
>                        <version>2.7.0</version>
>                </dependency>
>
>
>                <dependency>
>                        <groupId>org.slf4j</groupId>
>                        <artifactId>slf4j-api</artifactId>
>                        <version>1.5.8</version>
>                </dependency>
>                <dependency>
>                        <groupId>org.slf4j</groupId>
>                        <artifactId>slf4j-log4j12</artifactId>
>                        <version>1.5.8</version>
>                </dependency>
>                <dependency>
>                        <groupId>log4j</groupId>
>                        <artifactId>log4j</artifactId>
>                        <version>1.2.16</version>
>                </dependency>
>
>        </dependencies>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Simple-Embedded-Broker-from-Jar-file-tp3765273p3765273.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
Todd