-
1. Re: MDB not firing after upgrade to 2.0.0.CR3
timfox Jan 12, 2010 8:20 AM (in response to pieter.martin)How did you upgrade?
Copying over jars is not sufficient.
You will need to completely re-install HornetQ into JBoss AS by running the script as described in the quick start
-
2. Re: MDB not firing after upgrade to 2.0.0.CR3
pieter.martin Jan 12, 2010 8:21 AM (in response to timfox)Yeah I did a clean install of jboss 5.1.0.GA, then ran the ejb3 plugin as per http://community.jboss.org/message/73232# and then the hornetq script as per quick start guide.
-
3. Re: MDB not firing after upgrade to 2.0.0.CR3
ataylor Jan 12, 2010 8:24 AM (in response to pieter.martin)u need to add the "@ResourceAdapter("hornetq-ra.rar")", see the javaee examples in cr3 -
4. Re: MDB not firing after upgrade to 2.0.0.CR3
jmesnil Jan 12, 2010 8:24 AM (in response to pieter.martin)Did you manage to run the javaee/mdb examples shipped with 2.0.0.CR3? -
5. Re: MDB not firing after upgrade to 2.0.0.CR3
jaikiran Jan 12, 2010 8:29 AM (in response to pieter.martin)pieter.martin wrote:
Hi,
@ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/AlarmQueue") })
...
hornetq-jms.xml I added the following
<queue name="AlarmQueue">
<entry name="/queue/AlarmQueue"/>
</queue>
Thanks
Pieter
I am not much familiar with HornetQ config files, but does that queue configuration in your hornet-jms.xml bind the queue to queue/AlarmQueue jndi-name? I see an additional "/" in that "entry name".
Message was edited by: jaikiran pai - I hadn't noticed Jeff's and Andy's reply while posting.
-
6. Re: MDB not firing after upgrade to 2.0.0.CR3
pieter.martin Jan 12, 2010 8:52 AM (in response to ataylor)Hi,
Yip that fixed it. Added @ResourceAdapter("hornetq-ra.rar") and all is working again. Is this something new in CR3, is it always required as previously the code was hornetq specifics free?
Thanks
Pieter
-
7. Re: MDB not firing after upgrade to 2.0.0.CR3
ataylor Jan 12, 2010 8:56 AM (in response to pieter.martin)its a jboss thing, but we have to deploy the jca adapter as hornetq.rar not jms.rar, we need to leave the default adapter as is. a pain i know. when we fully integrate with jboss this wont be an issue
-
8. Re: MDB not firing after upgrade to 2.0.0.CR3
pieter.martin Jan 12, 2010 9:16 AM (in response to ataylor)Hi,
Next issue,
16:09:50,308 ERROR [HornetQMessageHandler] Failed to deliver message
java.lang.RuntimeException: javax.jms.JMSException: com.rorotika.ns.model.Alarm; local class incompatible: stream classdesc serialVersionUID = -5898672411113034851, local class serialVersionUID = -2513972412587458768
at com.rorotika.ns.NotificationServiceAlarmMDB.onMessage(NotificationServiceAlarmMDB.java:38)
Seems now it does not like my object anymore. I double checked now, the client and server are both using the same jar. Besides I have not touched that since upgrading.Any ideas?Is it perhaps required to add private static final long serialVersionUID = -2159565720565788581L; to the object now?ThanksPieter -
9. Re: MDB not firing after upgrade to 2.0.0.CR3
timfox Jan 12, 2010 9:26 AM (in response to pieter.martin)This error is not coming from HornetQ, it's just saying you have two versions of your class - with different serialVersionUID.
This is just a standard error the Java runtime throws when it detects incompatible classes when deserializing.
Either you have two different versions of your jar on your classpath, OR you are trying to consume messages from storage that were originally sent to the queue using a different version of your class.
Pieter.martin wrote:
Hi,
Next issue,
16:09:50,308 ERROR [HornetQMessageHandler] Failed to deliver message
java.lang.RuntimeException: javax.jms.JMSException: com.rorotika.ns.model.Alarm; local class incompatible: stream classdesc serialVersionUID = -5898672411113034851, local class serialVersionUID = -2513972412587458768
at com.rorotika.ns.NotificationServiceAlarmMDB.onMessage(NotificationServiceAlarmMDB.java:38)
Seems now it does not like my object anymore. I double checked now, the client and server are both using the same jar. Besides I have not touched that since upgrading.Any ideas?Is it perhaps required to add private static final long serialVersionUID = -2159565720565788581L; to the object now?ThanksPieter -
10. Re: MDB not firing after upgrade to 2.0.0.CR3
pieter.martin Jan 12, 2010 9:55 AM (in response to timfox)Hi,
Yes sorry, minor eclipse refactor that did not quite change the pom.xml file making eclipse using a different jar.
Thanks
Pieter