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
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.
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.
Test case
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.
Logged In: YES
user_id=515280
Well ... I'm not sure if it is a scenario the is so far of the path ...
What
if I have two different applications running in one container using the
same Entity Beans. I don't want to fool around with creating objects I
only need to communicate with a MDB. I really think it's a valid scenario
and would appreciate if you could have a look into it again.
Thanks a
lot
Rico