• RELEVANCY SCORE 5.83

    DB:5.83:Serialization m7





    what is serialization in java?

    DB:5.83:Serialization m7

    Check this.

    http://java.sun.com/developer/technicalArticles/Programming/serialization/

  • RELEVANCY SCORE 5.27

    DB:5.27:Serialization Group m3






    what is serialization group?

    how to create serialization group (using which T Code)?

    DB:5.27:Serialization Group m3


    Use TCODE BD44 todefine serialization group.

  • RELEVANCY SCORE 5.23

    DB:5.23:Serialization 3p





    How to serialize static variables?

    DB:5.23:Serialization 3p

    Write your own readObject() and writeObject() methods. See the Serialization Specification for details. But think carefully first: unless you code otherwise, the static variables will be overwritten every time you deserialize an object of the class. Is that exactly what you want?

  • RELEVANCY SCORE 5.04

    DB:5.04:Serialization cz


    How the serialization is achieved in c# 2008 ?

    DB:5.04:Serialization cz

    There are many ways. You might like to look at the devolutions.net Serialization FAQ
    (external link)

    Tim

  • RELEVANCY SCORE 5.04

    DB:5.04:Dom/Sax/Serialization. xf


    What is the difference between:
     
    1. DOM
    2. SAX
    3. Xml Serialization.
     
    Pointers to any articles comparing all three would be highly appreciated.
     
    Thanks.

  • RELEVANCY SCORE 5.04

    DB:5.04:Entity Graph Serialization To Xml pf


    Hi,

  • RELEVANCY SCORE 5.04

    DB:5.04:Object Serialization 3d


  • RELEVANCY SCORE 5.04

    DB:5.04:Serialization, Object Persistance, And Vectors xp


    I want to create a vector of Icon objects, and then store it out to a disk file. I'm assuming serialization would be my best bet. Does serialization of vectors automatically handle the deep end of serialization (ie will the actual colleciton of objects be stored out to a disk file as part of the serialization, that is, will serialization work as intuitively expected)?

    DB:5.04:Serialization, Object Persistance, And Vectors xp

    Try writing a test program. Vectors can be persisted by serialization.

    // Shabbily coded by x

    import java.io.Serializable;
    import java.io.ObjectInputStream;
    import java.io.FileInputStream;
    import java.io.ObjectOutputStream;
    import java.io.FileOutputStream;
    import java.util.Vector;
    import java.util.Iterator;

    public class SerialTest {

    public static void main(String[] args) throws Exception {
    ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream("test.out"));
    Vector vec = new Vector();
    vec.add(new TestObject("Hello"));
    vec.add(new TestObject("World"));
    System.out.println("Starting serialized write...");
    out.writeObject(vec);
    out.close();
    System.out.println("Finishing serialized write...");
    vec = null;

    // Read the vector from test.out
    ObjectInputStream in = new ObjectInputStream(new FileInputStream("test.out"));
    System.out.println("Reading Vector object...");
    vec = (Vector)in.readObject();
    Iterator it = vec.iterator();
    while(it.hasNext()) {
    TestObject to = (TestObject)it.next();
    System.out.println(to.getTest());
    }
    in.close();
    }
    }

    class TestObject implements Serializable {
    private String test = null;

    public TestObject(String test) {
    this.test = test;
    }

    public String getTest() {
    return this.test;
    }

    public void setTest() {
    this.test = test;
    }
    }

  • RELEVANCY SCORE 5.04

    DB:5.04:How To Serialize A Class Object Without Implementing Serialization Interfac 9p


    How to serialize a class object without implementing Serialization interface?

    DB:5.04:How To Serialize A Class Object Without Implementing Serialization Interfac 9p

    heres the class I am using....

    package eexternalize;

    import java.io.Externalizable;
    import java.io.IOException;
    import java.io.ObjectInput;
    import java.io.ObjectOutput;

    import java.util.ArrayList;

    public final class EExternalize implements Externalizable
    {

    private static final long serialVersionUID = 7526471155622776147L;

    private String identification;

    private String array1[];
    private String array2[];
    private String array3[];
    private String array4[];
    private String array5[];
    private String array6[];

    private ArrayList arraylist1;
    private ArrayList arraylist2;
    private ArrayList arraylist3;
    private ArrayList arraylist4;
    private ArrayList arraylist5;
    private ArrayList arraylist6;

    private ArrayList jtablearraylist1;
    private ArrayList jtablearraylist2;
    private ArrayList jtablearraylist3;
    private ArrayList jtablearraylist4;
    private ArrayList jtablearraylist5;
    private ArrayList jtablearraylist6;

    private ArrayList arraylistcontainsarraylists1;
    private ArrayList arraylistcontainsarraylists2;
    private ArrayList arraylistcontainsarraylists3;
    private ArrayList arraylistcontainsarraylists4;
    private ArrayList arraylistcontainsarraylists5;
    private ArrayList arraylistcontainsarraylists6;

    private ArrayList arraylistcontainsobjects1;
    private ArrayList arraylistcontainsobjects2;
    private ArrayList arraylistcontainsobjects3;

    public EExternalize()
    {

    identification=null;

    array1=null;
    array2=null;
    array3=null;
    array4=null;
    array5=null;
    array6=null;

    arraylist1=null;
    arraylist2=null;
    arraylist3=null;
    arraylist4=null;
    arraylist5=null;
    arraylist6=null;

    jtablearraylist1=null;
    jtablearraylist2=null;
    jtablearraylist3=null;
    jtablearraylist4=null;
    jtablearraylist5=null;
    jtablearraylist6=null;

    arraylistcontainsarraylists1=null;
    arraylistcontainsarraylists2=null;
    arraylistcontainsarraylists3=null;
    arraylistcontainsarraylists4=null;
    arraylistcontainsarraylists5=null;
    arraylistcontainsarraylists6=null;

    arraylistcontainsobjects1=null;
    arraylistcontainsobjects2=null;
    arraylistcontainsobjects3=null;

    }
    private final void writeArray(String array[],ObjectOutput arg0) throws IOException
    {

    int size=array.length;
    arg0.writeInt(size);

    for (int i=0;isize;i++)
    arg0.writeUTF((array==null) ? "" : array[i]);

    }

    private final void writeArrayList(ArrayList arraylist,ObjectOutput arg0) throws IOException
    {

    int size=arraylist.size();
    arg0.writeInt(size);

    for (int i=0;isize;i++)
    arg0.writeUTF((arraylist.get(i)==null) ? "" : arraylist.get(i).toString());

    }

    private final void writeArrayListObjects(ArrayList arraylist,ObjectOutput arg0) throws IOException
    {

    int size=arraylist.size();
    arg0.writeInt(size);

    for (int i=0;isize;i++)
    arg0.writeObject(arraylist.get(i));

    }

    private final void writeJtableArrayList(ArrayList jatblearraylist,ObjectOutput arg0) throws IOException
    {

    int size=jatblearraylist.size();

    arg0.writeInt(size);

    String single[];

    for (int i=0;isize;i++)
    {
    single=(String[])jatblearraylist.get(i);

    if(single != null)
    {
    int jsize=single.length;
    arg0.writeInt(jsize);

    for (int j=0;jjsize;j++)
    {
    arg0.writeUTF((single[j]==null) ? "" : single[j]);

    }

    }
    else
    {
    arg0.writeInt(0);
    }

    }

    }

    private final void writeArrayListContainsArrayLists(ArrayList arraylistcontainsarraylists
    ,ObjectOutput arg0)throws IOException
    {

    int size=arraylistcontainsarraylists.size();

    arg0.writeInt(size);

    ArrayList single;

    for (int i=0;isize;i++)
    {
    single=(ArrayList)arraylistcontainsarraylists.get(i);

    if(single != null)
    {
    int jsize=single.size();
    arg0.writeInt(jsize);

    for (int j=0;jjsize;j++)
    {

    arg0.writeUTF((single.get(j)==null) ? "" : single.get(j).toString());

    }

    }
    else
    {
    arg0.writeInt(0);
    }

    }

    }

    public void writeExternal(ObjectOutput arg0) throws IOException {

    arg0.writeUTF((identification==null) ? "" : identification);

    if(array1 !=null )
    {
    writeArray(array1,arg0);
    }else
    {
    arg0.writeInt(0);
    }

    if(array2 !=null )
    {
    writeArray(array2,arg0);
    }else
    {
    arg0.writeInt(0);
    }

    if(array3 !=null )
    {
    writeArray(array3,arg0);
    }else
    {
    arg0.writeInt(0);
    }

    if(array4 !=null )
    {
    writeArray(array4,arg0);
    }else
    {
    arg0.writeInt(0);
    }

    if(array5 !=null )
    {
    writeArray(array5,arg0);
    }else
    {
    arg0.writeInt(0);
    }

    if(array6 !=null )
    {
    writeArray(array6,arg0);
    }else
    {
    arg0.writeInt(0);
    }

    if(arraylist1 !=null )
    {
    writeArrayList(arraylist1,arg0);
    }else
    {
    arg0.writeInt(0);
    }

    if(arraylist2 !=null )
    {
    writeArrayList(arraylist2,arg0);
    }else
    {
    arg0.writeInt(0);
    }

    if(arraylist3 !=null )
    {
    writeArrayList(arraylist3,arg0);
    }else
    {
    arg0.writeInt(0);
    }

    if(arraylist4 !=null )
    {
    writeArrayList(arraylist4,arg0);
    }else
    {
    arg0.writeInt(0);
    }

    if(arraylist5 !=null )
    {
    writeArrayList(arraylist5,arg0);
    }else
    {
    arg0.writeInt(0);
    }

    if(arraylist6 !=null )
    {
    writeArrayList(arraylist6,arg0);
    }else
    {
    arg0.writeInt(0);
    }

    if(jtablearraylist1 !=null )
    {
    writeJtableArrayList(jtablearraylist1,arg0);
    }else
    {
    arg0.writeInt(0);
    }

    if(jtablearraylist2 !=null )
    {
    writeJtableArrayList(jtablearraylist2,arg0);
    }else
    {
    arg0.writeInt(0);
    }

    if(jtablearraylist3 !=null )
    {
    writeJtableArrayList(jtablearraylist3,arg0);
    }else
    {
    arg0.writeInt(0);
    }

    if(jtablearraylist4 !=null )
    {
    writeJtableArrayList(jtablearraylist4,arg0);
    }else
    {
    arg0.writeInt(0);
    }

    if(jtablearraylist5 !=null )
    {
    writeJtableArrayList(jtablearraylist5,arg0);
    }else
    {
    arg0.writeInt(0);
    }

    if(jtablearraylist6 !=null )
    {
    writeJtableArrayList(jtablearraylist6,arg0);
    }else
    {
    arg0.writeInt(0);
    }

    if(arraylistcontainsarraylists1 !=null )
    {
    writeArrayListContainsArrayLists(arraylistcontainsarraylists1,arg0);

    }else
    {
    arg0.writeInt(0);
    }

    if(arraylistcontainsarraylists2 !=null )
    {
    writeArrayListContainsArrayLists(arraylistcontainsarraylists2,arg0);

    }else
    {
    arg0.writeInt(0);
    }

    if(arraylistcontainsarraylists3 !=null )
    {
    writeArrayListContainsArrayLists(arraylistcontainsarraylists3,arg0);

    }else
    {
    arg0.writeInt(0);
    }

    if(arraylistcontainsarraylists4 !=null )
    {
    writeArrayListContainsArrayLists(arraylistcontainsarraylists4,arg0);

    }else
    {
    arg0.writeInt(0);
    }

    if(arraylistcontainsarraylists5 !=null )
    {
    writeArrayListContainsArrayLists(arraylistcontainsarraylists5,arg0);

    }else
    {
    arg0.writeInt(0);
    }

    if(arraylistcontainsarraylists6 !=null )
    {
    writeArrayListContainsArrayLists(arraylistcontainsarraylists6,arg0);

    }else
    {
    arg0.writeInt(0);
    }

    if(arraylistcontainsobjects1 !=null )
    {
    writeArrayListObjects(arraylistcontainsobjects1,arg0);

    }else
    {
    arg0.writeInt(0);
    }

    if(arraylistcontainsobjects2 !=null )
    {
    writeArrayListObjects(arraylistcontainsobjects2,arg0);

    }else
    {
    arg0.writeInt(0);
    }

    if(arraylistcontainsobjects3 !=null )
    {
    writeArrayListObjects(arraylistcontainsobjects3,arg0);

    }else
    {
    arg0.writeInt(0);
    }

    }

    private final String[] readArray(int size,String[] array,ObjectInput arg0)throws IOException
    {

    for (int i=0;isize;i++)
    {
    array[i]=arg0.readUTF();
    }

    return array;

    }

    private final ArrayList readArrayList(int size,ArrayList arraylist,ObjectInput arg0)throws IOException
    {

    for (int i=0;isize;i++)
    {
    arraylist.add(arg0.readUTF());
    }

    return arraylist;

    }

    private final ArrayList readArrayListObjects(int size,ArrayList arraylist,ObjectInput arg0)throws ClassNotFoundException, IOException
    {

    for (int i=0;isize;i++)
    {
    arraylist.add(arg0.readObject());
    }

    return arraylist;

    }

    private final ArrayList readJtableArrayList(int size,ArrayList jtablearraylist,ObjectInput arg0)
    throws IOException
    {

    int sizej=0;
    for (int i=0;isize;i++)
    {
    sizej=arg0.readInt();

    if(sizej0)
    {

    String single[] =new String[sizej];

    for (int j=0;jsizej;j++)
    {

    single[j]=arg0.readUTF();
    }

    jtablearraylist.add(single);

    }

    }

    return jtablearraylist;

    }

    private final ArrayList readArrayListContainsArrayLists(int size,ArrayList arraylistcontainsarraylists,ObjectInput arg0)
    throws IOException
    {

    int sizej=0;

    for (int i=0;isize;i++)
    {
    sizej=arg0.readInt();

    if(sizej0)
    {

    ArrayList single =new ArrayList(size);

    for (int j=0;jsizej;j++)
    {

    single.add(arg0.readUTF());
    }

    single.trimToSize();
    arraylistcontainsarraylists.add(single);

    }

    }

    return arraylistcontainsarraylists;

    }

    public void readExternal(ObjectInput arg0) throws IOException, ClassNotFoundException

    {
    int size=0;
    identification=arg0.readUTF();

    size=arg0.readInt();
    if(size 0)
    {
    array1=new String[size];
    array1=readArray(size,array1,arg0);
    }
    else
    array1=null;

    size=arg0.readInt();
    if(size 0)
    {
    array2=new String[size];
    array2=readArray(size,array2,arg0);
    }
    else
    array2=null;

    size=arg0.readInt();
    if(size 0)
    {
    array3=new String[size];
    array3=readArray(size,array3,arg0);
    }
    else
    array3=null;

    size=arg0.readInt();
    if(size 0)
    {
    array4=new String[size];
    array4=readArray(size,array4,arg0);
    }
    else
    array4=null;

    size=arg0.readInt();
    if(size 0)
    {
    array5=new String[size];
    array5=readArray(size,array5,arg0);
    }
    else
    array5=null;

    size=arg0.readInt();
    if(size 0)
    {
    array6=new String[size];
    array6=readArray(size,array6,arg0);
    }
    else
    array6=null;

    size=arg0.readInt();
    if(size 0)
    {
    arraylist1=new ArrayList(size);
    arraylist1=readArrayList(size,arraylist1,arg0);
    }
    else
    arraylist1=null;

    size=arg0.readInt();
    if(size 0)
    {
    arraylist2=new ArrayList(size);
    arraylist2=readArrayList(size,arraylist2,arg0);
    }
    else
    arraylist2=null;

    size=arg0.readInt();
    if(size 0)
    {
    arraylist3=new ArrayList(size);
    arraylist3=readArrayList(size,arraylist3,arg0);
    }
    else
    arraylist3=null;

    size=arg0.readInt();
    if(size 0)
    {
    arraylist4=new ArrayList(size);
    arraylist4=readArrayList(size,arraylist4,arg0);
    }
    else
    arraylist4=null;

    size=arg0.readInt();
    if(size 0)
    {
    arraylist5=new ArrayList(size);
    arraylist5=readArrayList(size,arraylist5,arg0);
    }
    else
    arraylist5=null;

    size=arg0.readInt();
    if(size 0)
    {
    arraylist6=new ArrayList(size);
    arraylist6=readArrayList(size,arraylist6,arg0);
    }
    else
    arraylist6=null;

    size=arg0.readInt();
    if(size 0)
    {
    jtablearraylist1=new ArrayList(size);
    jtablearraylist1=readJtableArrayList(size,jtablearraylist1,arg0);
    }
    else
    jtablearraylist1=null;

    size=arg0.readInt();
    if(size 0)
    {
    jtablearraylist2=new ArrayList(size);
    jtablearraylist2=readJtableArrayList(size,jtablearraylist2,arg0);
    }
    else
    jtablearraylist2=null;

    size=arg0.readInt();
    if(size 0)
    {
    jtablearraylist3=new ArrayList(size);
    jtablearraylist3=readJtableArrayList(size,jtablearraylist3,arg0);
    }
    else
    jtablearraylist3=null;

    size=arg0.readInt();
    if(size 0)
    {
    jtablearraylist4=new ArrayList(size);
    jtablearraylist4=readJtableArrayList(size,jtablearraylist4,arg0);
    }
    else
    jtablearraylist4=null;

    size=arg0.readInt();
    if(size 0)
    {
    jtablearraylist5=new ArrayList(size);
    jtablearraylist5=readJtableArrayList(size,jtablearraylist5,arg0);
    }
    else
    jtablearraylist5=null;

    size=arg0.readInt();
    if(size 0)
    {
    jtablearraylist6=new ArrayList(size);
    jtablearraylist6=readJtableArrayList(size,jtablearraylist6,arg0);
    }
    else
    jtablearraylist6=null;

    size=arg0.readInt();
    if(size 0)
    {
    arraylistcontainsarraylists1=new ArrayList(size);
    arraylistcontainsarraylists1=readArrayListContainsArrayLists(size,arraylistcontainsarraylists1,arg0);
    }
    else
    arraylistcontainsarraylists1=null;

    size=arg0.readInt();
    if(size 0)
    {
    arraylistcontainsarraylists2=new ArrayList(size);
    arraylistcontainsarraylists2=readArrayListContainsArrayLists(size,arraylistcontainsarraylists2,arg0);
    }
    else
    arraylistcontainsarraylists2=null;

    size=arg0.readInt();
    if(size 0)
    {
    arraylistcontainsarraylists3=new ArrayList(size);
    arraylistcontainsarraylists3=readArrayListContainsArrayLists(size,arraylistcontainsarraylists3,arg0);
    }
    else
    arraylistcontainsarraylists3=null;

    size=arg0.readInt();
    if(size 0)
    {
    arraylistcontainsarraylists4=new ArrayList(size);
    arraylistcontainsarraylists4=readArrayListContainsArrayLists(size,arraylistcontainsarraylists4,arg0);
    }
    else
    arraylistcontainsarraylists4=null;

    size=arg0.readInt();
    if(size 0)
    {
    arraylistcontainsarraylists5=new ArrayList(size);
    arraylistcontainsarraylists5=readArrayListContainsArrayLists(size,arraylistcontainsarraylists5,arg0);
    }
    else
    arraylistcontainsarraylists5=null;

    size=arg0.readInt();
    if(size 0)
    {
    arraylistcontainsarraylists6=new ArrayList(size);
    arraylistcontainsarraylists6=readArrayListContainsArrayLists(size,arraylistcontainsarraylists6,arg0);
    }
    else
    arraylistcontainsarraylists6=null;

    size=arg0.readInt();
    if(size 0)
    {
    arraylistcontainsobjects1=new ArrayList(size);
    arraylistcontainsobjects1=readArrayListObjects(size,arraylistcontainsobjects1,arg0);
    }
    else
    arraylistcontainsobjects1=null;

    size=arg0.readInt();
    if(size 0)
    {
    arraylistcontainsobjects2=new ArrayList(size);
    arraylistcontainsobjects2=readArrayListObjects(size,arraylistcontainsobjects2,arg0);
    }
    else
    arraylistcontainsobjects2=null;

    size=arg0.readInt();
    if(size 0)
    {
    arraylistcontainsobjects3=new ArrayList(size);
    arraylistcontainsobjects3=readArrayListObjects(size,arraylistcontainsobjects3,arg0);
    }
    else
    arraylistcontainsobjects3=null;

    }

    public final String getIdentification()
    {

    if(identification==null)
    return"";

    return identification;

    }

    public final void setIdentification(String identification)
    {
    this.identification=identification;

    }

    public final String[] getArray1()
    {

    if(array1==null)
    return (new String[0]);

    return array1;

    }

    public final void setArray1(String[] array1)
    {
    this.array1=array1;

    }

    public final String[] getArray2()
    {

    if(array2==null)
    return (new String[0]);

    return array2;

    }

    public final void setArray2(String[] array2)
    {
    this.array2=array2;

    }

    public final String[] getArray3()
    {
    if(array3==null)
    return (new String[0]);

    return array3;

    }

    public final void setArray3(String[] array3)
    {
    this.array3=array3;

    }

    public final String[] getArray4()
    {
    if(array4==null)
    return (new String[0]);

    return array4;

    }

    public final void setArray4(String[] array4)
    {
    this.array4=array4;

    }

    public final String[] getArray5()
    {
    if(array5==null)
    return (new String[0]);

    return array5;

    }

    public final void setArray5(String[] array5)
    {
    this.array5=array5;

    }

    public final String[] getArray6()
    {
    if(array6==null)
    return (new String[0]);

    return array6;

    }

    public final void setArray6(String[] array6)
    {
    this.array6=array6;

    }

    public final ArrayList getArrayList1()
    {

    if(arraylist1!=null)
    arraylist1.trimToSize();
    else
    return (new ArrayList(0));

    return arraylist1;

    }

    public final void setArrayList1(ArrayList arraylist1)
    {

    if(arraylist1!=null)
    arraylist1.trimToSize();

    this.arraylist1=arraylist1;

    }

    public final ArrayList getArrayList2()
    {

    if(arraylist2!=null)
    arraylist2.trimToSize();
    else
    return (new ArrayList(0));

    return arraylist2;

    }

    public final void setArrayList2(ArrayList arraylist2)
    {

    if(arraylist2!=null)
    arraylist2.trimToSize();

    this.arraylist2=arraylist2;

    }
    public final ArrayList getArrayList3()
    {

    if(arraylist3!=null)
    arraylist3.trimToSize();
    else
    return (new ArrayList(0));

    return arraylist3;

    }

    public final void setArrayList3(ArrayList arraylist3)
    {

    if(arraylist3!=null)
    arraylist3.trimToSize();

    this.arraylist3=arraylist3;

    }
    public final ArrayList getArrayList4()
    {

    if(arraylist4!=null)
    arraylist4.trimToSize();
    else
    return (new ArrayList(0));

    return arraylist4;

    }

    public final void setArrayList4(ArrayList arraylist4)
    {

    if(arraylist4!=null)
    arraylist4.trimToSize();

    this.arraylist4=arraylist4;

    }
    public final ArrayList getArrayList5()
    {

    if(arraylist5!=null)
    arraylist5.trimToSize();

    else
    return (new ArrayList(0));

    return arraylist5;

    }

    public final void setArrayList5(ArrayList arraylist5)
    {

    if(arraylist5!=null)
    arraylist5.trimToSize();

    this.arraylist5=arraylist5;

    }
    public final ArrayList getArrayList6()
    {

    if(arraylist6!=null)
    arraylist6.trimToSize();
    else
    return (new ArrayList(0));

    return arraylist6;

    }

    public final void setArrayList6(ArrayList arraylist6)
    {

    if(arraylist6!=null)
    arraylist6.trimToSize();

    this.arraylist6=arraylist6;

    }

    public final ArrayList getJtableArrayList1()
    {

    if(jtablearraylist1!=null)
    jtablearraylist1.trimToSize();
    else
    return (new ArrayList(0));

    return jtablearraylist1;

    }

    public final void setJtableArrayList1(ArrayList jtablearraylist1)
    {

    if(jtablearraylist1!=null)
    jtablearraylist1.trimToSize();

    this.jtablearraylist1=jtablearraylist1;

    }

    public final ArrayList getJtableArrayList2()
    {

    if(jtablearraylist2!=null)
    jtablearraylist2.trimToSize();
    else
    return (new ArrayList(0));

    return jtablearraylist2;

    }

    public final void setJtableArrayList2(ArrayList jtablearraylist2)
    {

    if(jtablearraylist2!=null)
    jtablearraylist2.trimToSize();

    this.jtablearraylist2=jtablearraylist2;

    }

    public final ArrayList getJtableArrayList3()
    {

    if(jtablearraylist3!=null)
    jtablearraylist3.trimToSize();
    else
    return (new ArrayList(0));

    return jtablearraylist3;

    }

    public final void setJtableArrayList3(ArrayList jtablearraylist3)
    {

    if(jtablearraylist3!=null)
    jtablearraylist3.trimToSize();

    this.jtablearraylist3=jtablearraylist3;

    }

    public final ArrayList getJtableArrayList4()
    {

    if(jtablearraylist4!=null)
    jtablearraylist4.trimToSize();
    else
    return (new ArrayList(0));

    return jtablearraylist4;

    }

    public final void setJtableArrayList4(ArrayList jtablearraylist4)
    {

    if(jtablearraylist4!=null)
    jtablearraylist4.trimToSize();

    this.jtablearraylist4=jtablearraylist4;

    }

    public final ArrayList getJtableArrayList5()
    {

    if(jtablearraylist5!=null)
    jtablearraylist5.trimToSize();
    else
    return (new ArrayList(0));

    return jtablearraylist5;

    }

    public final void setJtableArrayList5(ArrayList jtablearraylist5)
    {

    if(jtablearraylist5!=null)
    jtablearraylist5.trimToSize();

    this.jtablearraylist5=jtablearraylist5;

    }

    public final ArrayList getJtableArrayList6()
    {
    if(jtablearraylist6!=null)
    jtablearraylist6.trimToSize();
    else
    return (new ArrayList(0));

    return jtablearraylist6;

    }

    public final void setJtableArrayList6(ArrayList jtablearraylist6)
    {

    if(jtablearraylist6!=null)
    jtablearraylist6.trimToSize();

    this.jtablearraylist6=jtablearraylist6;

    }

    public final ArrayList getArrayListContainsArrayLists1()
    {

    if(arraylistcontainsarraylists1!=null)
    arraylistcontainsarraylists1.trimToSize();
    else
    return (new ArrayList(0));

    return arraylistcontainsarraylists1;

    }

    public final void setArrayListContainsArrayLists1(ArrayList arraylistcontainsarraylists)
    {

    if(arraylistcontainsarraylists!=null)
    arraylistcontainsarraylists.trimToSize();

    this.arraylistcontainsarraylists1=arraylistcontainsarraylists;

    }

    public final ArrayList getArrayListContainsArrayLists2()
    {

    if(arraylistcontainsarraylists2!=null)
    arraylistcontainsarraylists2.trimToSize();
    else
    return (new ArrayList(0));

    return arraylistcontainsarraylists2;

    }

    public final void setArrayListContainsArrayLists2(ArrayList arraylistcontainsarraylists)
    {

    if(arraylistcontainsarraylists!=null)
    arraylistcontainsarraylists.trimToSize();

    this.arraylistcontainsarraylists2=arraylistcontainsarraylists;

    }

    public final ArrayList getArrayListContainsArrayLists3()
    {

    if(arraylistcontainsarraylists3!=null)
    arraylistcontainsarraylists3.trimToSize();
    else
    return (new ArrayList(0));

    return arraylistcontainsarraylists3;

    }

    public final void setArrayListContainsArrayLists3(ArrayList arraylistcontainsarraylists)
    {

    if(arraylistcontainsarraylists!=null)
    arraylistcontainsarraylists.trimToSize();

    this.arraylistcontainsarraylists3=arraylistcontainsarraylists;

    }

    public final ArrayList getArrayListContainsArrayLists4()
    {

    if(arraylistcontainsarraylists4!=null)
    arraylistcontainsarraylists4.trimToSize();
    else
    return (new ArrayList(0));

    return arraylistcontainsarraylists4;

    }

    public final void setArrayListContainsArrayLists4(ArrayList arraylistcontainsarraylists)
    {

    if(arraylistcontainsarraylists!=null)
    arraylistcontainsarraylists.trimToSize();

    this.arraylistcontainsarraylists4=arraylistcontainsarraylists;

    }

    public final ArrayList getArrayListContainsArrayLists5()
    {

    if(arraylistcontainsarraylists5!=null)
    arraylistcontainsarraylists5.trimToSize();
    else
    return (new ArrayList(0));

    return arraylistcontainsarraylists5;

    }

    public final void setArrayListContainsArrayLists5(ArrayList arraylistcontainsarraylists)
    {

    if(arraylistcontainsarraylists!=null)
    arraylistcontainsarraylists.trimToSize();

    this.arraylistcontainsarraylists5=arraylistcontainsarraylists;

    }

    public final ArrayList getArrayListContainsArrayLists6()
    {

    if(arraylistcontainsarraylists6!=null)
    arraylistcontainsarraylists6.trimToSize();
    else
    return (new ArrayList(0));

    return arraylistcontainsarraylists6;

    }

    public final void setArrayListContainsArrayLists6(ArrayList arraylistcontainsarraylists)
    {

    if(arraylistcontainsarraylists!=null)
    arraylistcontainsarraylists.trimToSize();

    this.arraylistcontainsarraylists6=arraylistcontainsarraylists;

    }

    public final void setArrayListContainsObject1(ArrayList arraylistcontainsobjects1)
    {

    if(arraylistcontainsobjects1!=null)
    arraylistcontainsobjects1.trimToSize();

    this.arraylistcontainsobjects1=arraylistcontainsobjects1;

    }

    public final void setArrayListContainsObject2(ArrayList arraylistcontainsobjects2)
    {

    if(arraylistcontainsobjects2!=null)
    arraylistcontainsobjects2.trimToSize();

    this.arraylistcontainsobjects2=arraylistcontainsobjects2;

    }

    public final void setArrayListContainsObject3(ArrayList arraylistcontainsobjects3)
    {

    if(arraylistcontainsobjects3!=null)
    arraylistcontainsobjects3.trimToSize();

    this.arraylistcontainsobjects3=arraylistcontainsobjects3;

    }

    public final ArrayList getArrayListContainsObject1()
    {

    if(arraylistcontainsobjects1!=null)
    arraylistcontainsobjects1.trimToSize();
    else
    return (new ArrayList(0));

    return arraylistcontainsobjects1;

    }

    public final ArrayList getArrayListContainsObject2()
    {

    if(arraylistcontainsobjects2!=null)
    arraylistcontainsobjects2.trimToSize();
    else
    return (new ArrayList(0));

    return arraylistcontainsobjects2;

    }

    public final ArrayList getArrayListContainsObject3()
    {

    if(arraylistcontainsobjects3!=null)
    arraylistcontainsobjects3.trimToSize();
    else
    return (new ArrayList(0));

    return arraylistcontainsobjects3;

    }

    }

  • RELEVANCY SCORE 5.04

    DB:5.04:Serialization-Deserialization Question ac


    Hello Friends,
    During serialization java objects and store state of objects, and later on we Deserialize objects and store the state back.
    Which is more efficient Serialization or Deserialization ?
    Thanks.

    DB:5.04:Serialization-Deserialization Question ac

    Which is more efficient Serialization or Deserialization ?What's the purpose of the question? Why would anybody care? You have to do both or neither of them.

  • RELEVANCY SCORE 4.84

    DB:4.84:Soap Serialization Version - Tolerant Serialization dc


    Friends;
     I am upgrading my ASP.Net (C#) application from Framework 1.1 and VS.NET 2003 to Framework 2.0 and VS.NET 2005; I am using SOAP Serialization and need to move to VTS serialization; should I change SOAP to Binary Serialization to do this???
    Regards
     
     
     

    DB:4.84:Soap Serialization Version - Tolerant Serialization dc

    For VTS, both SOAP serialization and binary serialization are compatible but binary serialization would be a better option.
    SOAP serialization is supported less and it is highly recommended to move away from soap.

  • RELEVANCY SCORE 4.79

    DB:4.79:Diff Between Serialization And Synchronization 9c


    Hi I am new to java.
    Pl. give me the difference between Serialization and Synchronization.
    Thankq
    Sridhar

    DB:4.79:Diff Between Serialization And Synchronization 9c

    The forums wouldn't work if we werent allowed to
    argue and have some fun when there aren't any fun
    questions to answer.Especially look at the arguments from ulrika :0)

  • RELEVANCY SCORE 4.68

    DB:4.68:Transient Variableusing Serialization Concepts as


    please give example code for usage of transient variableusing serialization concepts

    DB:4.68:Transient Variableusing Serialization Concepts as

    please give example code for usage of transient
    variableusing serialization conceptsprivate transient Object anObject;

  • RELEVANCY SCORE 4.68

    DB:4.68:How To Implement Serialization? 1k


    could any body guide with a program How to Implement Serialization?

    DB:4.68:How To Implement Serialization? 1k

    It's pretty esy: just take a look at this

    public void save() throws IOException
    {
    outStream=new BufferedOutputStream(new FileOutputStream(myFile));
    serializzatore = new ObjectOutputStream(outStream);

    serializzatore.writeInt(pippo);
    serializzatore.writeObject(pippone);
    //serializzatore.writeObject(this);
    serializzatore.flush();
    }

    public void load () throws IOException, ClassNotFoundException
    {
    inStream=new BufferedInputStream(new FileInputStream(myFile));
    deserializzatore = new ObjectInputStream(inStream);

    pippo=(int)deserializzatore.readInt();
    pippone=(String)deserializzatore.readObject();
    }
    }Just change pippo and pippone with your variables and you're done!

  • RELEVANCY SCORE 4.68

    DB:4.68:.Net Serialization fd


    Hi All,Is the System.Runtime.Serialization Namespace same as that of the Serialization that we use in DOC VIEW applications of MFC?Thanks Regards,Shrishail.[SIGNATURE]

    DB:4.68:.Net Serialization fd

    Hi All,Is the System.Runtime.Serialization Namespace same as that of the Serialization that we use in DOC VIEW applications of MFC?Thanks Regards,Shrishail.[SIGNATURE]

  • RELEVANCY SCORE 4.68

    DB:4.68:Serialization 7c


    What is serialization of classes?Why is it good?Thanks.

    DB:4.68:Serialization 7c

    Great question. Let's say that I have an application that processes requests from customers who call in over the phone requesting something from my company.  I've created a user interface that my workers will use.  Under the covers of this UI, various properties and settings on this object are changed according to what the user does on the UI.  Now I need to save this data to a database. When I'm reviewing how to save the data to the database, it occurs to me that I don't want my user to have direct access to the database.  I think it will be a security risk to give them such access.  So instead, I create a service and I add a method with the following signature:public Order SaveCustomerRequest(Order request);I've created a windows service that runs on the database server, and this service will update the database with the customer's order.  This way, all of the connection data resides on the server alone, and not on my worker's machines.  However, to get to this service, I have to send the Order class over the network.  This is what serialization will do for you.  Once the object gets to the other end of the network, the receiving end can call methods and properties on the object, just as though the object resided on the same machine. I don't know if you've ever seen Willy Wonka and the Chocolate Factory or not (the one with Gene Wilder, and not Johnny Depp).  It was a favorite of mine when I was a kid.  In the movie, Willy Wonka introduces one of his inventions, WonkaVision, to Mike TeeVee, who is a kid who won a trip to the Chocolate Factory.  What WonkaVision does is films an object, and then splits it into a million little pieces, which, in the movie, float over Wonka and the other's heads.  These pieces eventually make their way to a WonkaVision set, where they're reassembled into their original form.  In the movie, Mike Teevee wants to be the first person broadcast in WonkaVision, so he stands in front of the camera, and they film him with WonkaVision.  He disappears from in front of the camera, and is shown in a million little pieces over everyone's head.  A few moments later, he shows up in the WonkaVision TV as a miniature Mike Teevee, and he does all the same things he did before he was filmed.  This is how I often think about serialization.  Serialization splits apart my object, turns it into a million little 1s and 0s, and then I have a receiving end that can put it all back together again, just as it was on the other side.  David Morton - http://blog.davemorton.net/

  • RELEVANCY SCORE 4.65

    DB:4.65:Serialization jx


    1) what is the use of the serialization ?

    2)Where it can be used ?

    DB:4.65:Serialization jx

    1) what is the use of the serialization ?[Object Serialization|http://java.sun.com/javase/6/docs/technotes/guides/serialization/index.html]
    2)Where it can be used ?Wherever you need to use [Object Serialization|http://java.sun.com/javase/6/docs/technotes/guides/serialization/index.html].

  • RELEVANCY SCORE 4.65

    DB:4.65:Web Service Call Serialization Failed 9f


    Web service calls serialization fails if the return object contains these:

    DB:4.65:Web Service Call Serialization Failed 9f

    This is what I found when i tried service url in browser, I see xml generated when using [XmlAnyElement] tag is:

    ?xml version=1.0 encoding=utf-8 ?
    - Person xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:xsd=http://www.w3.org/2001/XMLSchema xmlns=http://tempuri.org/
    T xmlns=TEST/T
    NameTest/Name
    /Person

    without [XmlAnyElement] tag is:

    ?xml version=1.0 encoding=utf-8 ?
    - Person xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:xsd=http://www.w3.org/2001/XMLSchema xmlns=http://tempuri.org/
    - MyAnyElement
    - XmlElement
    T xmlns=TEST/T
    /XmlElement
    /MyAnyElement
    NameTest/Name
    /Person

  • RELEVANCY SCORE 4.65

    DB:4.65:What Do U Mean By Serialization?? 97


    What do u mean by Serialization??
    I mean why we need to mark a class as serialized.

    DB:4.65:What Do U Mean By Serialization?? 97

    Read this for more information: http://java.sun.com/products/jdk/serialization/faq/#whyserial

  • RELEVANCY SCORE 4.65

    DB:4.65:Standard Vs Custom Serialization Performance dk


    Dear All,
    I understand that there are two types of serialization in C#. One is standard serialization and another is custom serialization. Standard serialization
    is used when the .NET framework serializes your object. In custom serialization, you write the way how your object needs to be serialized. I was wondering from a performance perspective which one is better. Will the standard serialization be not slower than
    custom serialization since the framework serializer must make use of reflection to reflect all the data members and then serialize. However, in the case of custom serialization, the serialization logic is already coded in and hence will have better performance.
    Thanks,
    Venkat

    DB:4.65:Standard Vs Custom Serialization Performance dk

    Thank you Mike for your detailed explanation. I too agree with it.

  • RELEVANCY SCORE 4.65

    DB:4.65:What Is Marshalling/Unmarshalling? sx


    And how is it different form Serialization/Deserialization?

    DB:4.65:What Is Marshalling/Unmarshalling? sx

    Thank you all for the propmpt. It was really helpful!!

  • RELEVANCY SCORE 4.65

    DB:4.65:Re: "Transient" Not Preventing Serialization xk


    How is this possible?ArrayList has a custom readObject and writeObject methods which customize how serialization is done.

    DB:4.65:Re: "Transient" Not Preventing Serialization xk

    OK, so I decided to actually test the hypothesis rather than just discuss it. Never call readObject or writeObject on a parent class because a non-private handler will never be called, so you couldn't call them anyway, and because the serialization mechanism calls all handlers from the most base class to the most derived class. Here is some code to demonstrate:

    import java.io.*;

    public class Serial
    {
    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) throws Exception
    {
    ByteArrayOutputStream bout = new ByteArrayOutputStream();

    ObjectOutputStream out = new ObjectOutputStream(bout);

    out.writeObject(new Parent());
    out.writeObject(new CluelessSub());
    out.writeObject(new SaavySub());

    out.close();

    ByteArrayInputStream bin = new ByteArrayInputStream(bout.toByteArray());

    ObjectInputStream in = new ObjectInputStream(bin);

    in.readObject();
    in.readObject();
    in.readObject();
    }
    }

    /**Parent class with custom serialization code
    */
    class Parent implements Serializable
    {
    int i = 0;

    private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
    {
    System.out.println("Reading Parent");

    i = in.readInt();
    }

    private void writeObject(ObjectOutputStream out) throws IOException
    {
    System.out.println("Writing Parent");

    out.writeInt(i);
    }
    }

    /**Sub class which is clueless about serialization
    */
    class CluelessSub extends Parent
    {
    }

    /**'Hip' subclass which provides its' own serialization
    */
    class SaavySub extends Parent
    {
    int j = 0;

    private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
    {
    System.out.println("Reading Sub");

    j = in.readInt();
    }

    private void writeObject(ObjectOutputStream out) throws IOException
    {
    System.out.println("Writing Sub");

    out.writeInt(j);
    }
    }And here is the output:

    Writing Parent
    Writing Parent
    Writing Parent
    Writing Sub
    Reading Parent
    Reading Parent
    Reading Parent
    Reading Sub

  • RELEVANCY SCORE 4.65

    DB:4.65:Difference Between Serialization Vs Externalization 3j


    hi can anyone tell me Difference between Serialization Vs Externalization

    DB:4.65:Difference Between Serialization Vs Externalization 3j

    Import java.io.serializable;Class vinayworld implements Serializable {Public String vinay_variable;Private String vinay_add;}Other class would bePublic class vinayotherClass {Public static void main (String args[]){FileOutputStream fos=new FileOutputStream("vinay.txt"); ObjectOutputStream oos=new ObjectOutputStream(fos);Vinayworld vw = new vinayworld();oos.writeobject(vw);oos.flush();oos.close();

  • RELEVANCY SCORE 4.65

    DB:4.65:Serialization In Mfc Dialog Base Application 98


    I need sample program for serialization using vc in mfc Dialog based application.

    Thanks in Advance
    Naveen

    DB:4.65:Serialization In Mfc Dialog Base Application 98

    Hi Naveen,
    There are two parts of online document C Programming: Versionable Object's Serialization using MFC you could refer to.

    http://www.codeguru.com//article.php/c17735

    http://www.codeguru.com/cpp/cpp/cpp_mfc/serial/article.php/c17763/C-Programming-Versionable-Objects-Serialization-using-MFC---Part-2.htm

    And a Book Visual C MFC programming by example in
    http://books.google.com/books?id=7PsZNxl_5U8Cprintsec=frontcoverdq=VisualC%2B%2BMFCprogrammingbyexamplehl=zh-CNei=-rCJTY2yEYrirAfo8fzdDgsa=Xoi=book_resultct=resultresnum=1ved=0CDEQ6AEwAA#v=onepageqf=false

    Hope this helps.Best Regards,
    Peja Tao

    Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • RELEVANCY SCORE 4.65

    DB:4.65:J2me Object Serialization a8


    Why Object serialization concept is omitted in J2ME

  • RELEVANCY SCORE 4.65

    DB:4.65:Re: Xml Serialization? sz


    thats why, XML serialization only works with JavaBeans.

    DB:4.65:Re: Xml Serialization? sz

    " thats why, XML serialization only works with JavaBeans."

    That's not necessarily true anymore, see this article.
    http://java.sun.com/products/jfc/tsc/articles/persistence4/

  • RELEVANCY SCORE 4.65

    DB:4.65:Deep Xml Serialization In .Net 77


    Hi
     
    Can we achieve deep XML Serialization and de-serialization in .net 2.0?
     
    Thanks,
    Dharan

    DB:4.65:Deep Xml Serialization In .Net 77

    No, serializing private members are not possible for ASMX web services.
    In WCF (.NET 3.0 and later), you can use DataContract serializer and DataMember attribute to serialize private members of a class. 
     
    Thanks,
    -Andrew

  • RELEVANCY SCORE 4.65

    DB:4.65:Xml Serialization Vs. Normal Serialization 8x


    Hey all,

    Great to see the forums in use! :) One thing I've never been quite clear on -- when does it make sense to use Coherence's XML serialization vs normal object serialization? Any tips would be appreciated.

    Thanks,
    Matt

    DB:4.65:Xml Serialization Vs. Normal Serialization 8x

    To clarify, we have XmlSerializable, which uses XML as a wire format, and ExternalizableLite, which uses DataOutput instead of ObjectOutput, which is significantly less costly (but has less features, such as graph traversal). XmlBean, XmlDocument, etc. all implement both XmlSerializable and ExternalizableLite now. Coherence gives priority to ExternalizableLite because of its efficiency (size and speed) so anything implementing this interface will have its wire format be the ExternalizableLite result.

    Peace,

    Cameron Purdy
    Tangosol, Inc.
    Coherence: Easily share live data across a cluster!

  • RELEVANCY SCORE 4.38

    DB:4.38:Serialization Between C++ And Java k7


    Is it possible to use serialization between a java client and a server written in C++?

  • RELEVANCY SCORE 4.38

    DB:4.38:Serialization x9


    Hi,
    Actually i didnt get any chance to work with serialization, what is the use of  serialization and pls explain it with a simple example
    thanks
    sshaju

    DB:4.38:Serialization x9

    sshaju,serialization itself is the process in where an instance of an object is stored in a stream.the most typical example is storing an instance of an object in a file.... in that case you have a persistent stream.....related with serialization you have the concept of what is called in .net formatters that describes the format of the stored information..... typically you will find binary and xml formatters to store the data as an array of bytes or as an xml..... xml is becoming popular with web services and that's why this forum is dedicated to web services and serialization .... that is... xml serialization....web services uses xml (soap, wsdl, etc), to describe themselves and to comunicate with clients.... so, data must be serialized or converted to xml when sending or retrieving it to and from web services.....hope it helpsrgdsrodrigo

  • RELEVANCY SCORE 4.31

    DB:4.31:Does Serialization Uses The Constructor? 8c


    actually, the question is about de-serialization.

    It seems some calls in my no-arg constructor are never made.

    DB:4.31:Does Serialization Uses The Constructor? 8c

    actually, the question is about de-serialization.

    It seems some calls in my no-arg constructor are
    never made.http://java.sun.com/j2se/1.5.0/docs/guide/serialization/spec/input.html#2971

    "For serializable objects, the no-arg constructor for the first non-serializable supertype is run [...] Then the fields of each class are restored by calling class-specific readObject methods" (emphasis added)

    In other words, the serialization mechanism assumes that the serialized object is in a correct state, and that it merely needs to update field contents. This is very reasonable -- consider what would happen if your object's constructor set an ID field on the object.

    However, a particular JVM may maintain object state that's not visible to the application, and is set by the construction process (in particular, by the constructor for Object, which is often the first non-serializable supertype of a serializable class).

    If you really want to update your object during deserialization, override the readObject() method.

  • RELEVANCY SCORE 4.31

    DB:4.31:Serialization Vs Marshalling 17


    What is the Difference between Serialization vs marshalling.

    DB:4.31:Serialization Vs Marshalling 17

    Marshaling is process of encoding object to put them*SNIP*
    object(which is serialized) across the network.Copycat. You could have atleast corrected the grammatical errors. :)

    http://www.jguru.com/faq/viewquestion.jsp?EID=429488(See last reply on the link)

  • RELEVANCY SCORE 4.31

    DB:4.31:Custom Serialization Of Objects x9



    Hi!

    DB:4.31:Custom Serialization Of Objects x9

    If you make your custom ErrorHint types [Serializable] instead of [DataContract], does your issue go away?
    The DataContractSerializer used by WCF understands both the [DataContract] programming model and the [Serializable]/ISerializable programming model. However the converse is not true -- the ISerializable stack doesn't know about [DataContract]. The net result is that all member of an ISerializable type (including Exception) must also be [Serializable]/ISerializable.
    -steveBrain.Save() -- http://hyperthink.net/blog

  • RELEVANCY SCORE 4.31

    DB:4.31:Serialization And Runnable 9k


    what is Serialization??? And what is Runnable??? What its use??

    DB:4.31:Serialization And Runnable 9k

    That's not what I said. I said without using the built-in serialisation mechanism.

    You could use any one of the many XML encoders (XMLEncoder, XStream, etc.); you could write your own custom marshalling; etc.

  • RELEVANCY SCORE 4.31

    DB:4.31:What Is Serialization And How Do I Implement Serialization With An Object?? fj


    I know how to implement with a class but how can I implement the serialization interface with an object, not only that but I can't seem to find anywhere that explains serialization

  • RELEVANCY SCORE 4.31

    DB:4.31:Diff Between Serialization And Externalization s9


    basic diff. between serialization and externalization

    DB:4.31:Diff Between Serialization And Externalization s9

    Double-post: http://forum.java.sun.com/thread.jspa?threadID=615836

  • RELEVANCY SCORE 4.28

    DB:4.28:Serialization Provider For Jsf fx



    Hi all! Does seam provide serialization provider for jsf that allows to use jboss serialization (considered for faster than jdk serialization)?

    DB:4.28:Serialization Provider For Jsf fx


    It is possible and will be good if seam provides such serialization provider

  • RELEVANCY SCORE 4.26

    DB:4.26:Wsdualhttpbinding And Custom Serialization a3


    Hi!

    DB:4.26:Wsdualhttpbinding And Custom Serialization a3

    - I have implemented an own exception (derived from Exception) and I want to pass an instance of this class as parameter of an WCF-Service-Method. This is a bad practice in service oriented programming, please try SOAP fault. - The problem here is, that I have troubles using a List of Serializable-Objects. And I can't tell exactly what's the problem. I only get a TimeoutException. Could you please send your test project to me at v-mazho at microsoft dot com for repro? Thanks Another Paradigm Shift
    http://shevaspace.blogspot.com

  • RELEVANCY SCORE 4.26

    DB:4.26:How The Serialization Work. k1


    Although serialization interface doesnt contain any method, why we need to implement the serializaiton

    DB:4.26:How The Serialization Work. k1

    Hi,

    Actually The java.io.Serializable is a Marker Interface, the interface which has no behaviors defined. Marker interfaces tag all the derived classes into a category based on their purpose. For example all classes that implements Serializable interface can be serialized.
    By default not all classes are allowed to be serialized. We make one class serializable based on our purpose. When we serialize an object whole object graph is saved/serialized. It is a costly business. Also have a look at the transient keyword.

    Thanks,

    Sanjoy

  • RELEVANCY SCORE 4.26

    DB:4.26:Serialization d9


    What is the use of xml serialization over normal serialization?

    DB:4.26:Serialization d9

    If the goal is to protect sensitive information, you should be using
    Cryptographic Services to protect it during serialization. For example, if yourely soley onthe

    BinaryFormatter to secure your sensitivedata there is nothing stopping a malicious user from deserializing it on their own.
    You shouldn't serialize sensitive information, but if you must there is some guidance.According to theSecurity and Serializationdocumentation,
    The GetObjectData method should be explicitly secured...by...making sure that
    no sensitive information is released with the method output.
    HTH-Scosby

  • RELEVANCY SCORE 4.26

    DB:4.26:Sqlmetal /Serialization dp


    What does
     

    Code Snippet

    DB:4.26:Sqlmetal /Serialization dp

    Serialization is like you say for remote scenarios. Specifically for using WCF with LINQ to SQL.
     
    The XmlMappingSource is for splitting mapping information from the classses and be able to have a separete XML file with the mapping information in it. If you are using DBML you probably won't need it.

  • RELEVANCY SCORE 4.26

    DB:4.26:Can I Enable Pof Serialization For One Cache And Other Java Serialization fm


    I had coherence cluster with few cache , Is there any way i can enable pof serialization for one cache and other to use normal JAVA serialization

    DB:4.26:Can I Enable Pof Serialization For One Cache And Other Java Serialization fm

    In addition to Rob's answer (all of which is correct), to have one cache use Java serialization and other cache use POF serialization, you should configure each cache to be part of a different cache service, and configure one cache service to use Java serialization and the other to use POF serialization.

    Peace,

    Cameron Purdy | Oracle Coherence
    http://coherence.oracle.com/

  • RELEVANCY SCORE 4.26

    DB:4.26:Object Serialization 7z


    Can someone please tell me what object serialization is all about?

    DB:4.26:Object Serialization 7z

    transforming java objects to a stream of binary data and writing it somewhere like a file, memory or a network connection, so that a copy of the original object can be recovered

  • RELEVANCY SCORE 4.26

    DB:4.26:Serialization And Externlization cp


    what is difference between serialization and Externlization?

    DB:4.26:Serialization And Externlization cp

    The following question has been posted to the the site News and Updates forum which is inappropriate. It will be moved to the Serizalization forum.

    dhanashree-forum wrote:
    what is difference between serialization and Externlization?

  • RELEVANCY SCORE 4.26

    DB:4.26:Serialization zf


    When exactly Serialization has to be used. It's not clear to me when an object has to implement Serializable interface.

    Thanks.

    DB:4.26:Serialization zf

    All classes derieved from DynaValidatorForm are serializable because that type implements serializable. Of course, if there are any non-transient, non-static fields in your derived class that reference classes that are not erializable, the serialization will fail.

  • RELEVANCY SCORE 4.26

    DB:4.26:Ef Serialization Of Custom Property sk


    Hello,

    DB:4.26:Ef Serialization Of Custom Property sk

    Hi Tom,First of all, since you use ASMX web services, you don't really need the DataMember attribute - this is for DataContractSerializer which isn't used in WS (its used in WCF).As for the problem you have - WS uses XmlSerializer for its serialization, and XmlSerializer requires every serialized property to have a getter and a setter, which isn't your case.If you'll add a setter to your property, it should be serialized. Since you don't really need the setter in your code (since the property is a calculated property), you can leave the setter empty.Please mark posts as answers/helpful if it answers your question

  • RELEVANCY SCORE 4.26

    DB:4.26:What Is Serialization For 11


    i've been using java for about 6 months. but i still don't know deeply about java especially serialization. what's serialization and how to implement it in real case. In what situation serialization is used?

    DB:4.26:What Is Serialization For 11

    http://www.webbasedprogramming.com/Java-1.2-Unleashed/ch40.htm

  • RELEVANCY SCORE 4.26

    DB:4.26:Hi Friends, Explain Serialization Conceptin Idoc xf


    1)explain serialization conceptin idoc

    DB:4.26:Hi Friends, Explain Serialization Conceptin Idoc xf

    Hi,Serialization of Idocs is done in the following cases:1. If the Idocs are to be processed in the same sequence in which it is received in the inbound channel OR2. If the Idocs are to be sent in the sequence to the receiver in which it is sent by the Idoc adapterPlease note that the sequence at the Integration Server inbound or outbound can only be guaranteed if Idocs are processed together and not if different protocols (like Idoc and Proxies) are processed.Serialization would be effective if QoS is EOIO and the sender or receiver system must be based on WebAS 6.4 or greater.If these two conditions are not met, then the QoS is EO and the idoc messages are processed accordingly.Thanks and Regards,Chirag Gohil

  • RELEVANCY SCORE 4.26

    DB:4.26:Can I Use Java Serialization As Well As Pof Serialization In Same Class 9x


    Hi ,

    Can i use the java serialization and pof serialization in one class. ?

    And

    In my application, a object is already serialized using normal java serialization and stored in DB, i want to de serialize using pof serialization, how can i do that ?

    And

    How can i implement the auto pof serialization ? if possible means how can i implement it in the below scenario.

    Scenario :

    i have 2 class (Class A,Class B) both are using normal java serialization process, Class B object is added in the Class A Collection variable like list. if i implement the auto pof serialization in class A. whether it will serialize the both class?

    please help. i am using coherence 3.7 and weblogic 10.3.5

    DB:4.26:Can I Use Java Serialization As Well As Pof Serialization In Same Class 9x

    Hi,

    Can i use the java serialization and pof serialization in one class. ?This is possible however would require a custom serializer. Assuming you want a POF aware object to serialize a java.io.Serializable then you could either within a customer PofSerializer or in your PortableObject implementation manually serialize your object to a byte[]. Once you have a byte[] you can call either PofWriter.writeByteArray or PofWriter.writeBinary (if you wish to use our Binary wrapper). Upon deserialization you would perform the inverse, i.e. PofReader.readByteArray and manually convert the returned byte[] to its Object form. Alternative to the "manual" parts you could use ExternalizableHelper.toBinary and ExternalizableHelper.fromBinary providing appropriate serializers.

    In my application, a object is already serialized using normal java serialization and stored in DB, i want to de serialize using pof serialization, how can i do that ?This will be a two step process: deserialize using java serialization into object form followed by serializing using POF.

    How can i implement the auto pof serialization ? if possible means how can i implement it in the below scenario.Recently we have added support for annotations hence you can annotate your methods, fields or properties (.NET) opposed to implementing serialization routines, here is the youtube [url http://www.youtube.com/watch?v=hapBGoS-viIfeature=youtube_gdata]screencast. That is as "auto" as we go (OOTB) at the moment. There are a few people that have done work in either generating serialization code or reflection based serialization, which as far as I know.

    i have 2 class (Class A,Class B) both are using normal java serialization process, Class B object is added in the Class A Collection variable like list. if i implement the auto pof serialization in class A. whether it will serialize the both class? Using POF Annotations you must annotate both classes.

    Thanks,
    Harvey

  • RELEVANCY SCORE 4.26

    DB:4.26:Mixin Serialization s3



    Does JBoss AOP serialize introduced, non-transient fields?

    DB:4.26:Mixin Serialization s3


    Mix-in classes are not serialized. I may make this optional.Yes, that would be reasonable. For partially serializable mixins, it just occurred to me, I could then use the transient keyword to mark disposable fields.

  • RELEVANCY SCORE 4.26

    DB:4.26:Datatable Serialization 7k


    Hi all,Iamnewbieinserializationusage.Ineedthatdatatableobjectwithdatatostoredinxmlfile.Isthexmlserializationthebestwaytodoitorthereareanotherways?

    DB:4.26:Datatable Serialization 7k

    Is whereanyknownproblemsthatda.ReadXml()functiondoesn'twork?

  • RELEVANCY SCORE 4.26

    DB:4.26:Serialization Concept In Oops 3a


    What is Serialization concept in oops?Thanks,Asha

  • RELEVANCY SCORE 4.26

    DB:4.26:Indigo: Problem Controlling Operaitoncontract Serialization am


    HI,
    I'm working with winfx Beta2 and having a problem controlling the way OperationContract methods are serialized/deserialized.
    I need a pretty high granularity controll similar to the one given in asmx web methods using [SoapDocumentMethodAttribute] [XmlElement] and friends. (e.g. attributed controll over the method paramters elements names, name of return value, name of result element, etc).

    example:
    [ServiceContract]
    interface MyService{
             [OperationContract]
             MyObject DoSomething(MyObject obj);
    }
    Indigo Default Request Serialization:
    s:Envelope...
    s:Body
    DoSomething
    obj....object serialization..obj
    /DoSomething
    /s:Body
    /s:Envelope
    Desireable Request Serialization:
    s:Envelope...
    s:Body
    DoSomething
    MyObject....object serialization..MyObject
    /DoSomething
    /s:Body
    /s:Envelope
    Indigo Default Response Serialization:
    s:Envelope...
    s:Body
    DoSomethingResponse
    DoSomethingResult...object serialization../DoSomethingResult
    /DoSomethingResponse
    /s:Body
    /s:Envelope

    Desirable Response Serialization:

    s:Envelope...
    s:Body
    DoSomethingResult
    MyObject...object serialization../MyObject
    /DoSomethingResult
    /s:Body
    /s:Envelope
    Any suggestions?
    Thanks.
     
     

    DB:4.26:Indigo: Problem Controlling Operaitoncontract Serialization am

    HI,
    I'm working with winfx Beta2 and having a problem controlling the way OperationContract methods are serialized/deserialized.
    I need a pretty high granularity controll similar to the one given in asmx web methods using [SoapDocumentMethodAttribute] [XmlElement] and friends. (e.g. attributed controll over the method paramters elements names, name of return value, name of result element, etc).

    example:
    [ServiceContract]
    interface MyService{
             [OperationContract]
             MyObject DoSomething(MyObject obj);
    }
    Indigo Default Request Serialization:
    s:Envelope...
    s:Body
    DoSomething
    obj....object serialization..obj
    /DoSomething
    /s:Body
    /s:Envelope
    Desireable Request Serialization:
    s:Envelope...
    s:Body
    DoSomething
    MyObject....object serialization..MyObject
    /DoSomething
    /s:Body
    /s:Envelope
    Indigo Default Response Serialization:
    s:Envelope...
    s:Body
    DoSomethingResponse
    DoSomethingResult...object serialization../DoSomethingResult
    /DoSomethingResponse
    /s:Body
    /s:Envelope

    Desirable Response Serialization:

    s:Envelope...
    s:Body
    DoSomethingResult
    MyObject...object serialization../MyObject
    /DoSomethingResult
    /s:Body
    /s:Envelope
    Any suggestions?
    Thanks.
     
     

  • RELEVANCY SCORE 4.26

    DB:4.26:What Is Serialization sm


    Hi
    Can soembody give me a good link to learn someting bout Serialization?

    DB:4.26:What Is Serialization sm

    I don't like Sun's documentation very much, personal readability/english issue. So here are some noteworthy links:

    Crossroads:
    http://www.acm.org/crossroads/xrds4-2/serial.html
    JavaGuru:
    http://www.jguru.com/faq/Serialization
    Beans stuff:
    http://www.javaworld.com/javaworld/jw-04-1998/jw-04-beans.html

  • RELEVANCY SCORE 4.26

    DB:4.26:Serialization In Warehouse Management 3k



    Hi,

    Can any body send me some details how we configure Serialization in Warehouse Management.

    Regards,

    mohan

    DB:4.26:Serialization In Warehouse Management 3k


    Hello,

    Yes we can do, Serialization in Warehouse Management, there is no difference in creating the

    Serial number in MM and WM. it is the same producer the way you create in MM

    1. you have to create the Profile for a plant

    2. Assing for a Material.

    Regards

    BHima

  • RELEVANCY SCORE 4.26

    DB:4.26:Re: (Forte-Users) Serialization Problem ap


  • RELEVANCY SCORE 4.26

    DB:4.26:Serialization In Orchestration j9


    How to enable serialization in Orchestration why ? Please share with me .

  • RELEVANCY SCORE 4.26

    DB:4.26:Java Serialization 13


    Hi,

    How Java Serialization works internally which algorithm it uses to serialize/deserailaize the objects?

    Thanks.

    DB:4.26:Java Serialization 13

    Thanks. Hereafter I will mark the questions answered.

  • RELEVANCY SCORE 4.26

    DB:4.26:Marshalling Vs Serialization kz


    Hi,    can anyone elaborate the difference between Marshalling and Serialization ?????Thanx in advance Programmer

    DB:4.26:Marshalling Vs Serialization kz

    Marshaling is a generic term for moving an object or method call into another execution environment.  Serialization is generic for persisting an object into a state independent of its execution environment.  Those terms are connected.  Moving an object into another environment usually involves serializing it in the source and deserializing it the destination.  Not sure that helped. Hans Passant.

  • RELEVANCY SCORE 4.26

    DB:4.26:Serialization Help Needed jf



    Found the problem already...

  • RELEVANCY SCORE 4.26

    DB:4.26:How To Create Config File With Xml Serialization ds


    How to create config file with xml serialization?

    DB:4.26:How To Create Config File With Xml Serialization ds

    Thanks for your inquiry.
    This forum handles requests related to Open Protocols Specifications documentation issues.

    The Open Protocol Specifications can be found at
    http://www.microsoft.com/openspecifications
    Since your question is not related to the Protocols Documentation program, I would suggest that you post to a differentforum. owever, a colleague of mine suggested that this post may be helpful:
    http://social.msdn.microsoft.com/forums/en-us/csharpgeneral/thread/753B6E74-9007-4486-9F8D-531ADF2EC79B

    Bryan S. Burgin
    Senior Escalation Engineer
    Microsoft Protocol Open Specifications Team

  • RELEVANCY SCORE 4.26

    DB:4.26:Re: Serialization Error - Apparently Unusual f3


    Note, cross-posted here:

    http://stackoverflow.com/questions/12574647/java-serialization-glitch-but-not-the-usual-ones#comment16941911_12574647

    DB:4.26:Re: Serialization Error - Apparently Unusual f3

    local class serialVersionUID = 190094503397420067If the source code of the local class has a different value for the private static long serialVersionUID than what appears in the error message, you aren't using the corresponding .class file at execution time, or else it isn't static and long.

    There is no other possibility.

  • RELEVANCY SCORE 4.26

    DB:4.26:Serialization jc


    Hi All

    Anybody please share the idea of "Real Time Scenario" for Serialization.

    Thanks
    Amii

    DB:4.26:Serialization jc

    Dear

    Ok real life.So is it the answer for that?

  • RELEVANCY SCORE 4.26

    DB:4.26:Constructor Effect On Serialization 91


    Areconstruct'saffect on serialization? How?
    And how can ignore it?

    DB:4.26:Constructor Effect On Serialization 91

    Areconstruct'saffect on serialization? How?
    And how can ignore it?

  • RELEVANCY SCORE 4.26

    DB:4.26:Jboss Serialization Other Jboss Projects dj



    Hi,do JBOSS EJB and JBOSS Mbean Server use JBOSS Serialization by default ?thanksIvan

    DB:4.26:Jboss Serialization Other Jboss Projects dj


    No.. just regular Object*Stream over RMI. (I believe it is part of the JNDI spec)

  • RELEVANCY SCORE 4.26

    DB:4.26:Serialization? xd


    Can someone give me a slightly dumbed-down explanation and example of serialization?  Where might one use serialization when developing?

    DB:4.26:Serialization? xd

    Cool.  Thanks again for the info.

  • RELEVANCY SCORE 4.26

    DB:4.26:Wcf Proxy With Xml Serialization 3a


    wcf proxy with xml serialization
    thanks in advance
    vidya

    vidya487

    DB:4.26:Wcf Proxy With Xml Serialization 3a

    wcf proxy with xml serialization
    thanks in advance
    vidya

    vidya487

  • RELEVANCY SCORE 4.12

    DB:4.12:What Is Serialization zc


    Can anyone tell me the correct explanation of ,what is serialization? and when it has to be used.

    DB:4.12:What Is Serialization zc

    Sericalization gives you an ability to read and write objects into a file.

    Check out:

    http://developer.java.sun.com/developer/technicalArticles/ALT/serialization/?frontpage-jdc

  • RELEVANCY SCORE 4.12

    DB:4.12:Wcf Serialization Exception - Netdatacontractserializer aa


    DB:4.12:Wcf Serialization Exception - Netdatacontractserializer aa

    Finally I worked it out. There was a property in one of the base class that only had a getter property and did not have a setter property. So I had to add a setter property

  • RELEVANCY SCORE 4.12

    DB:4.12:Serialversionuid 73


    Hi All,

    Why serialVersionUID is used by java for serialization and de-serialization?

    What is the purpose to of serialVersionUID ?

    Thanks.

    DB:4.12:Serialversionuid 73

    This is all described at length in the Java Object Serialization Specification.

  • RELEVANCY SCORE 4.12

    DB:4.12:Newbie Serialization Question p1


    How can I make a java.io.InputStream serializable?

    Thanks

    DB:4.12:Newbie Serialization Question p1

    InputStream is not serializable and there is no real reason to make it serializable too. If you are using it in a Serializable class, decalre it as transient.

  • RELEVANCY SCORE 4.12

    DB:4.12:Serialization Problem sk


  • RELEVANCY SCORE 4.12

    DB:4.12:Can We Serialization Static Things cx


    can we Serialization static things(static variables and ..)

    anand pasunoori

    DB:4.12:Can We Serialization Static Things cx

    You can serialize the Objects and values which are in static variable. When de serializing you could assign these value to the static variable.
    However, I would suggest you minimise the use of mutable static variable.

  • RELEVANCY SCORE 4.12

    DB:4.12:Semi-Custom Xml Serialization sz


    Hi All,
    I’m looking for an expert advice on the XML serialization issue, hope someone here can help me.
     
    I need to define something like “semi-custom” XML serialization for my class. That is, I’d like to have standard XML serialization to take care of most of the data in my class, but then add some extra XML serialization logic that will run after standard serialization of my class have completed. Example:
     
    class A
    {
                // standard data

     
                // children
                [XmlIgnore]
                ListA children;
    }
     
    I want to let standard XML serialization handle the serialization of ‘standard data’ in class A, but perform custom serialization on A.children. I was wondering if I can do this by marking A.children with [XmlIgnore] so that standard serialization does not handle A.children, and then define some callback that will be added to generated XML serialization code of my class (something similar to OnSerialized() in binary serialization, but the code should run as part of XML serialization of my class, not after it, so that I have some control over XML content that is being produced). Is that possible at all?
     
    I’d really appreciate any help on this matter.
     

    DB:4.12:Semi-Custom Xml Serialization sz

    Rodrigo, hi, I hope this helps him, but if he needs to do something before the closing element is written, this still doesn't help.John Saunders | Use File-New Project to create Web Service Projects

  • RELEVANCY SCORE 4.12

    DB:4.12:Sunflower2 3a


    what is serialization?My Signature

  • RELEVANCY SCORE 4.12

    DB:4.12:What Is Serialization And Serializable az


    what is serialization and serializable,Can any body explain me please.

    DB:4.12:What Is Serialization And Serializable az

    Hi bhasker,
    Thanks for your lession on serialization.I got clear idea on this topic .I have some or doubts .Can I send those questions to you.

    Thanks regards,
    Kanchana

  • RELEVANCY SCORE 4.12

    DB:4.12:Object Serialization In New I/O j7


    Can Anyone help me? How would i do object serialization in New I/O.

    Plz Help

    DB:4.12:Object Serialization In New I/O j7

    i have coded with bytearrayinputstream,etc successfully but i failed to work with Channels.newOutputStream, actually i tried for non blocking i/o including Selector. i got an exception Illegalblockingmodexception. would u pls help me by providing info in detail

  • RELEVANCY SCORE 4.12

    DB:4.12:Anything Better Than Serialization? k1


    Hi, Friends,
    I am working for embedded system and thus performance is a critical issue.

    I have to save a lot of data. So I used Serialization.
    Now I realize that Serialization takes me 30% of the processing power.

    Do you know any better solution for object persistence than Serialization?

    Regards,

    Youbin

    DB:4.12:Anything Better Than Serialization? k1

    I have to save a lot of data. So I used Serialization.
    Now I realize that Serialization takes me 30% of the
    processing power.

    Do you know any better solution for object persistence
    than Serialization?well...if you want to do a little extra work, instead of having your objects implement Serializable, you can have them implement java.io.Externalizable instead. then override readExternal() and writeExternal() to provide your own custom marshalling and unmarshalling. perhaps you can pick up some speed by serializing less data.

    hope this helps,
    p

  • RELEVANCY SCORE 4.12

    DB:4.12:Indexoutofboundsexception During Serialization d1


    I am getting an IndexOutOfBoundsException thrown from System.Runtime.Serialization.ObjectReferenceStack.Push(Object) method during Serialization using netNamedPipeBinding.  Does anyone know what could be causing this?

    DB:4.12:Indexoutofboundsexception During Serialization d1

    Which version of the framework are you on and are you using async loading. This is resolved in RTM.
    Also make sure you dont have circular references otherwise you need to do something more for this.
    Eg : Root.Child = node1 and node1.Parent=Root

  • RELEVANCY SCORE 4.12

    DB:4.12:Serialization Forms md


    hi,How canserializationawinformsorPropertyGrid?????

    DB:4.12:Serialization Forms md

    by buildingaSerializer.Itseemsmanypropertiesandclassesarenotserializable,sowhathappensisyouwillgeterrorsifthereisevenoneclassorpropertythatisn'tserializable.Howdoyougetaroundthis,simplebuildyourownserializerandchecktoseeiftheclassand/orpropertyisserializablebeforeyoutryusingthedefaultserializeronit,thenifit'snotandit'ssomethingyouwant,youwillhavetohandleityourself.Hopethishasbeensomehelp.Thereisnoeasyway.

  • RELEVANCY SCORE 4.12

    DB:4.12:Appfabric Cache Serialization p8


    Is it possible to override the default serialization with AppFabric Cache? We have a very high volume/high transaction application and all the xml serialization is causing performance issues. Any way to force binary serialization?

    thanks,
    jjasen

  • RELEVANCY SCORE 4.12

    DB:4.12:Serialization 1m


    Execuse me for this silly questionWht are the benefits of using serialization before classes or structure or ...??
    Thank you

    DB:4.12:Serialization 1m

    Some links that may be helpful:
    http://www.codeguru.com/columns/DotNet/article.php/c6595/
    http://msdn.microsoft.com/msdnmag/issues/04/10/AdvancedSerialization/
    There are some pieces of code there. Hope this helps.

  • RELEVANCY SCORE 4.12

    DB:4.12:Will De-Serialization Reconstructs Super Class Object ? fz


    Will de-serialization reconstructs super class object (there by calling its constructor) that doesn't implements Serializable interface?

    DB:4.12:Will De-Serialization Reconstructs Super Class Object ? fz

    Can you explain me in detail? Detail such as what? I've answered your questions completely. No detail is missing AFAICS.

    If you want to know more, read the specification.

  • RELEVANCY SCORE 4.12

    DB:4.12:Object Serialization cj


    why objects marked with transient keyword are not serialized?

    DB:4.12:Object Serialization cj

    Java provides the transient keyword. When this keyword is used infront of your variable, that variable will not be serialized. Why? Well, I can think of 2 reasons:

    1. When a variable contains secure information such as a user's password, you don't wanna save to a file becaue it can be hacked! Say the program starts out and connect to a database to get the password and use it to access stuffs! Then the program needed to be saved. You can decide to save the password or just retrieve it by connecting to database again the next time the program start. The 2nd way is more secure.

    2. Variables that can be reconstruct easily, statically shouldn't be save to save the saved file size. Stuffs such as the Container for the gui can be re-construct easily when the program starts. The filesize will be huge when you save these variables also.

    So when you don't wanna save a avariable for the 2 reasons above, you use transient!

  • RELEVANCY SCORE 4.12

    DB:4.12:Problem Controlling Operationcontract Formatting dm


    HI,
    I'm working with winfx Beta2 and having a problem controlling the way OperationContract methods are serialized/deserialized.
    I need a pretty high granularity controll similar to the one given in asmx web methods using [SoapDocumentMethodAttribute] [XmlElement] and friends. (e.g. attributed controll over the method paramters elements names, name of return value, name of result element, etc).

    example:
    [ServiceContract]
    interface MyService{
             [OperationContract]
             MyObject DoSomething(MyObject obj);
    }
    Indigo Default Request Serialization:
    s:Envelope...
    s:Body
    DoSomething
    obj....object serialization..obj
    /DoSomething
    /s:Body
    /s:Envelope
    Desireable Request Serialization:
    s:Envelope...
    s:Body
    DoSomething
    MyObject....object serialization..MyObject
    /DoSomething
    /s:Body
    /s:Envelope
    Indigo Default Response Serialization:
    s:Envelope...
    s:Body
    DoSomethingResponse
    DoSomethingResult...object serialization../DoSomethingResult
    /DoSomethingResponse
    /s:Body
    /s:Envelope

    Desirable Response Serialization:

    s:Envelope...
    s:Body
    DoSomethingResult
    MyObject...object serialization../MyObject
    /DoSomethingResult
    /s:Body
    /s:Envelope
    Any suggestions?
    Thanks.

    DB:4.12:Problem Controlling Operationcontract Formatting dm

    Thank you Sowmy,
    Regarding the dup thread, you're right, it started as two distinct problems that became one.
    As for the feedback you requested, for me,the MessageContarct paradigm has two main drawbacks:
    1. Migrating existing asmx code that has an extensive usage of custom formattingrequires are-definition ofthe entire API.
    2. The wsdl projection is a comfort but still, and this is merely my opinion, is not aclean enough solution for those who need a powerful controll over the formatting. The API, even for those who implement it is quite klutz.
    The approach I'm required to take is entirely a contract-first one. Here is an example of an asmx method that I want to migrate :
    [System.Web.Services.WebMethodAttribute()][System.Web.Services.Protocols.SoapDocumentMethodAttribute(http://localhost/myscheme, RequestNamespace="http://www.abcd.com/", ResponseElementName="MyMethodResult", ResponseNamespace="http://www.abcd.com/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
    [return: System.Xml.Serialization.XmlArrayAttribute("Paths")]
    [return: System.Xml.Serialization.XmlArrayItemAttribute("Path", IsNullable=false)]
    public Path[] MyMethod( Context Context, System.DateTime Start, System.DateTime Finish, string Domain, string Description, [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)] Path[] Paths, bool Commit, [System.Xml.Serialization.XmlAttributeAttribute()] string Revision, out Error Error, [System.Xml.Serialization.XmlArrayItemAttribute("Warning", IsNullable=false)] out WarningsWarning[] Warnings) ;

    Thanks.

  • RELEVANCY SCORE 4.12

    DB:4.12:Json as



    Where do I get JSON serialization module from?

    Thanks

    DB:4.12:Json as


    Hi,

    Down load from here https://github.com/mikechambers/as3corelib

    Inside this you will find the class to convert json into ASON. i.e. Actionscript.

    with Regards,

    Shardul

  • RELEVANCY SCORE 4.12

    DB:4.12:Difference Between Serialization And Externalization k3


    Can any body explain me the difference between serialization and externalization
    with some example.

    DB:4.12:Difference Between Serialization And Externalization k3

    Serialization is the process of writing the state of an object to byte stream.
    Where as Externalization customize the serialization process by using readExternal() and writeExternal() methods

  • RELEVANCY SCORE 4.12

    DB:4.12:Serialization k7


    Hi , Can anybody tell me why do we need serialization and how it is implemented.

    Nitin

    DB:4.12:Serialization k7

    Hi,
    I'm an Italian student and I don't know English very well, so excuse me if I'll do mistakes.

    We use serialization when we want to write an object on a generic OutputStream like FileOutputStream or SocketOutputStream.
    You can create an object serializated by implementation of Serializable interface which don't provide any method.

    Example:

    public class MyObject implements java.io.Serializable
    {}

    Use writeObject() method to write an instance of MyObject for example if you
    want write the object in a file you must do like you see below:

    MyObject obj = new MyObject();
    ObjectOutputStream out = new ObjectOutputStream(new
    FileOutputStream("file_name"));

    out.writeObject(obj);

    You can read in this way:

    ObjectInputStream in = new ObjectInputStream(new
    FileInputStream("file_name"));

    MyObject obj = (MyObject)in.readObject();

    I hope to help you.
    bye

  • RELEVANCY SCORE 4.12

    DB:4.12:Serialization ap



    Hi Experts !

    Can any one tell me what is the procedure to perform Serialization in Material management

    Thanks

    B Patel

    DB:4.12:Serialization ap


    Hello B Patel,

    Addition to my previous reply,

    Process Flow for serial number

    1. You create a serial number profile in Customizing for Plant Maintenance and Customer Service.

    2. You create a material master record and enter a serial number profile.

    3. You create a batch master record for the material if it is to be managed in batches.

    4. You can create serial number master records in advance if you want to have a pool of serial numbers.

    From a technical perspective, an "incomplete" equipment master record is created for this.

    5. You can create configuration data for serial number master records.

    6. You assign serial numbers to the material when business procedures take place (for example, a goods receipt):

    - Either you assign manually serial number master records that you created in advance, or

    - The system assigns automatically new serial numbers and creates new serial number master records for this

    Hope this helps.

    Regards

    Arif Mansuri

  • RELEVANCY SCORE 4.12

    DB:4.12:Serialization/De Serialization In Winrt-C# mf


    Hi Experts,
    I am new one to WinRT, am creating an App in that i need to use serialization/ de serialization. Can you please share me some code for serialization and deserialization.

    -Ramesh

    DB:4.12:Serialization/De Serialization In Winrt-C# mf

    Pleasefind anintroductory example:
    private async void Button_Click_1(object sender, RoutedEventArgs e)
    {
    string file = File.xml;
    StorageFolder folder = ApplicationData.Current.TemporaryFolder;
    {
    KiwiItem item;
    item = new KiwiItem() { ID = 10, Title = T10 };
    await SerializerKiwiItem.Serialize(folder, file, item);
    }
    {
    KiwiItem item;
    item = await SerializerKiwiItem.Deserialize(folder, file);
    Debug.WriteLine(Item ... {0} {1}, item.ID, item.Title);
    foreach(KiwiStub stub in item.StubList)
    Debug.WriteLine(Stub ... {0} {1}, stub.ID, stub.Title);
    }
    }
    ---
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Runtime.Serialization;
    using System.Threading.Tasks;
    using Windows.Storage;

    namespace App34
    {
    [DataContract]
    public class KiwiItem
    {
    [DataMember]
    public int ID { get; set; }
    [DataMember]
    public string Title { get; set; }
    [DataMember]
    public IListKiwiStub StubList { get; set; }
    public KiwiItem()
    {
    this.StubList = new ListKiwiStub();
    this.StubList.Add(new KiwiStub() { ID = 1, Title = T11 });
    this.StubList.Add(new KiwiStub() { ID = 2, Title = T21 });
    }
    }
    [DataContract]
    public class KiwiStub
    {
    [DataMember]
    public int ID { get; set; }
    [DataMember]
    public string Title { get; set; }
    }
    public class SerializerT
    {
    public static async Task Serialize(StorageFolder folder, string fileName, object instance)
    {
    StorageFile newFile = await folder.CreateFileAsync(fileName,
    CreationCollisionOption.ReplaceExisting);
    Stream stream = await newFile.OpenStreamForWriteAsync();
    DataContractSerializer serializer = new DataContractSerializer(typeof(T));
    serializer.WriteObject(stream, instance);
    stream.Dispose();
    }
    public static async TaskT Deserialize(StorageFolder folder, string fileName)
    {
    StorageFile newFile = await folder.GetFileAsync(fileName);
    Stream stream = await newFile.OpenStreamForReadAsync();
    DataContractSerializer serializer = new DataContractSerializer(typeof(T));
    T item = (T)serializer.ReadObject(stream);
    stream.Dispose();
    // ...
    return item;
    }
    }
    }

  • RELEVANCY SCORE 4.12

    DB:4.12:Is Xml Serilaization Is Slower? md


    Hi
     
    Is Xml Serilaization is slower than binary serialization ?
     
    Is Default non-custom xml serialization is slower than custom xml serialization?
     
    and why??
     
    thanks

    DB:4.12:Is Xml Serilaization Is Slower? md

    Yes, I doubt it's the text = text + more text type of concatenation.  But, even if they use StringBuilder, there's lots of intermediate strings that possibly need be created when creating XML.  I wouldn't be surprised if it's just wrapping the native XML objects.  So, there's wouldn't be the nasty .NET interned strings issues.  If the XML objects are being used there's potentially a lot of:
     
    Create element: element/
    Set value: elementvalue/element
    Set attribute: element attribute='something'value/element
     
    But, that's just supposition.  I expect that's mitigated to a certain extent.
     

  • RELEVANCY SCORE 4.12

    DB:4.12:Re: Jdk 1.3.X Gregoriancalendar Serialization Problem 3d


    Somebody knows a work-around?

    DB:4.12:Re: Jdk 1.3.X Gregoriancalendar Serialization Problem 3d

    Even if a class is serializable it can have transient
    variables.And that would be the problem.

    Looking at the original post the only difference between the two classes appears to be the constants. Like so

    ERA=1,YEAR=2002,MONTH=12...
    ERA=?,YEAR=?,MONTH=?...

    Initially that doesn't make any sense because, for example, ERA is defined like this...

    public final static int ERA = 0;

    So it must exist.

    But then looking at the toString() method the following code is seen...

    for (int i=0; iFIELD_COUNT; ++i) {
    buffer.append(FIELD_NAME);
    buffer.append(isSet(i) ? String.valueOf(fields[i]) : "?");
    }

    In the above FIELD_COUNT and FIELD_NAME are constants, and since 'ERA' is being printed they certainly exist. So the most likely explaination is that isSet() is returning false.

    public final boolean isSet(int field)
    {
    return stamp[field] != UNSET;
    // return isSet[field];
    }stamp[] is transient.

    As best as I can tell computeFields() needs to be called and that is a protected method. And the only other way to call it is indirectly via setTimeInMillis(long millis) or setTime(Date date) - which calls setTimeInMillis().

    One choice is to use your own class derived from Gregorian calendar and override readResolve(). It could then call computeFields() - I think that would work.

    Or pass a timestamp and not a calendar.

  • RELEVANCY SCORE 4.10

    DB:4.10:How To Handle Serialization Problem In Jboss 9x



    please help!

    DB:4.10:How To Handle Serialization Problem In Jboss 9x


    Maybe you shoud be a little bit more specific....

  • RELEVANCY SCORE 3.98

    DB:3.98:Serialization With Random Access File. s7


    Hi,

    Is it possible to use serialization with the Random Access File.

    Thanks,

    DB:3.98:Serialization With Random Access File. s7

    More.....

    If you are replacing an existing record of the file (Lets say you are saving some changes) if the new record is longer thn the old one the new record will overwrite some parts of the next record too.

  • RELEVANCY SCORE 3.98

    DB:3.98:What Is Serialization 9f


    What does it mean to have a serializable object
    why is serialization important

    DB:3.98:What Is Serialization 9f

    A serializable object can have it's current state saved and written to a file. If you wanted to save an object and restore it later you could serialize it to a file and read it when you needed it again.

    One use is in XML/XSLT parsing. The XSLT parser does a lot of work (takes a lot of time) to create an XSLT object. So, one option is to create the object, serialize it, and write it to a file. Next time you need it, you just read the file back and whammo, you've got your object ready to go without doing anything to it.

    Some people use seialization to save states of there programs, so when a user runs the program again they pull back the object and the user starts with the same data from where they left off.

    Check out these two examples:

    Serializing an Object
    http://developer.java.sun.com/developer/codesamples/examplets/java.io/270.html

    Deserializing an Object
    http://developer.java.sun.com/developer/codesamples/examplets/java.io/271.html

    Hope this helps!

    DesQuite

  • RELEVANCY SCORE 3.90

    DB:3.90:Custom Serialization pm


    What is the purpose of custom serialization and when we should use custom serialzation.

    DB:3.90:Custom Serialization pm

    To add to the point that Jossi brought up, there are two other important cases to use custom serialization:
    1.  value of a member variable is invalid after deserialization, but you need to provide the variable with a value in order to reconstruct the full state of the object
    2.  you should not use default serialization on a class that is marked with the serializable attribute and has declarative or imperative security at the class level or on its constructors
    See:  http://msdn2.microsoft.com/en-us/library/ty01x675(VS.71).aspx
     
    You might also want to look at:
    http://msdn.microsoft.com/msdnmag/issues/04/10/AdvancedSerialization/

  • RELEVANCY SCORE 3.87

    DB:3.87:Linq Generated Class Serialization Problem z7


    Hello,

    DB:3.87:Linq Generated Class Serialization Problem z7

    Hi,It seems you have a WCF question!? try asking this WCF forum http://social.msdn.microsoft.com/forums/en-US/wcf/threads/Ameen.

  • RELEVANCY SCORE 3.87

    DB:3.87:What Is Serialization m8


    Can anyone tell me the correct explanation of ,what is serialization? and when it has to be used.

    DB:3.87:What Is Serialization m8

    It's a way to transfer an object out of memory, and then retrieve it.

    A simple example is use of "RMI" for client/server communications. Except in the most trivial cases, data must be passed by clients making remote requests, and returned as the results of those requests. That data is passed as serialized objects.

    Informally, think of he serialized object as the data which it normall holds, plus some class identification info.

  • RELEVANCY SCORE 3.87

    DB:3.87:Regarding A Basic Question About Serialization 7j



    1) i like to know what is binary Serialization and when people use binary Serialization ?
    2) what is the default Serialization type?
    3) how many type of Serialization exist?
    4) what is basic difference between xml serialization SOAP serialization ?

    DB:3.87:Regarding A Basic Question About Serialization 7j

    Binary serialization produces a more compact file than XML Serialization.
    It is easier to transmit text files, XML, over the web than binary files.
    XML serialization files can be deserialized by any code that can read a text file, basically anything.
    Binary serialization files produced by .NET code can only be properly deserialized by .NET code.
    Rudy =8^DMark the best replies as answers. Fooling computers since 1971.
    http://thesharpercoder.com/

  • RELEVANCY SCORE 3.87

    DB:3.87:How Do I Turn Of Serialization For The Session Bean ? 3k


    any ideas how to turn of serialization for session bean ?.

    regards
    gustav

    DB:3.87:How Do I Turn Of Serialization For The Session Bean ? 3k

    Hi Gustav,

    The session bean extends the Abstract sessionBean which implements serializable. However what is the reason for you to want to turn off serialization for a sessionbean?

    Cheers
    Giri

  • RELEVANCY SCORE 3.87

    DB:3.87:Connection Between Protocol And Serialization Type c7


    Why are protocol and serialization type connected? Why can't I use SOAP serialization throught TCP channel or binary serialization through HTTP channel?

    DB:3.87:Connection Between Protocol And Serialization Type c7

    I'm not sure. Could be related to the fact that web applications are forced to use Http and Soap.Here's more info on the subject:http://msdn.microsoft.com/en-us/library/ms973864.aspx/Calle

  • RELEVANCY SCORE 3.87

    DB:3.87:Hw Can I Mak Clas Itself Serialization Without Imple'ing Serization Interfa 83


    Hi,
    How can i make my class itself as serialization with out implementing serialization interface?is it possible?help me out pls

    DB:3.87:Hw Can I Mak Clas Itself Serialization Without Imple'ing Serization Interfa 83

    If you want to do Java Serialization using ObjectOutputStream.writeObject() your request is self-contradictory.

    If you want a general solution which doesn't involve Java Serialization as defined in the JLS, have a look at java.beans.XMLEncoder.

    Nobody is going to give you the code, at least I hope not.