Saturday, November 11, 2017

Oracle Jdeveloper 12.2.1.3/4 Optimization

 There are some optimization setup for oracle jdeveloper

Add in the end of file MW_HOME \jdeveloper\ide\bin\ide.conf

 

AddVMOption -Xms2048M 
AddVMOption -Xmx4096M 
 

Add in the end of file MW_HOME \jdeveloper\jdev\bin\jdev.conf

#Adds a memory monitor which helps in check current heap used by jdeveloper 
AddVMOption -DMainWindow.MemoryMonitorOn=true 
#ADD the following JVM options towards the end of file 
AddVMOption -XX:+UseStringCache 
AddVMOption -XX:+OptimizeStringConcat 
AddVMOption -XX:+UseCompressedOops 
AddVMOption -XX:+AggressiveOpts 
AddVMOption -XX:+UseConcMarkSweepGC 
AddVMOption -DVFS_ENABLE=true 
AddVMOption -Dsun.java2d.ddoffscreen=false 
AddVMOption -XX:+UseParNewGC 


To manage more jdeveloper installation of the same version set a custom ide user dir using a different path for every installation:


 

on file: MW_HOME \jdeveloper\jdev\bin\jdev.boot


For Windows

ide.user.dir= C:\Users\<so-user>\AppData\Roaming\jdeveloper\12.2.1.3\studio


 For Mac

ide.user.dir=/Users/<so-user>/.jdeveloper/12.2.1.3/studio
 
For Linux
 
ide.user.dir=/home/<so-user>/.jdeveloper/12.2.1.3/studio
 
 

in alternative on 12.2.1.4 you can set on file:

MW_HOME \jdeveloper\jdev\bin\jdev.conf 

AddVMOption -Dide.system.dir=/home/<user>/.jdeveloper/12.2.1.4/wc 

#setting work directory  

AddVMOption -Dide.work.dir=/mnt/c/Users/<user>/workspaces/jdeveloper/12.2.1.4

Saturday, May 13, 2017

java wsdl bypass service check on deploy



we need to disable endpoint testing at system startup. Often the environments are separate, so it is not possible to validate a service in test or production using a development url!

Remove jax_ws_catalog.xml file form the artefact!


On the WS client you can disabl wsdlAddress validation as follow:

MyService service = new MyService();
MyServiceInterface port = service.getMyServicePort();
BindingProvider bindingProvider = (BindingProvider) port;
bindingProvider.getRequestContext().put(
    "set-jaxb-validation-event-handler", Boolean.FALSE);