There's no need for durable subscriptions. That's another nice thing about virtual topics :) The producer publishes messages to a virtual topic, the messages get routed to 'queues'. You can have the broker create those queues on startup.
Here's another option you may want to consider. http://activemq.apache.org/camel/recipient-list.html Joe www.ttmsolutions.com Fuzzo wrote: > > Thanks for the answer! > I've already read the "Retroactive Consumers" chapter in the docs but > there are some problems: > - a retroactive consumer will consume ALL retro-messages, even if it it > had already consumed previously > - i can't predict how many time the consumer will be down > - i can't predict how many messages the consumer loses > - lastImage method is not useful for my purposes! > > > Please tell me if I understood correctly about Virtual Topics: > - a virtual topic is a logical copy of a physical topic > - two virtual topic linked to a physical one contains both same messages > - a consumer of the first virtual topic does not consume the messages of > the second virtual topic (and vice-versa) > > If it's correct, i can publish messages on a physical topic and i can > create two virtual topic, one for every consumer. If the first consumer > goes online and make a durable subscription to the first virtual topic, > the second virtual topic will remain intact with all messages ready for > the second consumer, that will subscribe after the first. > > That's right? > > Many thanks and i'm sorry for my English :( > > > > Joe Fernandez wrote: >> >> I take it you need to use topics so here' some possibilities. >> >> Virtual topics >> http://activemq.apache.org/virtual-destinations.html >> >> Retroactive consumers and related recovery policy >> http://activemq.apache.org/retroactive-consumer.html >> http://activemq.apache.org/subscription-recovery-policy.html >> >> Joe >> www.ttmsolutions.com >> >> >> > > -- View this message in context: http://www.nabble.com/Creating-a-startup-subscription...-tp18753955p18756572.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.
