You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by QWERTY? <qw...@gmail.com> on 2007/12/20 02:10:02 UTC

unable to lookup a topic

Ok just as a disclaimer Im having alot of trouble setting up ActiveMQ,
because the documentation isnt that flash, but it appears it will do what i
need it to do.. if i could get it to work..

So im trying to do two things, setup Queue's and Topic's in my config so
when ActiveMQ starts it will have the queue/topics already defined
Also for Queue's I need to be able to retain unrecieved messages if ActiveMQ
is to go down, and they should be delivered once amq is up and a client is
there to recieve it.

I cant really seem to figure out how to setup the queue/topics properly in
my config xml i have setup the following 

    <destinations>
      <queue physicalName="testqueue" />
      <topic physicalName="testtopic" />
    </destinations>

both of these show up fine when i look in the web monitor, but from my
client I cannot look them up, is there a JNDI setup somewhere i need to
change? 

I can setup dynamic queues/topics so i know i can actually send/recieve
messages through activeMQ

any help is appreciated.



-- 
View this message in context: http://www.nabble.com/unable-to-lookup-a-topic-tp14428726s2354p14428726.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: unable to lookup a topic

Posted by QWERTY? <qw...@gmail.com>.
aahhh ok excellent, i just need to add those to the properties i pass into my
initial context, and it works fine.

Cheers,


ttmdev wrote:
> 
> See this  AMQ web page
> 
> http://activemq.apache.org/jndi-support.html
> 
> If you're running a standalone java app, then the jndi.properties file is
> what you're looking for. There is a very simple example of one in the
> above page. 
> 
> Joe
> 
> 
> 
> QWERTY? wrote:
>> 
>> Ok just as a disclaimer Im having alot of trouble setting up ActiveMQ,
>> because the documentation isnt that flash, but it appears it will do what
>> i need it to do.. if i could get it to work..
>> 
>> So im trying to do two things, setup Queue's and Topic's in my config so
>> when ActiveMQ starts it will have the queue/topics already defined
>> Also for Queue's I need to be able to retain unrecieved messages if
>> ActiveMQ is to go down, and they should be delivered once amq is up and a
>> client is there to recieve it.
>> 
>> I cant really seem to figure out how to setup the queue/topics properly
>> in my config xml i have setup the following 
>> 
>>     <destinations>
>>       <queue physicalName="testqueue" />
>>       <topic physicalName="testtopic" />
>>     </destinations>
>> 
>> both of these show up fine when i look in the web monitor, but from my
>> client I cannot look them up, is there a JNDI setup somewhere i need to
>> change? 
>> 
>> I can setup dynamic queues/topics so i know i can actually send/recieve
>> messages through activeMQ
>> 
>> any help is appreciated.
>> 
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/unable-to-lookup-a-topic-tp14428726s2354p14429351.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: unable to lookup a topic

Posted by ttmdev <jo...@ttmsolutions.com>.
See this  AMQ web page

http://activemq.apache.org/jndi-support.html

If you're running a standalone java app, then the jndi.properties file is
what you're looking for. There is a very simple example of one in the above
page. 

Joe



QWERTY? wrote:
> 
> Ok just as a disclaimer Im having alot of trouble setting up ActiveMQ,
> because the documentation isnt that flash, but it appears it will do what
> i need it to do.. if i could get it to work..
> 
> So im trying to do two things, setup Queue's and Topic's in my config so
> when ActiveMQ starts it will have the queue/topics already defined
> Also for Queue's I need to be able to retain unrecieved messages if
> ActiveMQ is to go down, and they should be delivered once amq is up and a
> client is there to recieve it.
> 
> I cant really seem to figure out how to setup the queue/topics properly in
> my config xml i have setup the following 
> 
>     <destinations>
>       <queue physicalName="testqueue" />
>       <topic physicalName="testtopic" />
>     </destinations>
> 
> both of these show up fine when i look in the web monitor, but from my
> client I cannot look them up, is there a JNDI setup somewhere i need to
> change? 
> 
> I can setup dynamic queues/topics so i know i can actually send/recieve
> messages through activeMQ
> 
> any help is appreciated.
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/unable-to-lookup-a-topic-tp14428726s2354p14429139.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: unable to lookup a topic

Posted by Rob Davies <ra...@gmail.com>.
On Jan 20, 2008, at 9:51 PM, QWERTY? wrote:

>
> I have resolved my redelivery issue, it turns out that once i put in
> "persistant=true" for the broker, it worked like a charm and  
> delivered all
> the messages ive been queueing up for weeks trying to get this  
> working.
>
> Regards,
>
> DKE
>
>
> rajdavies wrote:
>>
>> This certainly shouldn't be the case - could you submit a test case ?
>>
>> On Dec 20, 2007, at 7:07 PM, QWERTY? wrote:
>>
>>>
>>> OK so what I take from that is, if there are undelivered messages in
>>> the
>>> Queue when it goes down it wont deliver them once it comes back up
>>> (and a
>>> client connects)
>>>
>>> James.Strachan wrote:
>>>>
>>>> On 20/12/2007, QWERTY? <qw...@gmail.com> wrote:
>>>>>
>>>>> Now for my second issue, now to get the Queue'd messages to be
>>>>> sent after
>>>>> the
>>>>> MQ restarts?
>>>>>
>>>>> someone want to point me in the right direction?
>>>>
>>>> Try read this FAQ entry...
>>>> http://activemq.apache.org/how-do-i-create-new-destinations.html
>>>>
>>>> -- 
>>>> James
>>>> -------
>>>> http://macstrac.blogspot.com/
>>>>
>>>> Open Source Integration
>>>> http://open.iona.com
>>>>
>>>>
>>>
>>> -- 
>>> View this message in context:
>>> http://www.nabble.com/unable-to-lookup-a-topic-tp14428726s2354p14442962.html
>>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>>
>>
>>
>>
>

That's great! thx for letting us know!!



Rob Davies
'Go further faster with Apache Camel!'
http://rajdavies.blogspot.com/






> -- 
> View this message in context: http://www.nabble.com/unable-to-lookup-a-topic-tp14428726s2354p14987393.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



Re: unable to lookup a topic

Posted by QWERTY? <qw...@gmail.com>.
I have resolved my redelivery issue, it turns out that once i put in
"persistant=true" for the broker, it worked like a charm and delivered all
the messages ive been queueing up for weeks trying to get this working.

Regards,

DKE


rajdavies wrote:
> 
> This certainly shouldn't be the case - could you submit a test case ?
> 
> On Dec 20, 2007, at 7:07 PM, QWERTY? wrote:
> 
>>
>> OK so what I take from that is, if there are undelivered messages in  
>> the
>> Queue when it goes down it wont deliver them once it comes back up  
>> (and a
>> client connects)
>>
>> James.Strachan wrote:
>>>
>>> On 20/12/2007, QWERTY? <qw...@gmail.com> wrote:
>>>>
>>>> Now for my second issue, now to get the Queue'd messages to be  
>>>> sent after
>>>> the
>>>> MQ restarts?
>>>>
>>>> someone want to point me in the right direction?
>>>
>>> Try read this FAQ entry...
>>> http://activemq.apache.org/how-do-i-create-new-destinations.html
>>>
>>> -- 
>>> James
>>> -------
>>> http://macstrac.blogspot.com/
>>>
>>> Open Source Integration
>>> http://open.iona.com
>>>
>>>
>>
>> -- 
>> View this message in context:
>> http://www.nabble.com/unable-to-lookup-a-topic-tp14428726s2354p14442962.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/unable-to-lookup-a-topic-tp14428726s2354p14987393.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: unable to lookup a topic

Posted by Rob Davies <ra...@gmail.com>.
This certainly shouldn't be the case - could you submit a test case ?

On Dec 20, 2007, at 7:07 PM, QWERTY? wrote:

>
> OK so what I take from that is, if there are undelivered messages in  
> the
> Queue when it goes down it wont deliver them once it comes back up  
> (and a
> client connects)
>
> James.Strachan wrote:
>>
>> On 20/12/2007, QWERTY? <qw...@gmail.com> wrote:
>>>
>>> Now for my second issue, now to get the Queue'd messages to be  
>>> sent after
>>> the
>>> MQ restarts?
>>>
>>> someone want to point me in the right direction?
>>
>> Try read this FAQ entry...
>> http://activemq.apache.org/how-do-i-create-new-destinations.html
>>
>> -- 
>> James
>> -------
>> http://macstrac.blogspot.com/
>>
>> Open Source Integration
>> http://open.iona.com
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/unable-to-lookup-a-topic-tp14428726s2354p14442962.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>


Re: unable to lookup a topic

Posted by QWERTY? <qw...@gmail.com>.
OK so what I take from that is, if there are undelivered messages in the
Queue when it goes down it wont deliver them once it comes back up (and a
client connects)

James.Strachan wrote:
> 
> On 20/12/2007, QWERTY? <qw...@gmail.com> wrote:
>>
>> Now for my second issue, now to get the Queue'd messages to be sent after
>> the
>> MQ restarts?
>>
>> someone want to point me in the right direction?
> 
> Try read this FAQ entry...
> http://activemq.apache.org/how-do-i-create-new-destinations.html
> 
> -- 
> James
> -------
> http://macstrac.blogspot.com/
> 
> Open Source Integration
> http://open.iona.com
> 
> 

-- 
View this message in context: http://www.nabble.com/unable-to-lookup-a-topic-tp14428726s2354p14442962.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: unable to lookup a topic

Posted by James Strachan <ja...@gmail.com>.
On 20/12/2007, QWERTY? <qw...@gmail.com> wrote:
>
> Now for my second issue, now to get the Queue'd messages to be sent after the
> MQ restarts?
>
> someone want to point me in the right direction?

Try read this FAQ entry...
http://activemq.apache.org/how-do-i-create-new-destinations.html

-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com

Re: unable to lookup a topic

Posted by QWERTY? <qw...@gmail.com>.
Now for my second issue, now to get the Queue'd messages to be sent after the
MQ restarts?

someone want to point me in the right direction?

-- 
View this message in context: http://www.nabble.com/unable-to-lookup-a-topic-tp14428726s2354p14429911.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.