Required config property RequiredConfigPropertyMetaData
加上
@ActivationConfigProperty(propertyName = "destination ", propertyValue = "queue/queueMDB")
java.lang.ClassCastException:org.jboss.jms.message.ObjectMessageProxy
这是由于对象转换异常引起的。确保客户端发送的消息即为自己在MDB中取的对象,同时取得对象的方法为:
MDB mdb =(MDB) tmsg.getObject();
自己就是没用有getObject()来获取对象而错误。