Friday, July 31, 2009

Kannel

What is Kannel?

Kannel is an open source project to make a WAP gateway. Kannel also works as a SMS gateway.

Kannel

Mockito from Google

Mockito from Google
Mockito is a mocking framework that tastes really good. It lets you write beautiful tests with clean & simple API. Mockito doesn't give you hangover because the tests are very readable and they produce clean verification errors

Difference between redirect and forward

If a request is forwarded to another request, all name/value pairs stored in the request scope are carried over to the new request. On the other hand, if a request is redirected, the request data are lost.

Another important point to understand about sendRedirect() is that the browser goes to the second resource only after it receives the redirect message from the first resource. In that sense, sendRedirect() is not transparent to the browser. In other words, the servlet sends a message telling the browser to get the resource from elsewhere.

Java Decompiling and Patching

JASPER: Jasper is a program to read Java class files in binary byte code format. The program is capable of generating ASCII files which can be used in conjunction with the Jasmin Assembler. Jasper is also intended to generate input into a class file browser that can produce the inheritance hierarchy and composition maps from the java class files.

Jasper Download


Jasmin is an assembler for the Java Virtual Machine. It takes ASCII descriptions of Java classes, written in a simple assembler-like syntax using the Java Virtual Machine instruction set. It converts them into binary Java class files, suitable for loading by a Java runtime system.
Jasmin

Thursday, July 30, 2009

Get thread stack size at runtime

jinfo -flag ThreadStackSize PID

I found at another forum http://forum.java.sun.com/thread.jspa?threadID=5142702&messageID=9527748

Snacc4j

Discussion thread

I have an old 2.3 copy of the entire snacc4j tar ball out on sourceforge which should contain the license with it. You can get it hear:

http://ldapd.sourceforge.net/dist/Snacc4J_v2.3.tgz

Luckily I had it lying around before IBM totally took this off of opensource.

LDAP programmin Related

The Apache Directory Project

Wednesday, July 29, 2009

Custom Reporting Utilities for Shell

http://code.google.com/p/crush-tools/


Oracle Coherence
http://www.oracle.com/technology/products/coherence/index.html
Coherence provides replicated and distributed (partitioned) data management and caching services on top of a reliable, highly scalable peer-to-peer clustering protocol. Coherence has no single points of failure; it automatically and transparently fails over and redistributes its clustered data management services when a server becomes inoperative or is disconnected from the network. When a new server is added, or when a failed server is restarted, it automatically joins the cluster and Coherence fails back services to it, transparently redistributing the cluster load. Coherence includes network-level fault tolerance features and transparent soft re-start capability to enable servers to self-heal.

Sunday, July 19, 2009

Calling EJ from Glassfish Client code

http://www.codeproject.com/KB/java/EJB_remote_session.aspx

Remember to include
appserv-rt.jar

C:\glassfish-v2.1\lib

Sunday, July 12, 2009

Sonar

get it from http://sonar.codehaus.org/
Also Read http://java.dzone.com/articles/quality-assurance-sonar

Tool for code analysis

Thursday, July 9, 2009

Many of the great achievements of the world were accomplished by tired and discouraged men who kept on working

Many of the great achievements of the world were accomplished by tired and discouraged men who kept on working

Wednesday, July 1, 2009

Extract thread dump from logs

cat ThreadDump |grep tracker | cut -c 27- > tracker.tdump