There is no facility for compressing all data stored. However, you can create a
wrapper for your compressible Objects:
| import java.io.*;
| import java.util.zip.GZIPOutputStream;
|
| public class CompressedSerializable
| implements Serializable
| {
|
| private Serializable o; // uncompressed object
|
| public CompressedSerializable(Serializable o) {
| this.o = o;
| }
|
| private void writeObject(java.io.ObjectOutputStream out)
| throws IOException
| {
| ObjectOutputStream oos =
| new ObjectOutputStream(new GZIPOutputStream(out));
| oos.write(o);
| oos.flush();
| }
|
| private void readObject(java.io.ObjectInputStream in)
| throws IOException, ClassNotFoundException;
| }
You could, of course, modify UIL2 yourself and post a patch. It probably would be
easy to find the code that sends the payload and GZIP it if a flag is set.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3828173#3828173
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3828173
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user