RSS feed [root] /weblog /java




login:

password:

title search:




 


Thu Apr 06 06:33:22 GMT 2023

java



(google search) (amazon search)
second
download zip of files only

Thu Dec 25 17:15:04 GMT 2008 From /weblog/java/servlet

security


A collections of tools - http://www.theserverside.com[..]onsSecure&asrc=EM_NLN_5417965&uid=703565


(google search) (amazon search)


Mon Sep 08 16:42:44 GMT 2008 From /weblog/java/concurrency

Functional


Series about using functional library to ease the development of concurrency application

http://apocalisp.wordpress.com[..]allel-strategies-and-the-callable-monad/
http://apocalisp.wordpress.com[..]008/06/30/parallel-list-transformations/
http://apocalisp.wordpress.com[..]7/28/threadless-concurrency-with-actors/
http://apocalisp.wordpress.com/2008/09/02/a-better-future/

(google search) (amazon search)


Mon Mar 17 17:25:28 GMT 2008 From /weblog/java/hacks

kill


if you do a “kill -3? of the java process id, it dumps a stack trace of every thread, including what locks it’s holding, to stdout. - http://blog.xcski.com[..]ie-says-kill-3-pid-is-my-new-best-friend

At windows, it is ctrl-break

(google search) (amazon search)


Mon Jan 07 07:05:06 GMT 2008 From /weblog/java/swing

table


Comparing SWT tableviewer and Swing jtable - http://andymaleh.blogspot.com[..]1/jface-tableviewer-vs-swing-jtable.html

(google search) (amazon search)


Mon Jan 07 07:03:59 GMT 2008 From /weblog/java/fundamental

clone


Some problems of cloning, include using copy constructor / clone() method - http://www.agiledeveloper.com/articles/cloning072002.htm

(google search) (amazon search)



Thu Dec 20 03:34:00 GMT 2007 From /weblog/java/eclipse

rcp


Tutorial - http://www.ibm.com[..]ce/library/os-eclipse-snippet/index.html , shorter one - http://nricheton.homeip.net/?p=149

Lotus higher level framework base on RCP - http://www.ibm.com/developerworks/lotus/library/expeditor-intro/

Using M$ Office via OLE - http://www.vogella.de[..]EclipseMicrosoftIntegration/article.html

Default open views dialogs - _showViewMenu = ContributionItemFactory.VIEWS_SHORTLIST.create(window);

Glimmer, DSL for building SWT interface for jruby - http://andymaleh.blogspot.com/2007/11/sneak-peak-at-glimmer.html

(google search) (amazon search)


Fri Dec 14 09:10:58 GMT 2007 From /weblog/java/swing

scripting


frame (title:'Demo') {
menuBar {
menu('File') {
menuItem 'New'
menuItem 'Open'
}
}
panel {
label 'Label 1'
slider()
comboBox(items:['one','two','three'])
}
}
frame.show()

http://blogs.sun.com/geertjan/entry/how_cool_is_swing_in

Example of using swing with groovy and CSS - http://www.jroller.com/aalmiray/entry/css_swing_groovy_you_bet

(google search) (amazon search)


Wed Dec 05 16:28:42 GMT 2007 From /weblog/java/discussion

debugging


Cohen goes on to describe when and how to use each of these methods:

* Basic - breakpoints
* Primal - debug messages
* Hot Shot - dynamic proxy
* Brute Force - run-time profiler
* New Age - through aspects

A good overview - http://zvikico.typepad.com/problog/2007/11/five-ways-for-t.html

Follow up discussion - http://www.theserverside.com[..]_id=47708&asrc=EM_NLN_2697526&uid=703565

(google search) (amazon search)


Tue Oct 30 10:03:14 GMT 2007 From /weblog/java/features

jws


A nice introduction
http://www.cokeandcode.com/webstarthowto

In depth discussion
http://today.java.net/lpt/a/216
http://today.java.net/lpt/a/221

Some common problem: http://joust.kano.net[..]-never-deploy-with-java-web-start-again/

(google search) (amazon search)


Wed Sep 19 16:29:09 GMT 2007 From /weblog/java/libraries

jruby


Show how to use java class in jruby - http://blogs.sun.com/coolstuff/entry/using_java_classes_in_jruby

(google search) (amazon search)


Mon Sep 10 16:20:10 GMT 2007 From /weblog/java/fundamental

classpath


Two nice basic tutorial about classpath - http://www-128.ibm.com[..]rary/j-classpath-unix/index.html?ca=drs- http://www-128.ibm.com[..]y/j-classpath-windows/index.html?ca=drs-

(google search) (amazon search)


Mon Sep 10 16:19:46 GMT 2007 From /weblog/java/features

using Class.isAssignableFrom


If class A is subclass of B, then

B.isAssignableFrom(new A()) == true, and, new A().getClass() == B.class

However, when you object is generated using proxy tool like CGLIB

B.isAssignableFrom(new A()) == true, and, new A().getClass() != B.class

http://www.systemmobile.com/wp/?p=189

(google search) (amazon search)


Fri Aug 31 01:57:58 GMT 2007 From /weblog/java/network

problem of host lookup


Prevent java to resort "c:/" - http://rifers.org[..]05/12/22/flaky_file_urls_jdk_1_4_windows

DNS caching explain, in Java6, When a security manager is not set, the default behavior is to cache for 30 seconds. - http://www.rgagnon.com/javadetails/java-0445.html

(google search) (amazon search)


Sat Aug 04 18:40:37 GMT 2007 From /weblog/java/concurrency

JMM


An excellent presentation - http://www.javapolis.com/JP05Content/talks/day3/brian2/index.html and excellent site - http://www.cs.umd.edu/~pugh/java/memoryModel/index.html Locking optimization at Java 6 http://www-128.ibm.com[..]rary/j-jtp10185/index.html?ca=drs-tp4205

(google search) (amazon search)


Fri Aug 03 06:41:26 GMT 2007 From /weblog/java/features

attach-on-demand


Retrieving .class files from a running app - http://blogs.sun.com[..]ajan/entry/retrieving_class_files_from_a

Using Attach API - http://weblogs.java.net[..]nus/archive/2007/08/combining_casca.html

(google search) (amazon search)


Wed Aug 01 17:25:51 GMT 2007 From /weblog/java/concurrency

AbstractQueuedSynchronizer




Provides a framework for implementing blocking locks and related synchronizers (semaphores, events, etc) that rely on first-in-first-out (FIFO) wait queues. http://java.sun.com[..]nt/locks/AbstractQueuedSynchronizer.html

(google search) (amazon search)


Tue Jul 10 14:31:50 GMT 2007 From /weblog/java/libraries

IoC frameworks


beanUtil - A blog show how to create object according to the attributes specified from else where. Look like spring IOC already do similar thing... not sure how much better of using beanUtil - http://twasink.net/blog/archives/2005/07/text_files_test.html


A very detailed blog discuss the benefit of using google-guice - http://debasishg.blogspot.com[..]03/using-guice-as-di-framework-some.html

A comparison - http://bge-kernel-panic.blogspot.com[..]2007/06/lesser-known-ioc-containers.html

(google search) (amazon search)


Wed Jun 27 07:11:23 GMT 2007 From /weblog/java/libraries

ikvm


I just try ikvm today, both release and the build using OpenJDK, both can launch and run eclipse without any issue, performance is ok, but the distribution size is a lot less than Sun/IBM JRE, very amazing to me

http://www.infoq.com/news/2007/06/openjdk-hybrids

(google search) (amazon search)


Fri Jun 22 10:18:53 GMT 2007 From /weblog/java/libraries

jms


If you use MQ API MQMessage to send message :

mqMessage.writeString(arg1 : content);

At the receiving side, it will not be String but byte[]

(google search) (amazon search)


Fri Jun 22 10:10:12 GMT 2007 From /weblog/java/fundamental

array


You can ignore the last comma in arrays - http://hanuska.blogspot.com/2007/02/trailing-comma-in-arrays.html

When you try to case an Array to other Type, you will get funny exception like
Exception in thread "main" java.lang.ClassCastException: [B

Which, showing that if you call new byte[0].getClass() , you will get "[B".

(google search) (amazon search)


Wed Jun 13 17:03:20 GMT 2007 From /weblog/java/libraries

Windows platform specificed


DDE server caller - http://www.nevaobject.com[..]103&sid=494a2df12b48a1e8fdca8ae0e7bfb752

Java-COM Bridge - http://www.google.com/search?q=Java-COM%20Bridge

(google search) (amazon search)


Wed Jun 13 15:17:09 GMT 2007 From /weblog/java/network

Disassembling serializable object


Example of how to disassembling object get from RMI - http://weblogs.java.net[..]nus/archive/2007/06/disassembling_s.html

(google search) (amazon search)


Sun May 13 11:12:13 GMT 2007 From /weblog/java/hacks

quickstart


of various java server - http://www.learntechnology.net/content/main.jsp
of various java technology - http://www.javapassion.com/j2ee/index.html

(google search) (amazon search)


Sun May 13 10:07:57 GMT 2007 From /weblog/java/swing

on multithread gui


Nice comment about swing multithread handling

http://blogs.sun.com[..]page/swinger?entry=on_gui_multithreading

Tips of using swingworker at multi-thread environment - http://stuffthathappens.com[..]07/04/30/never-do-this-with-swingworker/

(google search) (amazon search)