Dive into Oracle ADF

Send me a mail
 Dive into Oracle ADF   Click to see the XML version of this web page.   (Updated: 2/3/2008; 9:23:25 PM.)
Tips and tricks from Steve Muench on Oracle ADF Framework and JDeveloper IDE

Search blog with Google:
 

Search BC4J JavaDoc:
 

October 2007
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Sep   Nov

Get Firefox!

Wednesday, October 24, 2007

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:

  1. 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
  2. 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)
  3. In the system11.1.1.0.20.46.84 directory, change directory to the subdirectory named o.j2ee/embedded-oc4j/config
  4. Edit the java2.policy file
  5. 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    



© Copyright 2008 Steve Muench.