Friday, April 30, 2010

Eclipse Search Shortcut Key

Search shortcut key: ctrl + shift + T

Enable Eclipse Remote Debug in JBoss

1. Open run.bat and find the lines that look like this:

rem enable remote debugging.
set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y %JAVA_OPTS%

2. Start Jboss. (JBoss will hang there until you connect a debugger to it.)
3. In Eclipse, open your project, and on the toolbar click on the debugger bug arrow, then Open Debug Dialog.
4. Choose "Remote Java Application", right-click, New… and update the port to the address in the run.bat (address=8000, you could change it to any no).
5. Click Debug
6. Set a break point somewhere in your code or a library that has source attached
7. Exercise your project (via a web service, for instance) and when it hits one of your breakpoints, it will break in Eclipse.

Wednesday, April 28, 2010

Ibatis - BLOB Data Type

<resultMap id="soapDataResult" class="soapRequest">
<result property="action" column="ACTION"/>
<result property="reqMsg" column="REQ_MSG" jdbcType="BLOB"/>
</resultMap>


<update id="updateSoap" parameterClass="soapRequest">
UPDATE SOAP_REQUEST
SET REQ_MSG = #reqMsg:BLOB#
</update>

Check IMEI

Type *#06# to check IMEI value

Thursday, April 8, 2010

Unicode Character Set

Useful link

http://www.querytool.com/help/907.htm

http://www.oracle.com/technology/tech/globalization/pdf/TWP_NCHAR_Migration_10gR1.pdf