Hi,
This is a JMS question but as a JBoss package appears in the error
stack, I hope I can get some help here ...
I'm trying to send a Vector through a MapMessage using the setObject()
method.
Here is how :
<snip>
Vector myVector = new Vector();
myVector.addElement(new Integer(0));
myVector.addElement("Company");
MapMessage mess = topicSess.createMapMessage();
mess.setOject("newValue", myVector);
</snip>
It compil well but at runtime when creating the message, I get the
following error :
<snip>
14:40:41,288 ERROR [STDERR] javax.jms.MessageFormatException: Invalid
object type
14:40:41,291 ERROR [STDERR] at
org.jboss.mq.SpyMapMessage.setObject(SpyMapMessage.java:165)
</snip>
As the Vector is Serializable and the Integer and the String too, why
does it complain ?
Any help is welcome,
ionel
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user