This content has been marked as final.
Show 8 replies
-
1. Re: how to define a destination with MDB annotations only ?
clebert.suconic Sep 23, 2008 4:06 PM (in response to longbeach)Maybe this is a good example for you:
https://svn.jboss.org/repos/jbossas/projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/mdbtopic/TopicTestMDB.java -
3. Re: how to define a destination with MDB annotations only ?
longbeach Sep 24, 2008 1:39 AM (in response to longbeach)Thanks. I tried adding all these attributes, i get the error :
"javax.naming.NameNotFoundException: TestMdbTopic not bound"@MessageDriven(mappedName = "topic/TestMdbTopic", activationConfig = { @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"), @ActivationConfigProperty(propertyName="subscriptionDurability", propertyValue="Durable"), @ActivationConfigProperty(propertyName="subscriptionName", propertyValue="topicmdb"), @ActivationConfigProperty(propertyName="clientId", propertyValue="mdbtopic-test"), @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Topic"), @ActivationConfigProperty(propertyName = "destination", propertyValue = "topic/TestMdbTopic") })
Someone claims it works (in Spanish):
http://blog.neodoo.es/fsolans/entry/mdb_con_anotaciones_pojo_ejb3
It does not ( i kept only the attributes he used : mappedName, acknowledgeMode, destinationType, destination)
Does anyone else have a clue ? Thanks -
4. Re: how to define a destination with MDB annotations only ?
jaikiran Sep 24, 2008 2:18 AM (in response to longbeach)@ActivationConfigProperty(propertyName = "destination", propertyValue = "topic/TestMdbTopic")
Is this topic/TestMdbTopic created/deployed through the xml files? From what i remember, a non-existent topic/queue to which a MDB listens is not created by default by JBoss. This used to happen earlier, but not now. -
5. Re: how to define a destination with MDB annotations only ?
jaikiran Sep 24, 2008 2:24 AM (in response to longbeach)"jaikiran" wrote:
From what i remember, a non-existent topic/queue to which a MDB listens is not created by default by JBoss. This used to happen earlier, but not now.
https://jira.jboss.org/jira/browse/JBAS-5114 -
6. Re: how to define a destination with MDB annotations only ?
alrubinger Sep 24, 2008 5:22 AM (in response to longbeach)"jaikiran" wrote:
https://jira.jboss.org/jira/browse/JBAS-5114
@see my last comments on the issue regarding the validity of this feature.
We'll see what Jesper weighs in.
S,
ALR -
7. Re: how to define a destination with MDB annotations only ?
longbeach Sep 24, 2008 2:53 PM (in response to longbeach)thanks.
Well, can you drop a message in this thread when it's fixed so i can test it ?
Thanks again. -
8. Re: how to define a destination with MDB annotations only ?
alrubinger Sep 24, 2008 3:23 PM (in response to longbeach)It's not assigned to me, so I won't have notification either. :)
Best way to stay up-to-date is to put a "Watch" on the JIRA; you'll get email notifications.
S,
ALR