ejb - several EARs, JPA and interfaces -
i have working app1.ear, containing:
- jpa entity, myobjectimpl, implementing interface myobject api.jar
- api.jar myobject interface , ejb remote interface
- ejb.jar ejbs providing methods access , modify jpa entities
second app2.ear supposed communicate app1.ear using interfaces in api.jar. works fine when passing java basic types between ears. when app2.ear tries retrieve app1.ear instance of myobject - corba marshal exception raised, saying myobjectimpl class can not found:
"iop00810257: (marshal) not load class com.zzz.myobjectimpl"
placing myobjectimpl in app2.ear solves issue, don't want expose jpa implementation other ear applications. missing or approach wrong? please advise or dig. many in advance!
ps: server gf 3.0.1, no gf-specific deployment descriptors, both ears running on same jvm
the impl classes required during deserialization. approach use xml or json or protobuff, if doesn't want expose impl classes.
Comments
Post a Comment