Archive for the ‘Java’ Category

developerWorks: CSP for Java Programmers

Friday, June 24th, 2005

The CSP for Java Programmers series on developerWorks teaches us how to work with Communicating Sequential Processes, a framework on top of Java's threading library that allow you to create parallel processes that share objects while avoiding deadlocks. Alas, binary only..

Java remote debugging options

Monday, June 20th, 2005

To activate socket debugging in java, add the following to java_opts:

-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n

Then connect to port 8787 using your favorite debugging tool..

Weblogic: Setting startup username and password

Monday, June 20th, 2005

To set username and password on weblogic, add the following to JAVA_OPTS:

-Dweblogic.management.username=system -Dweblogic.management.password=weblogic

(or whatever the new passwords are)..

Blueprint Solution: AJAX Autocomplete, RT Form validation and more

Sunday, April 17th, 2005

The Java Blueprint solutions catalog has added a section on AJAX, describing how autocomplete, real time form validation, progress bars and pseudo-push may work..

Tomcat 5.5: DB Datasource with context.xml

Tuesday, April 5th, 2005

Explains how to define a datasource connection for your web application using context.xml (more...)

Log4j configuration file

Tuesday, April 5th, 2005

A log4j configuration file sample. (more...)

Non-leaky query reads

Tuesday, April 5th, 2005

Doing a select statement without leaking connections.
(more...)

Obtaining a connection through JNDI

Tuesday, April 5th, 2005

How to obtain a connection through JNDI. (more...)

Java: Concurrent Programming with J2SE5.0

Wednesday, March 30th, 2005

This article provides an overview and introductory tutorial to the new concurrency mechanisms that have been added to J2SE 5.0..

Folding in Eclipse Text Editors

Wednesday, March 30th, 2005

In this article on the Eclipse website, Prashant Deva explains the new projection infrastructure introduced in the JFace Text framework and shows how to extend the XML Editor example provided with Eclipse to allow folding of text..