[jboss-user] [JBoss Messaging] - Re: MDB - Obejctmessage exception
tweety sat
do-not-reply at jboss.com
Tue Feb 1 07:52:05 EST 2011
tweety sat [http://community.jboss.org/people/tweetysat] created the discussion
"Re: MDB - Obejctmessage exception"
To view the discussion, visit: http://community.jboss.org/message/584606#584606
--------------------------------------------------------------
Ok, I've - almost - solved the the problem.
In fact the problem is that the Student class is in a package and the MDB in another package.
Using
logger.info(this.getClass().getClassLoader());
logger.info(Thread.currentThread().getContextClassLoader());
give me
13:37:15,760 INFO [ConsumerBean] BaseClassLoader at 1a3df98{vfszip:/D:/java/jboss-5.0.1.GA/server/jms/deploy/ejb1.jar/}
13:37:15,760 INFO [ConsumerBean] BaseClassLoader at 1a3df98{vfszip:/D:/java/jboss-5.0.1.GA/server/jms/deploy/ejb1.jar/}
So if the 2 classes are in the default package (in the root of the jar), there is no problem.
But if I use packages to store my classes it's not working.
What can I do ?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/584606#584606]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2042]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110201/12cfef85/attachment.html
More information about the jboss-user
mailing list