Menu

#445 Unable to send Entity Beans as Msg

v2.4 (stable)
closed-invalid
nobody
JBossMQ (152)
5
2002-04-18
2002-04-14
No

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

Discussion

  • Scott M Stark

    Scott M Stark - 2002-04-14
    • status: open --> open-postponed
     
  • Scott M Stark

    Scott M Stark - 2002-04-14

    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.

     
  • Scott M Stark

    Scott M Stark - 2002-04-14
    • status: open-postponed --> pending-postponed
     
  • Rico Kahnert

    Rico Kahnert - 2002-04-14

    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.

     
  • Rico Kahnert

    Rico Kahnert - 2002-04-14
    • status: pending-postponed --> open-postponed
     
  • Rico Kahnert

    Rico Kahnert - 2002-04-14

    Test case

     
  • Scott M Stark

    Scott M Stark - 2002-04-18
    • status: open-postponed --> closed-invalid
     
  • Scott M Stark

    Scott M Stark - 2002-04-18

    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.

     
  • Rico Kahnert

    Rico Kahnert - 2002-04-18

    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

     

Log in to post a comment.