|
|
Miscellaneous
Java » Tips and Tutorials » Miscellaneous
A D V E R T I S E M E N T
Want free Oracle Magazine? Apply here now!
Double-checked locking and the Singleton patternExamine the roots of the double-checked locking idiom, why it was developed, and why it doesn't work. The Java programming language contains several useful programming idioms. It also contains some that further study has shown should not be used. Double-checked locking is one such idiom that should never be used.
Extending Ant to support interactive buildsAnt, from Jakarta project at the Apache Foundation, has become a de facto standard for building Java projects. You may already be using it to create automatic builds. It's easy enough to tailor those builds to your needs by customizing the build files; but what if you want to wait until run time to set certain properties? This article shows you how to extend Ant to produce builds that are interactive at run time; users can follow prompts to change parameters each time they conduct a build without having to deal with unfamiliar build files. You can incorporate this functionality into your builds to provide a smoother and more flexible experience for your end users. Basics of J2METhe Java 2 Platform, Micro Edition (J2ME) offers great tools for developers, porting the Java platform's network-centric and platform-agnostic worldview down to memory- and processor-limited devices. This article explains the basics of the J2ME world, showing you the building blocks of the platform and demonstrating a sample application. Diagnosing Java Code: Glass box extensibilityGlass box extensibility refers to the ways in which a software system may be extended when the source code is available for viewing, but not for modifying -- it lies as the happy medium between black box design (in which extensions are built without viewing the original code) and open box design (extensions are coded directly into the base code). Because the new extensions are based directly on the original code but don't alter it, the glass box design is probably the most effective, and safest, method of extending a software system. This article expands on the topic of glass box extensibility touched on last month in this column. After reading this article, you'll know when to use the glass box and will have some tips on how to implement it. JSci: An open-source alternative for Java 2D graphingJava 2D may be the most obvious solution for programming 2D graphs in Java programs, but it's not the only one. This article proposes an elegant alternative in the form of Java Objects for Science (JSci), an open-source package that lets you create 2D bar graphs, pie charts, and line graphs in Swing.
How Bridge2Java helps expand your Java code's horizonsOne of the strengths of the Java platform is its object-oriented nature; one of the benefits of object-oriented languages is that they aid code reuse. But what if you're a Java programmer and you want to reuse code that wasn't written in the Java language? With Bridge2Java, an IBM alphaWorks technology, Java developers can integrate COM objects into their applications. This article explains how it works. The Jxta command shellProject Jxta is a community-run attempt to build a utility application substrate for peer-to-peer applications. The initial reference implementation of Jxta includes a command-line shell that allows experimentation with the core Jxta platform without programming. This article takes us through a hands-on tour of the <a href="http://www-106.ibm.com/developerworks/java/library/j-p2pint2?open&l=766,t=grj,p=Jxta2">Jxta shell</a>. You'll explore its command set and extend its capability by writing your own custom commands using the Java programming language. Web services and J2EE connectors for B2B integrationWeb services and J2EE connectors promise to simplify the integration of heterogeneous enterprise information systems and provide a way for business partners to share their respective applications' functionality over the Internet. This article uses an insurance broker scenario, in which the programmatic functions from legacy transactions are incorporated into a Web application, to illustrate these capabilities. The Java 2 user interfaceGraphical and user interface capabilities have progressed in leaps and bounds since the early days of the Java language. The Java 2 platform contains a sophisticated cross-platform user interface architecture that consists of numerous high-level components, an advanced feature-rich device-independent graphics system, and a host of multimedia extensions. This article explores this progression, examines the capabilities of the current version 1.3 in detail, and looks to the future to see what release 1.4 will offer. An introduction to neural networksNeural nets may be the future of computing. A good way to understand them is with a puzzle that neural nets can be used to solve. Suppose that you are given 500 characters of code that you know to be C, C++, Java, or Python. Now, construct a program that identifies the code's language. One solution is to construct a neural net that learns to identify these languages. This article discusses the basic features of neural nets and approaches to constructing them so you can apply them in your own coding. Building management applications with Jiro and WBEMThis article shows you how to combine and leverage the best parts of Jiro technology and the Web-Based Enterprise Management (WBEM) initiative. Using familiar examples from the previous two articles of this column, this article introduces the WBEM client technologies for accessing and manipulating data in a CIMOM. It then shows you how to access the same data more elegantly and efficiently, by rearchitecting the Jiro management facade to act as the interface to the CIMOM. Finally, he talks about the need for greater standardization of Jiro management facades and discusses the future of management application programming under a combined Jiro and WBEM development platform. Quick Java programming with FESIIn the real world of everyday computing (and development), there are many situations where "whipping up a Java program" to perform a task is either impractical or too time consuming. This article takes you into the underground world of FESI (Free EcmaScript Interpreter), where deploying the Java language in a quick-and-dirty fashion is the norm rather than the exception. Article includes code snipets. User interface logic in use case modelingThis article leads you into the gray zone between modeling and method, with a look at requirements gathering via use case modeling. In particular, this article focuses on the relationship between user interfaces, system interfaces, and use case descriptions. Introduction to WBEM and the CIMThis is a continuation of the three-part series on building resource management applications. It takes a look at the Web-Based Enterprise Management (WBEM) initiative. WBEM serves to standardize the description and use of managed resources in enterprise networks. Follow along as the author describes the components that comprise WBEM, and practice using the technology with a simple filesystem example. Getting started with the FMA and JiroIf you're looking for a unique programming challenge, try your hand at building a management application for a distributed, cross-platform network. This article is the first in a three-part series that looks at how Sun Microsystems's Jiro technology and the Distributed Management Task Force's Web-Based Enterprise Management Initiative (WBEM) can simplify the creation of management applications for heterogeneous environments. Faster apps on a better machineIf you want to build and run faster Java applications on the IBM Developer Kit for Linux, version 1.3, roll up your sleeves and prepare to get dirty. This article provides hands-on instruction for profiling, monitoring, and performance tuning not only your IBM Developer Kit, but your hardware capacity, the Linux 2.2.x kernel, and your Java applications.
Diagnosing Java Code: The Liar View bug patternGUIs are generally designed with a model-view-controller architecture in which the view is decoupled from the model. The separation presents a challenge to automated testing because it's difficult to verify that a state change in the model is reflected appropriately in the view -- it spawns the infamous "Liar View." This installment of Diagnosing Java Code examines the Liar View bug pattern. Build your own Java-based supercomputerIf you've ever wanted to build your own supercomputer but have been held back by the demands of parallel programming in C, Pseudo Remote Threads is for you. This prize-winning Java programming model greatly simplifies parallel programming on clusters, bringing supercomputing out of the laboratory and into the hands of everyday Java programmers. Article includes code snipets. Creating a text adventure game in Java - docThis is a series of tutorials that show you how to create an object-orientated adventure gaming system.
|
A D V E R T I S E M E N T
|
Subscribe to SourceCodesWorld - Techies Talk |
| |
|