[jboss-dev-forums] [JBoss AS 7 Development] - Re: JMS module (HornetQ) can't find my class from WAR
jaikiran pai
do-not-reply at jboss.com
Wed Nov 23 09:06:38 EST 2011
jaikiran pai [http://community.jboss.org/people/jaikiran] created the discussion
"Re: JMS module (HornetQ) can't find my class from WAR"
To view the discussion, visit: http://community.jboss.org/message/637946#637946
--------------------------------------------------------------
> ronorato wrote:
>
> It seems that my webapp (located in a war file inside the ear file) is able to publish events to a HornetQ topic, but my EJB, also located in the ear, is not able to receive the messages. It fails during the deserialization process.
The important part is that the EJB jar will not have access to any classes in the .war. So if the object hierarchy that you are publishing as a ObjectMessage has any reference to such class(es) then it will fail. The right thing to do in such cases is package such classes in a .jar and place them in the .ear/lib so that they are accessible to both the .war and the EJB modules.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/637946#637946]
Start a new discussion in JBoss AS 7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20111123/10377b07/attachment.html
More information about the jboss-dev-forums
mailing list