domingo, 11 de outubro de 2015

segunda-feira, 11 de maio de 2015

OAAM Questions properties

challenge.question.registration.groups.maxlimit=3
challenge.question.registration.groups.minimum.questions.per.category.count=1

quarta-feira, 29 de abril de 2015

OIM Design Console


OIM Design Console

source /u01/oracle/config/domains/IAMGovernanceDomain/bin/setDomain.sh

cd /u01/oracle/products/identity/wlserver_10.3/server/lib

java -jar /u01/oracle/products/identity/modules/com.bea.core.jarbuilder_1.7.0.0.jar

cp wlfullclient.jar /u01/oracle/products/identity/iam/designconsole/ext/

cd /u01/oracle/products/identity/iam/designconsole

quinta-feira, 5 de março de 2015

AdminServer

Solution 1: Stop weblogic and delete the .Dat file from *\user_projects\domains\<base_domain>\servers\<AdminServer>\data\store\default and diagnostics
start the JVM

sexta-feira, 30 de maio de 2014

Use Stringbuffer

2.12 Use Stringbuffer Instead of String Concatenation

The String class is the most commonly used class in Java. Especially in Web applications, it is used extensively to generate and format HTML content.
String is designed to be immutable; in order to modify a String, you have to create a new String object. Therefore, string concatenation can result in creating many intermediate String objects before the final String can be constructed. StringBuffer is the mutable companion class of String; it allows you to modify the String. Therefore, StringBuffer is generally more efficient than String when concatenation is needed.
This section also features the following practices:

2.12.1 Use StringBuffer Instead of String Concatenation If You Repeatedly Append to a String In Multiple Statements

Using the "+=" operation on a String repeatedly is expensive.
For example:
String s = new
String();
     [do some work ...]
s += s1;
     [do some more work...]
s += s2;

Replace the above string concatenation with a StringBuffer:
StringBuffer strbuf = new StringBuffer();
     [do some work ...]
strbuf.append(s1);
     [so some more work ...]
strbuf.append(s2);
String s = strbuf.toString();

2.12.2 Use Either String or StringBuffer If the Concatenation Is Within One Statement

String and StringBuffer perform the same in some cases; so you do not need to use StringBuffer directly.
    String s = "a" + "b" + "c";
to
    String s = "abc";
 
Optimization is done automatically by the compiler.
  • The Java2 compiler will automatically collapse the above.
  • The Java2 compiler will also automatically convert the following:
             String s = s1 + s2;
        to
             String s = (new StringBuffer()).append(s1).append(s2).toString();
    
    
    
    
    In these cases, there is no need to use StringBuffer directly.

2.12.3 Use StringBuffer Instead of String Concatenation If You Know the Size of the String

The default character buffer for StringBuffer is 16. When the buffer is full, a new one has to be re-allocated (usually at twice the size of the original one). The old buffer will be released after the content is copied to the new one. This constant reallocation can be avoided if the StringBuffer is created with a buffer size that is big enough to hold the String.
The following will be more efficient than using a String concatenation.
    String s = (new StringBuffer(1024)).
append(s1).append(s2). toString();

will be faster than
    String s = s1 + s2;

The-Dining-Philosophers-Problem

http://adit.io/posts/2013-05-11-The-Dining-Philosophers-Problem-With-Ron-Swanson.html