[Opensymphony-oscache] Using a MDB instead of the MessageListener

khachchou <[email protected]> Mon, 29 Aug 2005 08:04:58 CDT
Newsgroups gmane.comp.java.open-symphony.os-cache
Message-ID <18551451.1125320950758.JavaMail.os-j2ee@opensymphony01.contegix.com>
Hi all,
I am using oscache-2.1 with hibernate-2.1.8 in a multi-tierd application deployed in a clustered server using Weblogic 8.1 sp4. For cache event listener, I am using com.opensymphony.oscache.plugins.clustersupport.JMS10BroadcastingListener. 
In this context, Oscache is facing the following issue while trying to notify cluster node servers: 
weblogic.jms.common.JMSException: Error deserializing object
        at weblogic.jms.common.ObjectMessageImpl.getObject(ObjectMessageImpl.java:145)
        at com.opensymphony.oscache.plugins.clustersupport.JMS10BroadcastingListener$1.onMessage(JMS10BroadcastingListener.java:118)
        at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2678)
        at weblogic.jms.client.JMSSession.execute(JMSSession.java:2598)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
Caused by: java.lang.ClassNotFoundException: com.opensymphony.oscache.plugins.clustersupport.ClusterNotification
(Notice that it is not reproducible.)
Hence I wonder if using a MDB(Message driven bean) instead of a MessageListener will solve the problem? Besides, would it be appropriate/feasable with the actual design, since the MessageListener is accessing a cahe instance (in handleClusterNotification method), thing which won't be easy using a MDB?

best regards
MK

---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=6205&messageID=14027#14027