Ed Ort

Thursday Jan 15, 2009

Part 3 of the GlassFish and MySQL Series Now Available

The article GlassFish and MySQL, Part 3: Creating and Using a Web Service is now available. This article is the third in a series of articles about the use of MySQL with GlassFish. Ive collaborated on these articles with Java technology evangelist Carol McDonald. In Part 3, you'll learn how easy it is to convert the controller layer of the web application introduced in Part 2, that is, the layer of the application that performs the create, read, update, and delete (CRUD) operations -- into a SOAP-based web service. You'll also learn how to create a client for the web service.

Wednesday Nov 05, 2008

GlassFish and MySQL: The Series

With more than 100 million downloads, MySQL is the world's most popular open-source database. MySQL's popularity is indicative of the growing adoption of open-source software. Developers are using open-source software because it offers them a reliable and low-cost alternative for developing their applications. This adoption trend extends to middleware too. For example, open-source servers are replacing proprietary servers in many enterprises. Case in point: GlassFish, an open-source, enterprise-quality, Java EE 5-compliant application server, enjoys significant popularity. With more than seven million downloads since its release in May 2005 and more than half a million downloads a month, GlassFish has a widespread and growing community of users.

Read the article GlassFish and MySQL, Part 1: A Perfect Combination for Web Applications and learn about the advantages of using MySQL with GlassFish and why the combination is a perfect choice for developing and deploying web applications.

This article is the first in a series of articles about the use MySQL with GlassFish. The second article in the series, GlassFish and MySQL, Part 2: Building a CRUD Web Application With Data Persistence, shows you how to use the NetBeans IDE with GlassFish and MySQL to build a create, read, update, and delete (CRUD) web application that accesses persistent data.

Friday Oct 31, 2008

Enterprise Tech Tip: Configuring JSON for RESTful Web Services in Jersey 1.0

There's a lot of interest in the developer community in RESTful web services. That's because the Representational State Transfer (REST) approach presents a relatively simple and flexible way of building and communicating with web services. Message exchanges with a RESTful web service can be conducted in any format, including JavaScript Object Notation (JSON). Because of its simple text format, JSON provides a good alternative to other message interchange formats such as XML and is particularly attractive as a meassage interchange format for RESTful web services.

This tip shows you how to build a Jersey-based web application that returns information in JSON format. Jersey is an open-source, production-ready reference implementation of JAX-RS, the Java API for RESTful Web Services (JSR-311).

See the tip Configuring JSON for RESTful Web Services in Jersey 1.0.

Tuesday Oct 21, 2008

Enterprise Tech Tip: Using WS-Trust Support in Metro to Secure Web Services

This is another in a series of Tech Tips related to Metro, the high performance, extensible, easy-to-use web services stack that is implemented in the GlassFish application server. This one, written by Jiandong Guo, a senior member of the Application Server Web Services Security GroupWeb Services Security, focuses on the support in Metro for WS-Trust. You will learn the basics of WS-Trust and its Security Token Service (STS) framework. You'll also learn about the support in Metro for WS-Trust and STS. And you'll see how easy it is to take advantage of this support to secure a web service using Metro and the NetBeans IDE.

See the tip Using WS-Trust Support in Metro to Secure Web Services.

Monday Sep 29, 2008

Enterprise Tech Tip: Securing Attachments With Metro 1.3

Over the past year, I've posted a number of Tech Tips related to Metro, the high performance, extensible, easy-to-use web services stack that is implemented in the GlassFish application server. These tips have been written by members of the Web Services Security group at Sun Microsystems. I just posted another Metro-related tip. This one, written by Web Services Security group member Ashutosh Shahi, shows you how to secure a SOAP Messages with Attachments (SwA) attachment.

See the Tech Tip Securing Attachments With Metro 1.3.

Monday Sep 22, 2008

Ask the Experts: OpenSSO, Sept. 29-Oct. 3

Got a question about OpenSSO, Sun's open-source project for access management, identity federation, and web services? Post it on the Ask the Experts page during the week of Sept. 29 and get answers from four key members of Sun's access and federation management team: Rajeev Angal, Aravindan Ranganathan, Dilli Dorai, and Qingwen Cheng.

Monday Sep 15, 2008

Enterprise Tech Tip: Composite UI Components in JSF 2.0 -- Part 2

As I mentioned in my previous post, this two-part Tech Tip introduces a powerful new feature in JavaServer Faces (JSF) 2.0 technology: composite user interface (UI) components. Part 1 of the tip shows you how create a composite UI component and use it in a web application.

Part 2 is now available. It shows you how to add functionality (through attached validators, converters, action listeners, and value change listeners) to the composite component you created.

See Composite UI Components in JSF 2.0 -- Part 1 and Composite UI Components in JSF 2.0 -- Part 2.

Tuesday Sep 02, 2008

Enterprise Tech Tip: Composite UI Components in JSF 2.0 -- Part 1

This Tech Tip introduces a powerful new feature in JavaServer Faces (JSF) 2.0 technology: composite user interface (UI) components. This feature allows you to turn any collection of page markup into a JSF UI component -- with attached validators, converters, action listeners, and value change listeners -- for use by page authors.

This tip is presented in two parts. In the first part, you'll learn you how create a composite UI component and use it in a web application. In the second part, which will be published in the next issue of the Enterprise Tech Tips, you'll learn how to add functionality to the composite component.

See Composite UI Components in JSF 2.0 -- Part 1.

Thursday Aug 28, 2008

RESTful Web Services and Comet

Comet is a programming technique that enables a server to push data to client browsers. The technique is often referred to as "reverse Ajax". RESTful web services are web services built using the Representational State Transfer (REST) architectural style. RESTful web services have come into widespread use because they tend to be lighter weight than SOAP-based web services.

Java Technology Evangelist, Carol McDonald, and Sun Staff Writer Rick Palkovic have written an interesting article that shows how RESTful web services with Comet can be used to produce an application in which the actions of one user affect the pages seen by other users. See RESTful Web Services and Comet.

Wednesday Aug 13, 2008

Young Developers Series

Programming is not just for adults anymore! The Young Developer Series teaches Java programming to anyone over 10 years of age, using a tool called Greenfoot. Read Wombat Object Basics and Wombat Classes Basics. See the Young Developers page for upcoming articles.

Wednesday Aug 06, 2008

Ask the Experts: JavaFX Preview, Aug. 18-22

The JavaFX family of products includes the tools and platform SDK for developers, web scripters, and designers to create dynamic applications for the next generation of web delivered content. Sun recently released a JavaFX Preview designed to help early adopters become familiar with JavaFX. Got a question about the JavaFX Preview? Post it on the Ask the Experts page from August 18 through August 22 and get answers from three key members of Sun's JavaFX engineering team: Josh Marinacci, Martin Brehovsky, and Larry McDonough.

Thursday Jul 31, 2008

Enterprise Tech Tip: Combining Groovy, Grails, MySQL, and the Java Persistence API

With the addition of support for scripting languages in the Java platform, there has been a lot of interest in combining into web applications scripting languages such as Groovy, Java technologies such as the Java Persistence API (JPA), and databases such as MySQL. Read the tip Combining Groovy, Grails, MySQL, and the Java Persistence API and learn how to create an online catalog application using the Groovy language, the Grails framework, the MySQL database, the Java Persistence API, and the GlassFish application server. You'll also learn about the latest NetBeans IDE offering, NetBeans IDE 6.5 Milestone 1 (or M1 for short), which offers many new features including support for Groovy and Grails.

JavaFX Learning Curve Journal Updates

In August and September 2007, the Sun Developer Network staff started a Learning Curve Journal, a series designed to help users get started with the JavaFX Script programming language (shortened to JavaFX Script hereafter). A number of significant advances have been made to the language since then. Perhaps most important is the availability of a compiler-based version of JavaFX Script, which replaces the earlier interpreter-based version of the language. The Learning Curve Journal described the use of the interpreter-based version of the language. The Learning Curve Journal has been updated to show you how to use the compiler-based version of the language. Other changes have been made to make the articles current.

Part 1: Exploring JavaFX Script gets you started with a simple JavaFX program, that is, a simple program written in the JavaFX Script language. You'll learn how to set up your environment for programming in JavaFX Script and how to build and run a JavaFX program.

Part 2: Declarative User Interfaces focuses on the declarative style of coding enabled by JavaFX Script. You'll see how this style can make the code for a graphical application simpler and more intuitive.

Part 3: JavaFX Script Functions shows you how to use JavaFX Script functions to implement actions in a Java FX program.

Part 4: Accessing a Web Service demonstrates how to use JavaFX Script to access a web service. In doing that, it also shows how easy it is to access Java technology classes, such as Swing classes, from JavaFX Script.

Tuesday Jul 15, 2008

Enterprise Tech Tip: Using P6Spy and the GlassFish Connection Pool to Trace Database Operations

Detecting performance bottlenecks is an important task in optimizing database operations in an application. One way to do that is to trace the database operations of the application. This information can help you fine tune the database calls that the application makes and in this way improve the application's performance. In this Tech Tip, Sun engineer Jagadish Ramu demonstrates how to use a tool called P6Spy to trace the database requests issued by an application running with the GlassFish v2 application server. Specifically, you'll learn how to trace SQL statements from an application that uses GlassFish's JDBC Connection Pool. It's all covered in the tip Using P6Spy and the GlassFish Connection Pool to Trace Database Operations.

Saturday Jul 12, 2008

Ask the Experts Transcript: Java SE 6 Update 10

Check out the transcript of the Ask the Experts session on Java SE 6 Update 10 that was held the week of July 7, 2008. Danny Coward, Java SE 6 Platform Lead; Ken Russell, Java Plug-In Lead; and Richard Bair, SwingLabs Lead, answered a wide variety questions, covering topics such as a Java Plugin for Mac OSX, Nimbus skins for components, the JKernel, and making a Java app download smaller.

Calendar

Feeds

Search

Links

Navigation

Referrers