Monday, July 6, 2009

ORACLE BPEL

i) Out Of Memory Exception in BPEL

Uncaught exception java.lang.OutOfMemoryError in JCA-work-instance:JMSAdapter-47 - cause: Java heap space--

we see this exception when the Resource Adapter was not able to complete the transaction in a defined amount of time., make sure if the transaction timeout is around transaction-timeout="7200" [transaction-timeout is in seconds and defaults to 30]

you can find this parameter : $ORACLE_HOME/j2ee/OC4J_SOA/config/transaction-manager.xml

Wednesday, July 25, 2007

Useful Unix Commands

#To find and Replace a string recursivly
find . -name \*.txt -type f -exec sed -i 's/Test1/Test2/g' {} \;

#To Uncompress a tar.gz file
gunzip -c filename.tar.gz tar xvf -

# To Search the file excluding the # [Comments ]mark in it
grep -c -v "^#" /opt/irisa/.fetch*rc?


#To Insert a New Line above a PATTERN Match:
sed '/connection-pool>/i\n' test
this will insert two lines on top of matched patter "/connection-pool>"