Share

HAPI

Tracker: Feature Requests

5 serializable message objects - ID: 1263250
Last Update: Comment added ( jamesagnew )

Would it be possible to make message objects
serializable? This would allow message objects to be
used with web services and JMS.


Gerald Bortis ( gerald_bortis ) - 2005-08-18 17:39

5

Open

None

Nobody/Anonymous

0.5

None

Public


Comments ( 4 )




Date: 2009-07-22 03:00
Sender: jamesagnewProject Admin

Oops, wasn't logged in to add that comment. This new sourceforge layout is
confusing. :)

If you have questions, please feel free to email me. I'll make sure the
next release of HAPI corrects this issue.


Date: 2009-07-22 02:58
Sender: nobody

Thanks for the update, I had forgotten about this issue. HAPI has had
serializable objects for a while, but this seems to have broken. I've added
a regression test to prevent this in the future.

ValidationContext is the culprit, if you use a customized validation
context which supports serialization, it should work.

The following code should help in your parsing class:
Parser p = new NewPipeParser();
p.setValidationContext(new
SerializableValidationContext());
Message parsed = p.parse(message);

And then as a new class:

private static class SerializableValidationContext extends
ValidationContextImpl implements Serializable
{

}



Date: 2009-07-17 21:48
Sender: ohr

This would indeed be nice. Right now, passing a Message though a JMS
queue/topic always involves an extra render/parse step


Date: 2006-08-02 20:25
Sender: nobody

Logged In: NO

I'd like to second this request.


Log in to comment.




Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.