activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Passing temporary topics on a message
Date Wed, 03 May 2006 11:18:46 GMT
On 5/3/06, Aleksi Kallio <aleksi.kallio@csc.fi> wrote:
> > topic = new ActiveMQTempTopic(authoriseTo);
> [...]
> > authoriseTo = ((ActiveMQDestination) authoriseToTopic).getPhysicalName();
> >
> > and it should work.
> >
> > The main issue is that the last line you typed (session.createTopic)
> > will create a regular topic, not a temporary topic.
>
> Thanks! Unfortunately I'm getting now:
>
> javax.jms.InvalidDestinationException: Cannot use a Temporary
> destination from another Connection
>
> The string (physical topic name) I'm passing on the message is for example:
> TemporaryTopic-{TD{ID:joutsen.csc.fi-37800-1146651981603-6:0}TD}ID:joutsen.csc.fi-37800-1146651981603-17:0
>
> I'm using ActiveMQ version 3.1.

3.1 is very old; try using 4.0-RC3? Looking at the 4.x code I don't
see any exceptions being thrown when you create an ActiveMQTempTopic
from a String.

--

James
-------
http://radio.weblogs.com/0112098/

Mime
View raw message