
www.Usenet.com
| <-- __Chronological__ --> | <-- __Thread__ --> |
Here is a sample...:
module Bank { valuetype EmployeePK{ public string ssn; }; };
This is the impl in java you need to generate: public class EmployeePKImpl { EmployeePKImpl(); }
This is the default factory file you have to edit:
public class EmployeePKDefaultFactory implements org.omg.CORBA.portable.ValueFactory { public java.io.Serializable read_value (org.omg.CORBA_2_3.portable.InputStream is) {
// INSTANTIATE IMPLEMENTATION CLASS ON THE LINE BELOW: java.io.Serializable val = new EmployeePKImpl; <-- changed this line
//throw new org.omg.CORBA.NO_IMPLEMENT(); <-- commented this line return is.read_value(val); <-- uncommented this line }
}
| <-- __Chronological__ --> | <-- __Thread__ --> |