Filter by products, topics, and types of content

(0 Products)

(73 Topics)

(0 Industries)

(6 Types)

1 - 100 of 232 results | Next
Show Summaries | Hide Summaries
View Results
Title none Type none Date down
Sample code: Analyze text with the Watson Personality Insights service
This code shows you how to use the node.js API for the Watson Personality Insights service. Given some text, Watson analyzes the openness, conscientiousness, extraversion, agreeableness, emotional range, and needs of the speaker.
Also available in: Chinese   Japanese  
Articles 18 Aug 2017
Sample code: Identify the tone of written text with the Watson Tone Analyzer service
This code shows you how to use the node.js API for the Watson Tone Analyzer service. Given some text, Watson evaluates the tone, looking for qualities such as the speaker's levels of anger, disgust, joy, fear, and sadness.
Also available in: Chinese   Japanese  
Articles 18 Aug 2017
Sample code: Translate natural language with the Watson Language Translator service
This code shows you how to use the node.js API for the Watson Language Translator service. Given some text, a source language, and a target language, Watson translates that text and returns one or more translations to you.
Also available in: Chinese   Japanese  
Articles 18 Jul 2017
Sample code: Identify the context of natural language with the Watson Natural Language Classifier service
This code shows you how to use the Java API for the Watson natural language classification service. Given some text and a context, Watson analyzes the text and returns a list of categories relevant to that text.
Also available in: Chinese   Japanese  
Articles 18 Jul 2017
Sample code: Analyze text with the Watson Personality Insights service
This code shows you how to use the Java API for the Watson Personality Insights service. Given some text, Watson analyzes the openness, conscientiousness, extraversion, agreeableness, emotional range, and needs of the speaker.
Also available in: Chinese  
Articles 18 Jul 2017
5 things you didn't know about ...: Multithreaded Java programming
Multithreaded programming is never easy, but it does help to understand how the JVM processes subtly different code constructs. Steven Haines shares five tips that will help you make more informed decisions when working with synchronized methods, volatile variables, and atomic classes.
Also available in: Chinese   Russian   Japanese   Portuguese   Spanish  
Articles 17 May 2017
5 things you didn't know about ...: Java performance monitoring, Part 2
If it's news to you that the JDK ships with the full-featured profiler JConsole, you'll be even more surprised to learn about the five stand-alone profiling utilities introduced in this article. Find out how lightweight (and in some cases experimental) Java process monitoring and analysis tools can help you hone in on performance bottlenecks like thread starvation, deadlocks, and object leaks.
Also available in: Chinese   Russian   Japanese   Spanish  
Articles 17 May 2017
5 things you didn't know about ...: Java performance monitoring, Part 1
Blaming bad code (or bad code monkeys) won't help you find performance bottlenecks and improve the speed of your Java applications, and neither will guessing. Ted Neward directs your attention to tools for Java performance monitoring, starting with five tips for using Java's built-in profiler, JConsole, to collect and analyze performance data.
Also available in: Chinese   Russian   Japanese   Portuguese   Spanish  
Articles 17 May 2017
5 things you didn't know about ...: JARs
Many Java developers never think beyond the basics of JARs -- only using them to bundle classes before shipping them off to the production servers. But a JAR is more than just a renamed ZIP file. Learn how to use Java Archive files at their fullest capacity, including tips for jarring Spring dependencies and configuration files.
Also available in: Chinese   Russian   Japanese   Portuguese   Spanish  
Articles 17 May 2017
5 things you didn't know about ...: java.util.concurrent, Part 2
In addition to concurrency-friendly Collections, java.util.concurrent introduced other pre-built components that can assist you in regulating and executing threads in multithreaded applications. Ted Neward introduces five more of his Java programming must-haves from the java.util.concurrent package.
Also available in: Chinese   Russian   Japanese   Portuguese  
Articles 17 May 2017
5 things you didn't know about ...: java.util.concurrent, Part 1
Writing multithreaded code that both performs well and protects applications against corruption is just plain hard -- which is why we have java.util.concurrent. Ted Neward shows you how concurrent Collections classes like CopyOnWriteArrayList, BlockingQueue, and ConcurrentMap retrofit standard Collections classes for your concurrency programming needs.>
Also available in: Chinese   Russian   Japanese  
Articles 17 May 2017
5 things you didn't know about ...: The Java 6 Collections API, Part 1
The Java 6 Collections API is far more than a replacement for arrays, though that's not a bad place to start. Ted Neward dispenses five tips for doing more with Collections, including a primer on customizing and extending the Java Collections API.
Also available in: Chinese   Russian   Japanese   Spanish  
Articles 17 May 2017
5 things you didn't know about ...: Apache Maven
You might be familiar with profiles, but did you know that you can use them in Maven to execute specific behaviors in different environments? This installment in the 5 things series looks beyond Maven's build features, and even its basic tools for managing the project life cycle, delivering five tips that will improve the productivity and ease with which you manage applications in Maven.
Also available in: Chinese   Russian   Japanese   Spanish  
Articles 17 May 2017
Protect your apps from cross-site scripting (XSS) attacks
One of the most common techniques for cross-site scripting attacks is injecting code into a web page. This code snippet shows you how to use escape sequences so that any injected code can't run.
Also available in: Chinese  
Articles 14 Apr 2017
Blockchain chaincode for Java developers
Blockchain is changing the way business transactions are done on the Internet. In this tutorial, you'll install a blockchain network and run a chaincode smart contract written in the Java language.
Also available in: Chinese   Japanese  
Tutorial 30 Mar 2017
Intro to Java programming
Learn the structure, syntax, and programming paradigm of the Java platform and language. Start by mastering the essentials of object-oriented programming on the Java platform, and progress incrementally to the more-sophisticated syntax and libraries that you need in order to develop complex, real-world Java applications.
Also available in: Chinese  
Tutorial 14 Sep 2016
Achieve your API strategy with IBM API Connect
To deliver on your API strategy, you need to understand your key stakeholders, their needs, and how API Connect can help to meet those needs. In this article you learn about these essential elements of an API strategy. You see how IBM API Connect goes beyond the limits of an API management platform, allowing your organization to not only manage and secure its APIs, but to also create and run them. Finally, you see how quickly you can get started with API Connect.
Articles 06 Jun 2016
Playful web development, Part 1: Manage user authentication with the Play Framework and Scala
Implement user management for your Play Framework applications and put your Scala skills to work. Pablo Pedemonte takes you through building a basic Play application that handles authentication and authorization. You can even use the application code as a starter for your own Play projects to shorten user-management development time.
Also available in: Chinese   Japanese   Portuguese  
Articles 12 Nov 2015
Full-stack Java web dev with Vaadin
Java web developers are often forced to learn JavaScript, CSS, and HTML5 (cornerstone of all modern browsers) in order to create compelling interactive user experiences for their web applications. Vaadin open source framework empowers Java developers by giving them full-stack control within a 100% Java world.
Also available in: Chinese   Japanese  
Articles 30 Sep 2015
JVM concurrency: Building actor applications with Akka
Actor applications require a different style of programming from the linear approach that is used for single-threaded applications. Go deeper into structuring systems in terms of actors and messages from Scala code, using the Akka toolkit and runtime.
Also available in: Chinese   Russian   Japanese  
Articles 12 Aug 2015
Introduction to Java multitenancy
The multitenant JVM recently became available as part of the IBM SDK Java Technology Edition, Version 7 Release 1 as a tech preview. By running multiple applications within a single multitenant JVM, a cloud system can speed applications' start times and reduce their memory footprint. This article introduces the technology behind multitenant cloud JVM and discusses the main costs and benefits.
Also available in: Chinese   Japanese   Portuguese   Spanish  
Articles 06 Aug 2015
Bluemix demo at the Cloud World Forum 2015
Ed Shee, Cloud Software Specialist for IBM Bluemix, walks through a quick 3-minute demo on creating an application in the cloud with IBM Bluemix utilizing Watson Personality Insights. He shows how easy it is to provision a boilerplate -- a runtime, a service, and some starter code all bundled together.
Videos 04 Aug 2015
JVM concurrency: Acting asynchronously with Akka
The actor model, a long-established approach to concurrent programming, gives you an easy way to build applications for high concurrency and scalability. Learn about the actor model and start working in Scala or Java with the Akka implementation of the model.
Also available in: Chinese   Russian   Japanese   Portuguese  
Articles 08 Apr 2015
OAuth 2.0 clients in Java programming, Part 3: Authorization code grant
This multi-part series will help you develop a generic and reusable OAuth 2.0 client that can be used to interface with any OAuth 2.0-compliant server. Part 1 explained how to implement the resource owner password credentials grant. Part 2 described how to implement the client credentials grant. Now, Part 3 teaches you how to implement the authorization code grant.
Also available in: Chinese   Russian   Japanese   Portuguese  
Tutorial 04 Nov 2014
OAuth 2.0 clients in Java programming, Part 2: Client credentials grant
This multi-part series will help you develop a generic and reusable OAuth 2.0 client that can be used to interface with any OAuth 2.0-compliant server. Part 1 explained how to implement the resource owner password credentials grant. Now, Part 2 describes how to implement the client credentials grant.
Also available in: Chinese   Russian   Japanese   Portuguese  
Tutorial 28 Oct 2014
Build a Hangman game with Java, Ajax, and Cloudant
Learn how to build an online Hangman game by using the Bluemix Liberty for Java runtime and Cloudant NoSQL database service.
Also available in: Chinese   Russian   Japanese   Portuguese  
Tutorial 04 Sep 2014
JVM concurrency: Asynchronous event handling in Scala
Scala Future and Promise classes give you powerful ways to handle asynchronous processing, including nonblocking ways to organize and sequence events. The async / await constructs, implemented as a macro, make it even easier to write nonblocking event handling in Scala. This tutorial shows you the basic Future and Promise techniques in action, then demonstrates how async / await can convert what looks like simple blocking code to nonblocking execution.
Also available in: Chinese   Russian   Japanese  
Articles 02 Sep 2014
JVM concurrency: To block, or not to block?
The CompletableFuture class added in Java 8 gives you new ways to handle the completion of asynchronous processing, including nonblocking ways to compose and combine events. This article helps you understand the differences between blocking and nonblocking approaches to handling completions and gives you some reasons to prefer nonblocking approaches.
Also available in: Chinese   Russian   Japanese  
Articles 22 Jul 2014
JVM concurrency: Java 8 concurrency basics
Java 8 incorporates new language features and added classes that give you easier ways to construct programs, including concurrent programs. Learn about new, powerful parallel-processing support in the language made possible by Java 8 extensions, including CompletableFuture and streams. You'll recognize similarities between these new features and some of the Scala capabilities that you explored in the first article of this series.
Also available in: Chinese   Russian   Japanese  
Articles 08 Apr 2014
Java 8 language changes
Java 8 incorporates important new language features that give you easier ways to construct programs. Lamba expressions define a new syntax for inline code blocks that gives you the same flexibility as anonymous inner classes, with much less boilerplate. Interface changes make it possible to add to existing interfaces without breaking compatibility with existing code. Learn how these changes work together.
Also available in: Chinese   Russian   Japanese  
Articles 08 Apr 2014
Eliminate banner grabbing in Apache Tomcat
Banner grabbing is often the first step before a full-blown cyber attack, but it's easy to prevent. Learn how to secure your Apache Tomcat installation against version-based exploits by overriding the default parameters in your Server.xml and ServerInfo.properties files.
Also available in: Russian   Japanese  
Articles 02 Dec 2013
Build server-cluster-aware Java applications
Server clustering has become commonplace for highly scalable Java enterprise application development, but application-level server-cluster awareness is not currently part of Java EE. In this article, Mukul Gupta and Paresh Paladiya show you how to leverage two open source projects, Apache ZooKeeper and LinkedIn's Project Norbert, for server-group coordination in distributed enterprise Java applications.
Also available in: Chinese   Japanese   Spanish  
Articles 27 Aug 2013
Develop Spring Redis applications
Redis is a key-value NoSQL datastore solution. Spring Data Redis is a Spring portfolio project that helps Java developers build Spring applications with Redis, without needing to work directly with the low-level Redis API. This article introduces Redis and then shows how to build a simple dictionary application by using the Spring Data Redis API.
Also available in: Chinese   Japanese  
Articles 21 Aug 2013
Prevent cross-site scripting attacks by encoding HTML responses
Uncover the basics of cross-site scripting attacks and learn how you can prevent them using a Java-based approach to encode HTML output from a server.
Also available in: Portuguese  
Articles 30 Jul 2013
Faster problem solving in Java with heuristic search
Learn about the field of heuristic search and its application to artificial intelligence. This article's authors show how they arrived at a successful Java implementation of the most widely used heuristic search algorithm. Their solution exploits an alternative framework to Java Collections and uses best practices for avoiding excessive garbage collection.
Also available in: Chinese   Russian   Japanese  
Articles 16 Jul 2013
Java.next: Common ground in Groovy, Scala, and Clojure, Part 1
The Java.next languages (Groovy, Scala, and Clojure) have more commonalities than differences, converging toward common ground in many of their features and conveniences. This installment explores how they each address a longstanding deficiency in the Java language -- the inability to overload operators. It also discusses the related concepts of associativity and precedence.
Also available in: Chinese   Japanese  
Articles 14 May 2013
HTML5 2D game development: Collision detection and sprite animations
In this series, HTML5 maven David Geary shows you how to implement an HTML5 2D video game one step at a time. In this installment, learn how Snail Bait implements collision detection and explosions.
Also available in: Chinese   Russian   Japanese  
Articles 16 Apr 2013
Look-ahead Java deserialization
When Java serialization is used to exchange information between a client and a server, attackers can try to replace the legitimate serialized stream with malicious data. This article explains the nature of this threat and describes a simple way to protect against it. Find out how to stop the deserialization process as soon as an unexpected Java class is found in the stream.
Also available in: Russian  
Articles 15 Jan 2013
HTML5 2D game development: Implementing Sprite behaviors
In this series, HTML5 maven David Geary shows you how to implement an HTML5 2D video game one step at a time. In this installment, you'll learn how to implement the essence of any video game: sprite behaviors.
Also available in: Chinese   Japanese   Spanish  
Articles 08 Jan 2013
IBM@JavaOne 2012, Part 2: Roundup of the IBM sessions
IBM was active throughout JavaOne 2012, leading numerous technical talks and birds-of-a-feather (BOF) sessions, participating in panels, and delivering an opening-day keynote. This article summarizes IBM's contributions to the conference. Get synopses of the IBM sessions you might have missed, and view the video or presentation slides for many of them.
Also available in: Chinese  
Articles 18 Dec 2012
Generate PDF files from Java applications dynamically
If your application needs to generate PDF documents dynamically, you need the iText library. The open source iText library makes PDF creation a snap. This article introduces iText and gives a step-by-step guide to using it to generate PDF documents from Java technology applications. We create a sample application to better understand iText.
Also available in: Russian   Japanese   Portuguese  
Articles 12 Dec 2012
HTML5 2D game development: Sprites
In this series, HTML5 maven David Geary shows you how to implement an HTML5 2D video game one step at a time. Sprites -- graphical objects that you can assign behaviors to -- are one of the most fundamental and important aspects of video games. In this installment, you'll learn how to implement the sprites that make up Snail Bait's cast of characters.
Also available in: Chinese   Japanese  
Articles 04 Dec 2012
Java development 2.0: Scalable searching with ElasticSearch
Like the word google, search technology has evolved tremendously over the past 10 years. Learn how one of the newer cloud-friendly search platforms brings simple, scalable search to your Java enterprise applications.
Also available in: Chinese   Japanese  
Articles 27 Nov 2012
The Direct Project: Sending health information over the cloud
Promoting interoperable and meaningful use of electronic health record (EHR) systems is one of the major goals of the federal government's healthcare reform, and the Direct Project is one of its most promising initiatives. Get started with this peer-to-peer protocol for sending sensitive patient information over the cloud, then find out how to use Direct Sender, an open source, Java-based client, to send secure email in health IT systems.
Also available in: Chinese   Japanese  
Articles 06 Nov 2012
HTML5 2D game development: Setting the stage
In this series, HTML5 maven David Geary shows you how to implement an HTML5 2D video game one step at a time. In this installment, you'll learn how to encapsulate game code in an object, how to implement pause and unpause, and how to use CSS3 transitions to implement a game-restart countdown.
Also available in: Chinese   Japanese  
Articles 30 Oct 2012
HTML5 2D game development: Graphics and animation
In this series, HTML5 maven David Geary shows you how to implement an HTML5 2D video game one step at a time. This installment covers Canvas graphics and HTML5 animation. You'll see how to draw the game's graphics and how to set them in motion. You will also learn the best way to animate with HTML5, how to scroll the background, and how to implement parallax to simulate three dimensions.
Also available in: Chinese   Japanese   Portuguese  
Articles 02 Oct 2012
HTML5 2D game development: Introducing Snail Bait
In this series, HTML5 maven David Geary shows you how to implement an HTML5 2D video game one step at a time. This initial installment shows you the finished game and then gets you started implementing it from scratch. If you've ever wanted to create an HTML5 game but didn't have time to master all the details, this is the series for you.
Also available in: Chinese   Japanese   Portuguese  
Articles 28 Aug 2012
Use Drools and JPA for continuous, real-time data profiling
Use what you know about JPA and Drools 5 and learn even more while implementing a continuous, real-time data profiling application.
Also available in: Chinese   Russian   Japanese   Portuguese  
Articles 05 Jul 2012
Functional thinking: Functional error handling with Either and Option
Java developers are accustomed to handling errors by throwing and catching exceptions, which doesn't match the functional paradigm. This Functional thinking installment investigates ways to indicate Java errors functionally while still preserving type safety, shows how to wrap checked exceptions with functional returns, and introduces a handy abstraction named Either.
Also available in: Chinese   Russian   Japanese  
Articles 12 Jun 2012
Functional thinking: Functional design patterns, Part 1
Contrary to popular belief, design patterns exist in functional programming -- but they sometimes differ from their object-oriented counterparts in appearance and behavior. In this installment of Functional thinking, Neal Ford looks at ways in which patterns manifest in the functional paradigm, illustrating how the solutions differ.
Also available in: Chinese   Russian   Japanese  
Articles 06 Mar 2012
From Java code to Java heap
This article gives you insight into the memory usage of Java code, covering the memory overhead of putting an int value into an Integer object, the cost of object delegation, and the memory efficiency of the different collection types. You'll learn how to determine where inefficiencies occur in your application and how to choose the right collections to improve your code.
Also available in: Chinese   Russian   Japanese  
Articles 29 Feb 2012
Functional thinking: Functional features in Groovy, Part 3
Modern dynamic languages have incorporated many functional features to take mundane tasks off developers' hands. This article explores the benefits of caching at the function level with Groovy, contrasting it with an imperative approach. It illustrates two types of caching -- intramethod and external -- and discusses the advantages and disadvantages of the imperative and functional versions.
Also available in: Chinese   Japanese  
Articles 31 Jan 2012
Node.js for Java developers
Node.js presents an exciting alternative to traditional Java concurrency, and all you need to get started is an open mind and a little bit of JavaScript.
Also available in: Chinese   Japanese  
Articles 29 Nov 2011
Tree visitors in Clojure
The Visitor pattern is commonly used to traverse and manipulate tree data in Java and other object-oriented programs. Now let's see what happens when Alex Miller rewrites the pattern using Clojure's functional zippers.
Also available in: Chinese   Japanese  
Articles 20 Sep 2011
TWOdW Aug 31, 2011: Author, speaker, developer Andy Glover
This week on developerWorks, John Swanson is back with his Hurricane Irene survival story and notes on this week's feature article, Generate dynamic mobile web interfaces with the Dojo Toolkit. Then author, speaker, entrepreneur Andy Glover joins to talk about his latest adventures, his Java technical series on dW, Heroku, Ruboto, and more.
Videos 31 Aug 2011
Functional thinking: Thinking functionally, Part 1
Functional programming has generated a recent surge of interest with claims of fewer bugs and greater productivity. But many developers have tried and failed to understand what makes functional languages compelling for some types of jobs. Learning the syntax of a new language is easy, but learning to think in a different way is hard. In the first installment of his Functional thinking column series, Neal Ford introduces some functional programming concepts and discusses how to use them in both Java and Groovy.
Also available in: Chinese   Russian   Japanese   Portuguese   Spanish  
Articles 03 May 2011
Java web services: Modeling and verifying WS-SecurityPolicy
WS-SecurityPolicy lets you define security configurations as part of your Web Service Description Language (WSDL) service description. It's a powerful tool, but working with WS-SecurityPolicy documents can be painful. Assertions must be correctly structured to be effective, and version namespaces need to be consistent. In this article, you'll learn about common errors made in creating WS-SecurityPolicy documents, and you'll see how WS-Policy and WS-SecurityPolicy can be modeled in Java for verification and transformation.
Also available in: Chinese   Japanese  
Articles 19 Apr 2011
Debugging from dumps
Memory Analyzer is a powerful tool for diagnosing memory leaks and footprint problems from the dump of a Java process. It can also give you detailed insight into your Java code and enable you to debug some tricky problems from just one dump, without needing to insert diagnostic code. In this article, you'll learn how to generate dumps and use them to examine the state of your application.
Also available in: Chinese   Russian   Japanese   Spanish  
Articles 15 Mar 2011
Custom AST transformations with Project Lombok
Alex Ruiz introduces Project Lombok in this article, discussing some of the programming sugar that makes it unique, including annotation-driven code generation and clean, compact, and readable code. He then draws your attention to one of the more rewarding uses of Lombok: extending it with custom AST (Abstract Syntax Tree) transformations. Extending Lombok will enable you to generate your own project- or domain-specific boilerplate code, but it does require a fair amount of work. Alex concludes with his tips for easing through key stages of the process, along with a freely usable custom extension for JavaBeans.
Also available in: Chinese   Japanese  
Articles 01 Mar 2011
Java web services: Understanding and modeling WSDL 1.1
Several years after the approval of Web Services Description Language (WSDL) 2.0 as a World Wide Web Consortium (W3C) standard, WSDL 1.1 is still the most widely used form of web service description. Despite its popularity, WSDL 1.1 has some issues, including a variety of schemas in use and variations in how web services stacks process WSDL documents. In this article you'll learn how WSDL 1.1 service descriptions are structured. You'll also see the basic structure of a Java tool for verifying WSDL documents and transforming them into a "best practices" form.
Also available in: Chinese   Russian   Japanese   Portuguese  
Articles 08 Feb 2011
Managing pureQuery-enabled applications efficiently, Part 1: Set up an SQL management repository using an Ant script
IBM Optim Development Studio and the pureQuery Runtime include a command-line utility called ManageRepository that can be used to create, modify, export, import, and delete pureQuery metadata that is stored in the SQL management repository. Setting up an SQL management repository can be challenging using the ManageRepository utility command script. This tutorial shows you how to create and manage an SQL repository using an Ant script. You will also learn how to run the Ant script from within IBM Optim Development Studio.
Also available in: Portuguese  
Tutorial 27 Jan 2011
Domain-model persistence with Morphia and MongoDB
Morphia is a type-safe, object-mapping library for MongoDB, an open source document-oriented database. This article explains the benefits of mapping documents to and from objects and shows how to use Morphia for this purpose. Then it demonstrates how to persist, load, delete, and query a Java domain model mapped to MongoDB.
Also available in: Chinese   Japanese  
Articles 25 Jan 2011
JSF 2 fu: Best practices for composite components
In this installment of JSF 2 fu, you'll learn five best practices for implementing JavaServer Faces composite components. By following these guidelines, you'll make it easy for page authors to extend your custom components.
Also available in: Chinese   Japanese   Portuguese  
Articles 11 Jan 2011
Solving the Expression Problem with Clojure 1.2
Clojure expert Stuart Sierra introduces you to new features in Clojure 1.2 that solve the Expression Problem, a classic programming dilemma. Protocols let you extend preexisting types to new methods, and datatypes let you extend preexisting methods to new types -- all without changing the existing code. You'll also see how Java interfaces and classes can interact with Clojure protocols and datatypes.
Also available in: Chinese  
Articles 14 Dec 2010
Java web services: The state of web service security
WS-Security and related standards provide a wide range of options for web service security. Of this wide range, web services stacks test only a limited number of security configurations, and even fewer configurations for interoperability, on their own. Find out what the industry has done to promote interoperability among web services stacks, and read a summary comparison of how the three main open source Java stacks handle security.
Also available in: Chinese   Japanese  
Articles 07 Dec 2010
JSF 2 fu: HTML5 composite components, Part 2
In this JSF 2 fu installment, series author David Geary continues to demonstrate the power of combining JavaServer Faces (JSF) 2 technology with HTML5. This time you'll see how to implement JSF composite components that encapsulate HTML5 drag and drop.
Also available in: Chinese   Japanese  
Articles 23 Nov 2010
Java web services: Understanding WS-Policy
WS-Policy provides a general structure for configuring features and options that apply to a web service. You've seen it used for WS-Security configurations in this series, and perhaps elsewhere for other extension technologies such as WS-ReliableMessaging. In this article, you'll learn about the structure of WS-Policy documents and the ways you can attach policies to services in Web Service Description Language (WSDL), with security-configuration examples tried on Apache Axis2, Metro, and Apache CXF.
Also available in: Chinese   Russian   Japanese   Portuguese  
Articles 02 Nov 2010
JSF 2 fu: HTML5 composite components, Part 1
HTML5 gives browser-based applications rich features rivaling those of desktop software. In this JSF 2 fu installment, you'll see how you can get the best of the Java and HTML5 worlds by implementing an HTML5 composite component with JavaServer Faces (JSF) 2.
Also available in: Chinese   Japanese   Portuguese  
Articles 12 Oct 2010
REST application programming
Tired of waiting on the GUI to access your energy data? Want to access your data quickly, even at remote locations? With some basic Java programming skills, and investment of your time, you can take advantage the powerful capabilities of the Active Energy Manager REST APIs. This article starts with a basic understanding of REST and RESTful programming and concludes with the development of a AEM REST program for accessing and reporting power usage metrics.
Also available in: Chinese  
Articles 21 Sep 2010
An NIO.2 primer, Part 1: The asynchronous channel APIs
The More New I/O APIs for the Java Platform (NIO.2) is one of the major new functional areas in Java 7, adding asynchronous channel functionality and a new file system API to the language. Developers will gain support for platform-independent file operations, asynchronous operations, and multicast socket channels. Part 1 of this two-part article focuses on the asynchronous channel APIs in NIO.2, and Part 2 covers the new file system functionality.
Also available in: Chinese   Japanese  
Articles 21 Sep 2010
Unicode surrogate programming with the Java language
Since version 1.5, the Java language has provided APIs supporting Unicode supplementary characters that can't be represented by a single 16-bit char data type. This article discusses the features of these APIs, shows their correct usage, and evaluates their processing performance.
Also available in: Chinese   Japanese  
Articles 24 Aug 2010
Java web services: WS-Security without client certificates
WS-Security symmetric encryption lets you secure message exchanges between client and server without requiring client certificates, simplifying your web service configuration while also providing performance benefits. You can use it directly or in the bootstrap for WS-SecureConversation exchanges. In this article, you'll learn how to configure and use symmetric encryption with the three main open source Java web services stacks: Axis2, Metro, and CXF. You'll also see how plain WS-Security symmetric encryption performance compares to WS-SecureConversation performance.
Also available in: Chinese   Japanese   Spanish  
Articles 03 Aug 2010
혁신적인 아키텍처와 창발적 설계: 유연한 인터페이스
혁신적인 아키텍처와 창발적 설계 시리즈의 이번 기사에서는 창발적 설계의 관용적 패턴 기술을 획득하는 과정을 계속해서 살펴봅니다. 재사용 가능한 패턴을 식별할 때는 이 패턴을 나머지 코드와 구별되는 방식으로 캡처해야 합니다. DSL(Domain Specific Language)에는 데이터와 기능을 간결하게 캡처할 수 있는 많은 기능이 있습니다. 이번 달에는 Neal Ford가 관용적인 도메인 패턴을 캡처하는 내부 DSL을 빌드하는 세 가지 방법을 설명합니다.
Articles 13 Jul 2010
JSF 2 fu: JSF wizards
In this JSF 2 fu installment, you'll find out how to combine JSF 2 with Contexts and Dependency Injection (CDI) to implement an Ajaxified wizard. You'll see JSF's templating and Ajax in action, and you'll learn how to use CDI's dependency injection and conversation scope.
Also available in: Chinese   Japanese   Portuguese  
Articles 06 Jul 2010
JSF 2 fu: After-the-fact Ajax composite components
JavaServer Faces (JSF) 2 Expert Group member David Geary continues his article series offering in-depth coverage of JSF 2 technology. In this installment, you'll learn how to let page authors add Ajax to your composite components, taking a close look at a powerful -- but entirely undocumented -- JSF 2.0 tag. And you'll see how to implement a reusable, general-purpose, Ajax-capable icon component in fewer than 25 lines of XML.
Also available in: Chinese   Japanese  
Articles 01 Jun 2010
Java web services: WS-Trust and WS-SecureConversation
WS-Security adds enterprise-level security features to SOAP message exchanges, but with a substantial performance cost. WS-Trust builds on WS-Security to provide a way of exchanging security tokens, and WS-SecureConversation builds on WS-Security and WS-Trust to improve performance for ongoing message exchanges. Dennis Sosnoski continues his Java web services column series with an introduction to WS-Trust and WS-SecureConversation.
Also available in: Chinese   Japanese  
Articles 25 May 2010
Java web services: CXF performance comparison
Apache CXF shares certain underlying components with both Apache Axis2 and Metro but combines the components within an entirely different architecture. Dennis Sosnoski continues his Java web services column series by comparing how the CXF, Metro, and Axis2 stacks perform both with and without WS-Security.
Also available in: Chinese   Japanese   Portuguese  
Articles 27 Apr 2010
JSF 2 fu: Ajax components
JavaServer Faces (JSF) 2 Expert Group member David Geary begins a new article series offering in-depth coverage of JSF 2 technology. In this installment, you'll learn how to integrate JSF 2's composite components with the framework's support for Ajax development.
Also available in: Chinese   Portuguese  
Articles 27 Apr 2010
Java web services: WS-Security with CXF
The Apache CXF web services stack supports WS-Security, including using WS-SecurityPolicy to configure the security handling. CXF is flexible in how you configure the deployment parameters used at run time to implement the security handling, supporting both static and dynamic configuration options for the client side. In this article, Java web services series author Dennis Sosnoski shows how to use CXF for both a simple UsernameToken WS-Security example and one using signing and encryption.
Also available in: Chinese   Russian   Japanese  
Articles 23 Mar 2010
The Java XML Validation API
Validation reports whether a document adheres to the rules specified by the schema. Different parsers and tools support different schema languages such as DTDs, the W3C XML Schema Language, RELAX NG, and Schematron. Java 5(TM) adds a uniform validation Application Programming Interface (API) that can compare documents to schemas written in these and other languages. Learn about this XML validation API.
Also available in: Chinese   Russian   Japanese  
Articles 10 Feb 2010
Java web services: Introducing CXF
The Apache CXF web services stack supports JAXB 2.x data binding (along with some alternative data bindings) and JAX-WS 2.x service configuration. Like the Metro JAXB/JAX-WS alternative discussed in earlier columns, CXF uses XML files to extend the JAX-WS configuration information. In this article, Java web services series author Dennis Sosnoski looks into the basics of working with CXF for client and server development.
Also available in: Chinese   Russian   Japanese   Portuguese   Spanish  
Articles 09 Feb 2010
Java Web services: Metro vs. Axis2 performance
The Metro Web services stack provides the same functionality as the Axis2 stack but, aside from the optional use of JAXB and JAX-WS in Axis2, uses completely different implementations of the technologies involved. In this article, Dennis Sosnoski continues his Java Web services column series with a performance comparison between the Metro and Axis2 stacks, both with and without WS-Security.
Also available in: Chinese   Japanese   Portuguese  
Articles 19 Jan 2010
Speaking the Java language without an accent
Elliotte Rusty Harold explores the native idioms, dialects, and accents of the Java language and community. By following this article's guidance, C/C++ and other nonnative programmers can blend right in with native Java speakers.
Also available in: Chinese   Russian   Japanese  
Articles 12 Jan 2010
Java Web services: WS-Security with Metro
The Metro Web services stack is based on the reference implementations of the JAXB 2.x and JAX-WS 2.x Java standards but also includes support for a full range of WS-* SOAP extension technologies. This article continues Dennis Sosnoski's Java Web services column series with coverage of WS-Security configuration and usage in Metro.
Also available in: Chinese   Japanese   Portuguese  
Articles 01 Dec 2009
Using Simple for XML serialization
Java developers have a variety of choices when it comes to serializing and deserializing Extensible Markup Language (XML) objects. Simple is one such example, and it offers a number of advantages over its competitors. In this article, explore an introductory overview of how to use Simple within an XML communication system.
Also available in: Chinese   Japanese   Portuguese  
Articles 24 Nov 2009
Dynamic, typesafe queries in JPA 2.0
A query for persistent Java objects is typesafe if a compiler can verify it for syntactic correctness. Version 2.0 of the Java Persistence API (JPA) introduces the Criteria API, which brings the power of typesafe queries to Java applications for the first time and provides a mechanism for constructing queries dynamically at run time. This article describes how to write dynamic, typesafe queries using the Criteria API and the closely associated Metamodel API.
Also available in: Chinese   Russian   Portuguese  
Articles 22 Sep 2009
Create stand-alone Web services applications with Eclipse and Java SE 6, Part 2: The web service client application
Use the Eclipse Integrated Development Environment (IDE) and Java Platform, Standard Edition (Java SE) 6 to create a stand-alone Web services application that can be run from the console. In this tutorial, the second in the series, continue getting familiar with the Eclipse IDE and its built-in feature the TCP/IP Monitor. View the network traffic between server and client applications and then run the applications from the command line.
Also available in: Chinese  
Tutorial 18 Sep 2009
Java Web services: JAXB and JAX-WS in Axis2
Apache Axis2 supports a range of data-binding technologies, including the official Java standard, JAXB 2.x. Axis2 also supports the Java standard for Web service configuration, JAX-WS 2.x, as an alternative to its own custom configuration technique. Dennis Sosnoski continues his Java Web services column series by demonstrating how you can use each of these Java standards with Axis2 and discussing some of the limitations of Axis2's current support for them.
Also available in: Chinese   Russian   Portuguese  
Articles 15 Sep 2009
Introducing Apache Mahout
Once the exclusive domain of academics and corporations with large research budgets, intelligent applications that learn from data and user input are becoming more common. The need for machine-learning techniques like clustering, collaborative filtering, and categorization has never been greater, be it for finding commonalities among large groups of people or automatically tagging large volumes of Web content. The Apache Mahout project aims to make building intelligent applications easier and faster. Mahout co-founder Grant Ingersoll introduces the basic concepts of machine learning and then demonstrates how to use Mahout to cluster documents, make recommendations, and organize content.
Also available in: Chinese   Japanese   Portuguese  
Articles 08 Sep 2009
Implementing composite keys with JPA and Hibernate
Nowadays, with the widespread use and deployment of Object-Relational Mapping (ORM) tools, you don't generally have to think too hard about such arcane issues as composite keys. Normally, the choice of key design can be a simple integer, and this can be left with confidence to the tooling. Occasionally, you come across a situation where a composite key is required, and you need a strategy for this. This tip shows you how to implement composite keys with JPA and Hibernate.
Also available in: Russian  
Articles 25 Aug 2009
Using Apache Lucene to search text
In this article, learn about Apache Lucene, the high-performance, full-featured text search-engine library. Explore the Lucene architecture and its core APIs. Learn to use Lucene for cross-platform full-text searching, indexing, displaying results, and extending a search.
Also available in: Japanese   Portuguese  
Articles 18 Aug 2009
Java Web services: Granular use of WS-Security
WS-Security for SOAP Web services doesn't have to be an all-or-nothing proposition. By configuring WS-Security at the operation or message level, you can apply an appropriate degree of protection to every exchange, reducing or eliminating the WS-Security overhead for operations that don't need full protection. Dennis Sosnoski continues his Java Web services series with a look at granular WS-Security in Web Services Description Language (WSDL) using Apache Axis2 and Rampart.
Also available in: Chinese   Russian   Spanish  
Articles 04 Aug 2009
Transaction strategies: The High Performance strategy
In this final installment, Transaction strategies series author Mark Richards describes how to implement a transaction strategy in the Java platform for high-performance applications. Your application can maintain fast processing times while still supporting some degree of data integrity and consistency -- but you need to be aware of the trade-offs involved.
Also available in: Chinese   Japanese   Portuguese  
Articles 22 Jul 2009
JSF 2 fu, Part 3: Event handling, JavaScript, and Ajax
JavaServer Faces (JSF) 2 Expert Group member David Geary wraps up his three-part series on JSF 2's new features. Find out how to use the framework's new event model and built-in support for Ajax to make your reusable components all the more powerful.
Also available in: Chinese   Russian   Japanese   Portuguese  
Articles 14 Jul 2009
Best practices for using the Java Native Interface
The Java Native Interface (JNI) is a standard Java API that enables Java code to integrate with code written in other programming languages. JNI can be a key element in your toolkit if you want to leverage existing code assets -- for example, in a service-oriented architecture (SOA) or a cloud-based system. But when used without due care, JNI can quickly lead to poorly performing and unstable applications. This article identifies the top 10 JNI programming pitfalls, provides best practices for avoiding them, and introduces the tools available for implementing these practices.
Also available in: Chinese   Japanese  
Articles 07 Jul 2009
Java web services: The high cost of (WS-)Security
WS-Security offers powerful features for securing web service applications, and for many applications these features are essential. But these features come at a high cost in terms of performance and message overhead. Dennis Sosnoski continues his Java web services column series with a look at how using WS-Security or WS-SecureConversation affects Axis2 performance, and he discusses when the simpler (and better performing) alternative of HTTPS-secured connections is a more appropriate choice.
Also available in: Chinese   Japanese   Spanish  
Articles 07 Jul 2009
Java Web services: Axis2 WS-Security signing and 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. Dennis Sosnoski continues his Java Web services series with a discussion of WS-Security and WS-SecurityPolicy signing and encryption features, along with example code using Axis2 and Rampart.
Also available in: Chinese   Japanese   Spanish  
Articles 16 Jun 2009
Transaction strategies: The High Concurrency strategy
Transaction strategies series author Mark Richards describes how to implement a transaction strategy in the Java platform for applications with high-throughput and high-user-concurrency requirements. An understanding of the trade-offs involved will help you ensure a high level of data integrity and consistency -- and spare you painful refactoring work late in the development process.
Also available in: Chinese   Japanese  
Articles 16 Jun 2009
JavaScript EE, Part 3: Use Java scripting API with JSP
In the previous two parts of this series, you've seen how to run JavaScript files on the server and how to call remote JavaScript functions with Ajax. This article explains how to use server-side JavaScript code with the JavaServer Pages (JSP) technology and how to build Asynchronous JavaScript and XML (Ajax) user interfaces that remain functional when JavaScript is disabled in the Web browser. The sample code consists of a small JSP tag library that you can reuse in your own applications as well as a dynamic Web form, which is generated with a piece of JavaScript code that can be executed on the Web server or in the Web browser.
Also available in: Chinese   Japanese  
Articles 02 Jun 2009
JSF 2 fu, Part 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. In this article -- second in a three-part series on JSF 2's new features -- JSF 2 Expert Group member David Geary shows you how your Web applications can best take advantage of templating and composite components.
Also available in: Chinese   Russian   Japanese  
Articles 02 Jun 2009
1 - 100 of 232 results | Next
Show Summaries | Hide Summaries