Thursday, December 26, 2013

Execute procedure in informix

Following command can be used to execute procedure in informix database server.
In informix "dbaccess" shell, execute the following command. This will run the "this_is_it" procedure with three parameters "1", "2" and "3".

execute procedure this_is_it ('1','2','3');

create procedure this_is_it(this CHAR(3), that CHAR(4), other CHAR(3))
select * from inff_charge into temp this_is_it;
end procedure;

Monday, December 23, 2013

Force use IPv4 instead of IPv6 in JAVA

Sometimes, Netbeans IDE can't communicate via HTTP over IPv6. In that cases, you can let IDE to use IPv4 protocol instead of IPv6.

Following JVM option can be used to communicate over IPv4.

-Djava.net.preferIPv4Stack=true

Tuesday, December 10, 2013

Send nohup.out to different file


Following command can use to redirect nohup.out to different files.

nohup java -jar -Xms32m -Xmx64m  Application.jar  > AppLog.out &

Above command will redirect "Application.jar" output to "AppLog.out" file.