Patches item #637206, was opened at 2002-11-12 17:21
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376687&aid=637206&group_id=22866
Category: JBossMQ
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Ulf Schroeter (schrouf)
Assigned to: Nobody/Anonymous (nobody)
Summary: Incomplete SpyMessage serialization
Initial Comment:
Object serialization of class org.jboss.mq.SpyMessage
does not serialize attribute
SpyMessage.header.durableSubscriberID in
read/writeExternal().
Proposed code fix:
writeExternal(...)
{
...
...
if( header.durableSubscriberID != null )
{
out.writeBoolean( true );
writeString( out, header.durableSubscriberID.clientID );
writeString( out,
header.durableSubscriberID.subscriptionName );
writeString( out, header.durableSubscriberID.selector );
}
else
{
out.writeBoolean( false );
}
...
}
readExternal(...)
{
...
...
boolean durable = in.readBoolean();
if( durable )
{
String clientID = readString( in );
String subscriptionName = readString( in );
String selector = readString( in );
header.durableSubscriberID = new DurableSubscriberID(
clientID, subscriptionName, selector );
}
else
{
header.durableSubscriberID = null;
}
...
}
Followups
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376687&aid=637206&group_id=22866
-------------------------------------------------------
This sf.net email is sponsored by:
To learn the basics of securing your web site with SSL,
click here to get a FREE TRIAL of a Thawte Server Certificate:
http://www.gothawte.com/rd522.html
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development