You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Javier Leyba <xl...@gmail.com> on 2006/03/17 13:51:49 UTC
Knowing existent persisted topics at startup
Hi
I need my application check which topics were persisted and still
exists in broker at start up.
I need this because I've topic names stored in a DB. My application
will try to load them from a DB and create them in broker. I want to
check if they exists before create'em and bind them to jndi.
How could I do this ?
Thanks in advance
J
Re: Knowing existent persisted topics at startup
Posted by James Strachan <ja...@gmail.com>.
I'd read this FAQ entry first to understand how ActiveMQ manages
destinations...
http://activemq.org/How+do+I+create+new+destinations
I think your best bet is going to be using the MBeans for ActiveMQ which
allow you to browse the available destinations and create them etc. You can
then expose them to JNDI yourself etc.
One new feature that might be useful is to patch the current JNDI provider
for ActiveMQ
http://activemq.org/JNDI+Support
to add an option where we connect to the broker's JMX remote connector &
query all the available destinations then pre-polulate the destinations in
the local JNDI context. Anyone fancy having a go at coding that? :)
James
On 3/17/06, Javier Leyba <xl...@gmail.com> wrote:
>
> Hi
>
> I need my application check which topics were persisted and still
> exists in broker at start up.
>
> I need this because I've topic names stored in a DB. My application
> will try to load them from a DB and create them in broker. I want to
> check if they exists before create'em and bind them to jndi.
>
> How could I do this ?
>
>
> Thanks in advance
>
> J
>
--
James
-------
http://radio.weblogs.com/0112098/