Packet Serializable

Can the implemets Serializable be added to the Packet?

David,

I’'m not totally opposed to it, but can you provide a reason for wanting this?

Thanks,

Matt

Mainly to broaden its use to allow things like a go between for RMI etc. It would be preferable to creating a second encapsulation to do these transfers.

Why would you use RMI to send a packet? If you think about it, there is already a serlialization scheme in place, which is the toXML method. There’‘s not any real disadvantage to making packets Serializable, but at the same time, doing so could be confusing if there’'s no good reason to.

Regards,

Matt

I agree with that, but that would require it to be parsed again on the other side, or that outgoing messages from another source be converted into the packet format.

I agree with that, but that would require it to be

parsed again on the other side, or that outgoing

messages from another source be converted into the

packet format.

Yes, but this is what XMPP is for – it sends messages from one machine to another. In any case, let me consider the issue carefully, and then I’'ll post a follow-up here.

Regards,

Matt