Search This Blog

Wednesday, November 24, 2004

How to use the DoNotReGenerateWrapperCode OC4J option

First run the OC4J with the option ,

java -DKeepWrapperCode=true -jar oc4j.jar

This generates the .java files in say c:\oc4j904\j2ee\home directory

Now edit the appropiarte file , and add your own code and some System.out.println codes etc ,after this just save the files.

Now start the OC4J container , with the following options

java -DDoNotReGenerateWrapperCode=true -DKeepWrapperCode=true -jar oc4j.jar

After this redeploy the application again , you will see messages like ,

04/11/24 18:00:47 Skip re-gen of EmpHome_EntityHomeWrapper19.java
04/11/24 18:00:47 Skip re-gen of Dept_EmpLocal_ORCollection11.java
04/11/24 18:00:47 Skip re-gen of DeptHome_EntityHomeWrapper29.java
04/11/24 18:00:47 Skip re-gen of DeptLocalHome_EntityHomeWrapper27.java

Now run your application.

No comments: