Bugs item #607721, was opened at 2002-09-11 09:33
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=607721&group_id=22866

Category: JBossMQ
Group: v3.0 Rabbit Hole
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Ulf Schroeter (schrouf)
>Assigned to: Adrian Brock (ejort)
Summary: Incomplete JMS Message Serialization

Initial Comment:
Object serialization of class org.jboss.mq.SpyMessage 
does not serialize attribute 
SpyMessage.header.durableSubscriberID in 
read/writeExternal().

Proposed code fixed:

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;
}
...
}


----------------------------------------------------------------------

>Comment By: Adrian Brock (ejort)
Date: 2003-03-17 18:10

Message:
Logged In: YES 
user_id=9459

The subscriber id does not need to be serialized.
This did cause problems with recovery in earlier versions
of jbossmq but this was fixed a while ago.

Regards,
Adrian

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=607721&group_id=22866


-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to