public marks

PUBLIC MARKS from solrac with tag java

July 2009

Mastering Grails: Understanding plug-ins

Plug-ins are an exciting, vibrant part of the Grails ecosystem. Adding whole areas of new functionality to your applications couldn't be easier. You'll learn how Grails plug-ins do their magic, and you'll use a plug-in to implement powerful search capabilities in the Blogito application.

Best practices for using the Java Native Interface

JNI is an important tool to leverage existing code assets. This article identifies the top 10 JNI programming pitfalls, provides best practices for avoiding them, and introduces the tools available for implementing these practices.

Create a mobile application for Android using Scala and Eclipse

The Android operating system provides a powerful, open platform for mobile development. It leverages the power of the Java programming language and the Eclipse tools platform. Now you can add the Scala programming language to that mix. In this article, see how you can use Scala as the primary development language on Android.

June 2009

Interview with Dr. Erich Gamma - one of the fathers of Eclipse

Here's your chance to talk to Dr. Erich Gamma. Feel free to fire away on Eclipse, Java, JUnit, the Rational suite, the Jazz site, or about Dr Gamma's book called Design Patterns: Elements of Reusable Object-Oriented Software.

An Eclipse Galileo flyby

The Eclipse Galileo release of 33 major projects showcases diversity and innovation. The goal of this article is to take you through the Galileo release train and showcase some of the projects that are part of the release. It accomplished this by giving a tour of some Galileo projects, including quotes from project leaders along the way.

Translate Atom to RDF using Java technology

How can you translate an Atom document into a distinct document that follows the RDF specification? The answer: Java technology. Learn how Java with the StAX API make it easy to parse an Atom feed and translate it into an RDF document that you can then use to provide semantic-specific feeds.

Enter into the Groovy-style world of metaprogramming

The ability to add new methods to classes dynamically at run time — even Java classes, and even final Java classes — is incredibly powerful. Whether used for production code, unit tests, or anything in between, Groovy's metaprogramming capabilities should pique the curiosity of even the most jaded Java developer.

Speaking the language of the Web - Building Android apps with Java and XML tools

In this article, you will see different options for working with XML tools on Android and how to use them to build your own Android applications. Learn how to leverage XML parsers, SAX, and also how to Work the DOM.

Java Web services: Axis2 WS-Security encryption

Get an introduction to the principles of public key cryptography, then see how WS-Security applies them for signing and encrypting SOAP messages using public-private key pairs in combination with secret keys. Includes example code using Axis2 and Rampart.

Improve jQuery Performance metrics and tuning

jQuery is a great JavaScript library, but what about its performance? Is the trade-off between ease of use and a performance hit on the Web page worth it? Is there even a performance hit at all? This article answers your jQuery performance questions and offers some tips to improve its performance in your own applications.

Tapping into Android's sensors with Java and Eclipse

The Android platform is ideal, especially for Java developers, for creating innovative applications through the use of hardware sensors. Learn about some of the interfacing options available for Android applications, including using the sensor subsystem and recording audio snippets.

Grails file uploads and Atom syndication

Grails is a modern Web development framework that mixes familiar Java technologies like Spring and Hibernate. See how easy it is to implement a Grails file-upload capabilities for the body of a blog entry and put together a hand-rolled Atom feed for syndication.

Knee deep in the Twitter REST API

Twitter provides an API so Web developers can enable their users to access the various features that the Twitter site provides. In this article, learn the basics of using the Twitter REST API. Get started with a simple examples, then build your Twitter API skills. The ability to pull specific information from the Twitter Stream is endless.

Identify Real-time Java memory integrity

The new IBM Real Time Application Execution Optimizer for Java can identify memory requirements for the heap, for scopes, and for other memory areas in use and determine the persistent memory characteristics of allocated objects. It also verifies the integrity of real-time Java memory usage in your applications.

JSF 2 Templating and composite components

JavaServer Faces (JSF) 2 lets you implement user interfaces that are easy to modify and extend with two powerful features: templating and composite components. Learn how to use JSF 2 to implement UIs that are easy to maintain and extend through templating and composite components and how your Web applications can best take advantage of these features.

Enhancing the Scala Twitter library for Java Clients

Make it substantially easier to access Twitter than just opening an HTTP connection and doing the work by hand as well as making Twitter easily accessible to Java clients and Java developers. With this new Scala Scitter library you wont have too much to do to get started leveraging the Twitter API.

The possibilities of Servlet 3.0 and JavaEE 6

Explore the different implementations of developing with Comet. See how popular Java Web servers like Jetty and Tomcat have enabled Comet applications, and learn how to program with each server. And finally, learn about the standardization proposals for Comet in Java that are part of the upcoming Servlet 3.0 and JavaEE 6 specifications.

May 2009

The Client Orchestration strategy on Java

Sometimes an application's presentation layer must handle the coordination of multiple API layer method calls to complete a single transactional unit of work. In this article, Transaction strategies series author Mark Richards describes the Client Orchestration transaction strategy and explains how to implement it in the Java platform.

Methods to resolve namespaces with the Java API

Explore namespaces in XPath expressions with the Java language and its XML functions. Learn three ways to provide the prefix to namespace mapping using the NamespaceContext object. This article contains example code to make it easy to code your own NamespaceContext.

Effortless XML manipulation with Groovy slurping

To be a successful software developer in this day and age, you need a set of tools that makes dealing with XML effortless. Groovy introduces new and better ways to create and process XML. With the help of some examples, this article shows you how Groovy makes building and parsing XML refreshingly simple.

Standard Widget Toolkit trees

This article explains how to develop and implement trees in the Standard Widget Toolkit (SWT). Learn how an SWT tree is created and populated with data, how columns can be used to categorize data, how a tree can be extended to support row sorting, and how the tree's content can be searched.

Java failure postmortem diagnostics with Apache Kato

The artifacts produced when your Java application fails can help you analyse the root causes of the failure. This article shows how you can analyse problems with your Java code using the artifacts produced when your application unexpectedly terminates.

Now HeapAnalyzer automatically detects invalid heap dumps

HeapAnalyzer, a graphical tool for discovering Java heap leaks, has released Version 3.7 that automatically detects invalid heap dump formats and processing. See how HeapAnalyzer analyzes Java heap dumps by parsing the Java heap dump, creating directional graphs, transforming them into directional trees, and executing the heuristic search engine.

Scala and Twitter becomes Scitter

Learn how Scala's functional nature, which aligns well with Twitter's RESTful nature, and its extremely good XML processing features, makes it easy to build a Scala client library to use Twitter API to query its public timeline of tweets. This article shows you by example, how to use Scala to build the basic framework for a client library for accessing Twitter.

Step through Securing your Grails application

Grails provides all the basic building blocks you need to put together a secure Web application. Setting up an authentication infrastructure answers the question, "Who are you?" Get a hands-on lesson in enabling logins, limiting activity based on whether or not the User is logged in, and how to add in some authorization based on the User's role.