Bugs item #543823, was opened at 2002-04-14 13:16 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376685&aid=543823&group_id=22866
Category: JBossMQ Group: v2.4 (stable) >Status: Closed >Resolution: Invalid Priority: 5 Submitted By: Rico Kahnert (rkahnert) Assigned to: Nobody/Anonymous (nobody) Summary: Unable to send Entity Beans as Msg Initial Comment: Hi, I tried to send an EJB in an ObjectMessage and get the following Exception: javax.jms.MessageFormatException: ClassNotFoundException at org.jboss.mq.SpyObjectMessage.getObject (SpyObjectMessage.java:92) If I try it with a regular object it works fine. I'm absolutely sure that that the class (Remote Interface and Implementation) are in the classpath. Environment: Windows2000 SP2 / Debian Linux (not sure about the version) JDK/JRE 1.4 JBoss 2.4.4 (stable) I hope you can give me a hint of how to solve the problem/fix the problem pretty soon. THanks a lot Rico Kahnert ---------------------------------------------------------------------- >Comment By: Scott M Stark (starksm) Date: 2002-04-17 19:27 Message: Logged In: YES user_id=175228 You can't send the remote interface of an ejb as a serialized object. You would have to obtain the ejb handle and send that. Since the mdb is deployed with the target ejb it does not make sense for an external client to lookup the ejb and then pass a reference to it using jms. The jms message should simply describe which ejb the mdb should use. ---------------------------------------------------------------------- Comment By: Rico Kahnert (rkahnert) Date: 2002-04-14 14:26 Message: Logged In: YES user_id=515280 Here is a test case ... Just deploy the ear. The client is included in the jar/ear. It's testcase.MessageBeanClient and has main. ---------------------------------------------------------------------- Comment By: Scott M Stark (starksm) Date: 2002-04-14 13:23 Message: Logged In: YES user_id=175228 Provide a test case as there are too many variables to say why this should or should not work. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376685&aid=543823&group_id=22866 _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
