Archive for April, 2007

h1

[J2EE] All in one eclipse distribution

April 13, 2007

I’ve recently tested this distribution of eclipse that bundler with most of the much needed plugin, it cut down the time to setup a new eclipse, especially when you are working with spring, hibernate, tomcat and JBoss.

http://www.easyeclipse.org/site/home/

Advertisements
h1

[J2EE] Remote Service and web services using Spring

April 11, 2007

I was trying to find out if Spring framework can provide remote service like EJB, and was able to find this article

http://www.springframework.org/docs/reference/remoting.html

Spring actually support Remote Service with the following technologies:
Remote Method Invocation (RMI)
Spring’s HTTP invoker
Hessian
Burlap
JAX RPC
JMS 

h1

[Freeware] Wink- Screen capture and demo tool

April 10, 2007

http://www.freeware4u.com/index.php?option=com_remository&Itemid=26&func=fileinfo&id=101

h1

[Java] – Simple trick to export to excel

April 5, 2007

Simply set the header to inform browser that the content type is for xls application.

response.setHeader(“Content-type”,”application/vnd.ms-excel”);

response.setHeader(“Content-disposition”,”inline; filename=myfilename.xls”);

h1

[Oracle] – End Line Char [enter]

April 5, 2007

chr(10) and chr(13) is the end line char.

chr(10) || chr(13) is equivalent to [enter] key in windows.

h1

[Oracle] – SQL to list all tables

April 4, 2007

SELECT TNAME FROM TAB;

h1

[Oracle] SQL to optimize performance

April 4, 2007

You can try to run the following statement to improve the performance of table querying.

ANALYZE TABLE <table_name> COMPUTE STATISTICS;

If your table is big enough, it will drastically improve the query timing.

This may not be the best way to improve the performance as some school of thought suggested that this is ‘old-fashioned’ way of performance optimization.

Do read more if you are serious about performance optimization. I found this link which may be useful to you: http://www.stanford.edu/dept/itss/docs/oracle/10g/text.101/b10729/aoptim.htm