If you are using JDeveloper 11g Technology Preview 2 release and experiencing slower than desired startup time for embedded OC4J server, read on. The developers just passed on this tip you can try to improve the startup time of embedded OC4J, to workaround a performance bug we found after shipping the Technology Preview 2 release. Do the following:
- Ensure you've run the embedded OC4J server at least once after first installing JDeveloper 11g Technology Preview 2
- You can do this by running any servlet, EJB session bean, or JSP page
- Find your JDeveloper system settings directory (system11.1.1.0.20.46.84)
- If you start JDeveloper 11g with the -singleuser command line switch, then it will be in the JDev installation home directory
- Otherwise, it will be in the user profile directory on your operating system, under a JDeveloper subdirectory. (On windows, this is a directory like C:Documents and Settingsusername)
- In the system11.1.1.0.20.46.84 directory, change directory to the subdirectory named o.j2ee/embedded-oc4j/config
- Edit the java2.policy file
- Comment out the following entry by adding a /* on the line before it and */ on the line after it:
So that this entry in your java2.policy file will now look like this:
/* grant codeBase "file://generated/by/oracle.j2ee.connector.proxy.BCELProxyClassLoader" { permission java.security.AllPermission; }; */
The next time you start the embedded OC4J, it should be about 20 seconds faster.
10:48:23 PM
|
|