You need to make sure the broker is started before servicemix starts.
Try adding something like
<sm:container .... depends-on="activemq">
where "activemq" is the name of your spring bean for the ActiveMQ broker.
On Jan 3, 2008 11:28 AM, FabioR <[EMAIL PROTECTED]> wrote:
>
> I'm using SM embedded so I don't use servicemix.xml and the activemq.xmlis
> point to this port.
>
>
> bsnyder wrote:
> >
> > On Jan 2, 2008 1:08 PM, FabioR <[EMAIL PROTECTED]> wrote:
> >>
> >> I'm trying to configure JMSFLow then I put:
> >> <sm:container id="jbi"
> >> rootDir="../server"
> >> MBeanServer="#jmxServer"
> >> installationDirPath="../install"
> >> deploymentDirPath="../deploy"
> >> useMBeanServer="true"
> >> createMBeanServer="true"
> >> flowName="jms?jmsURL=tcp://localhost:61216"
> >> embedded="true">
> >>
> >> And I copy the activemq.xml file on the ./conf directory, but when I
> >> start
> >> my app I get this error:
> >> javax.jms.JMSException: Could not connect to broker URL:
> >> tcp://localhost:61216. Reason: java.net.ConnectException: Connection
> >> refused: conne
> >> at
> >> org.apache.activemq.util.JMSExceptionSupport.create(
> JMSExceptionSupport.java:33)
> >>
> >> It seems that activemq is not starting. What else I need to configure?
> >
> > First, the JMS flow is configured by default in the
> > conf/servicemix.xml configuration file. Second, have you changed the
> > conf/activemq.xml configuration file to start on port 61216?
> >
> > Bruce
> > --
> > perl -e 'print
> > unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> > );'
> >
> > Apache ActiveMQ - http://activemq.org/
> > Apache Camel - http://activemq.org/camel/
> > Apache ServiceMix - http://servicemix.org/
> > Apache Geronimo - http://geronimo.apache.org/
> >
> > Blog: http://bruceblog.org/
> >
> >
>
>
> -----
> Fabio Retzlaff
> --
> View this message in context:
> http://www.nabble.com/Configure-JMSFlow-tp14585194s12049p14594683.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/