I just added the jndiDestinations="true", now when I post I see an extra
debug message:

13:44:28,468 DEBUG SpyDestinationObjectFactory -
SpyDestinationObjectFactory->getObjectInstance()

But I am still not receiving any messages.  I tried subscribing for both
"topic/pingTopic" and "pingTopic".  And to confirm, I have another
program listening to this topic (using regular JMS instead of the
Messenger library) and it does receive the events.  I did some
debugging, in the debugging log I get a few JMSExceptions:

14:03:25,187 DEBUG BeanUtils -
BeanUtils.populate(org.apache.commons.messenger.DefaultMessenger@126ba64
session: javax.jms.JMSException: No SessionFactory configured for this
Messenger. Cannot create a new JMS Session, {jndiDestinations=true,
name=topic})
14:03:25,187 DEBUG BeanUtils -
setProperty(org.apache.commons.messenger.DefaultMessenger@126ba64
session: javax.jms.JMSException: No SessionFactory configured for this
Messenger. Cannot create a new JMS Session, jndiDestinations, true)
14:03:25,187 DEBUG ConvertUtils - Convert string 'true' to class
'boolean'
14:03:25,187 DEBUG ConvertUtils -   Using converter
org.apache.commons.beanutils.converters.BooleanConverter@3a835d
14:03:25,187 DEBUG BeanUtils -
setProperty(org.apache.commons.messenger.DefaultMessenger@126ba64
session: javax.jms.JMSException: No SessionFactory configured for this
Messenger. Cannot create a new JMS Session, name, topic)

Michael


> -----Original Message-----
> From: James Strachan [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, August 28, 2002 12:35 PM
> To: Jakarta Commons Users List
> Subject: Re: [Messenger] - Problem subscribing for JBossMQ topics
> 
> 
> Hi Michael
> 
> I don't have JBossMQ installed right now so I can't verify 
> this, so I'll take a random guess :-)
> 
> Maybe ensuring that JNDI is used to lookup destinations might 
> help. I noticed that the MessengerJBoss.xml didn't have JNDI 
> enabled destinations enabled for the topic connection, yet it 
> did for the queue connection some reason - this is probably a bug.
> 
> e.g. try adding  the jndiDestionations property...
> 
> <messenger name="topic" jndiDestinations="true">
>     <jndi ...>
> 
> James
> -------
> http://radio.weblogs.com/0112098/
> ----- Original Message -----
> From: "Michael" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, August 27, 2002 10:47 AM
> Subject: [Messenger] - Problem subscribing for JBossMQ topics
> 
> 
> > I have installed the Messenger libraries and added them to 
> my webapp.  
> > I copied the EchoMDO object and now I'm trying to have it 
> received a 
> > topic but it is not receiving any messages.  I have 
> everything working 
> > without the Messenger library so I believe I have my JBossMQ 
> > configured correctly.
> >
> > I didn't change MessengerJBoss.xml except to rename it 
> Messenger.xml. 
> > Is this OK?
> >
> > In subscriptions.xml I have:
> >
> >   <subscription messenger="topic" destination="topic/pingTopic">
> >     <listener className="com.idtect.oemserver.message.EchoMDO"/>
> >   </subscription>
> >
> > And in my destinations-service.xml file for JBossMQ I have:
> >
> >   <mbean code="org.jboss.mq.server.jmx.Topic"
> > name="jboss.mq.destination:service=Topic,name=pingTopic">
> >     <depends 
> > 
> optional-attribute-name="DestinationManager">jboss.mq:service=Destinat
> > io
> > nManager</depends>
> >     <depends
> > 
> optional-attribute-name="SecurityManager">jboss.mq:service=Sec
> urityManag
> > er</depends>
> >     <attribute name="SecurityConf">
> >       <security>
> >         <role name="guest" read="true" write="true"/>
> >         <role name="publisher" read="true" write="true" 
> create="false"/>
> >         <role name="durpublisher" read="true" write="true"
> > create="true"/>
> >       </security>
> >     </attribute>
> >   </mbean>
> >
> > I believe I have everything configured right but I'm not sure.  Any 
> > help would be appreciated.
> >
> > Michael
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
> 
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts http://uk.my.yahoo.com
> 
> --
> To unsubscribe, e-mail:   
> <mailto:commons-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to