how to config POF to handle inner class
923561Mar 28 2012 — edited Apr 2 2012Hi, I have the following vo object:
public class Obj implements java.io.Serializable, PortableObject
{
public static class InnerObj implements java.io.Serializable, PortableObject
{....}
.......
}
1) If i put both classes in the pof config xml, it throws class not found exception for the inner class InnerObj (as expected since there is no separate class files for it). My question is what is the correct way to handle the inner class? Should i just leave it out of the pof config xml and coherence will be smart enough to handle it?
<pof-config>
<user-type-list>
<user-type>
<type-id>111</type-id>
<class-name>some.package.Obj</class-name>
</user-type>
<user-type>
<type-id>222</type-id>
<class-name>some.package.InnerObj</class-name>
</user-type>
</user-type-list>
</pof-config>
2) Also want to confirm if implement both java.io.Serializable & PortableObject in the vo, coherence will ALWAYS take the portable object serialization if <pof-enabled>true</pof-enabled> is set in the config?
thanks!