I have compiled my EJB which is an CMP
There is no compile ERROR when I changed the return type for the ejbCreate() method to "return new OrderPK(custid);".
After generating the jar file
I run the Weblogic ejbc command(i.e)
java -Dweblogic.home=%WL_HOME% weblogic.ejbc -compiler javac build\temp.jar %WILEY_HOME%\deploy\yogi%1.jar
I am getting the ERROR like "Error in OrderBeanEOImpl.java:56: incompatible types found : int required: ejb.entityBean.containerManaged.testing.OrderPK, pk = bean.custid;
I could not understand this.
Please any one can help me out 2 sort out this problem
Add this line in your ejbCreate() method and check.
Pls. get bk with the result. I think this needs further investigation depending on your result.
I have tried that already what U have send,but eventhough its the same.
Pls send me the entity bean code, I'll compile and check. Can't say anything as of now.
the ejbCreate() method should return an object and cannot return a primary data type like integer. Hence wrap the int with Integer and try.