activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mario Siegenthaler" <msiegentha...@inventsoft.ch>
Subject Re: Problem using ActiveMQ
Date Thu, 09 Aug 2007 15:46:52 GMT
If there are no exception thrown (I think you changed the sample code
to actually do something with the catched exceptions) and the code is
actually executed then the message must've been sent. How do you check
for the message?
Does "the session never be created" imply that the execution just stops on the
    Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE)
line?

Mario

On 8/9/07, denez <ibouddha@yahoo.fr> wrote:
>
> Hi Mario,
>
> First, thanks for your reply.
> I just try to run the so simple example that is in the website that i
> mentionned.
> After, if it's possible i will try to embedded the activeMQ to Tomcat.
> But for the moment, the session never be created but i have a connection.
> I can't understand what happend because there is no exception throw !!
> Could you help me again ?
>
> Thanks in advance,
> Regards,
>
> denez
>
>
> Mario Siegenthaler-2 wrote:
> >
> > I think you're supposed to call connection.start() as soon as you're
> > application thinks it fitting, connections don't come started (and I'd
> > hate it if they did). By documentation you can create session on
> > stopped connections you just won't receive any messages (not even sure
> > if you could send some messages, but I think you can).
> > Not sure if I understood you correctly..
> >
> > Mario
> >
> > On 8/8/07, denez <ibouddha@yahoo.fr> wrote:
> >>
> >> Hi all,
> >>
> >> i just try to user ActiveMQ under Tomcat 5.5
> >> I follow instruction in the link below :
> >> http://activemq.apache.org/setting-up-activemq-with-tomcat-559.html
> >> http://activemq.apache.org/setting-up-activemq-with-tomcat-559.html
> >> but without any success for the moment i hope.
> >> When i debug i've got the connection but with parameter started=false !
> >> So when i try to get a session nothing append. No error, no shutdown of
> >> tomcat.
> >>
> >> Can someone help me to deal with this problem.
> >>
> >> Thanks in advance.
> >> Regards,
> >>
> >> Denez
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Problem-using-ActiveMQ-tf4237284s2354.html#a12055977
> >> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Problem-using-ActiveMQ-tf4237284s2354.html#a12067742
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>

Mime
View raw message