Using BlazeDS Version 4 To Integrate A Flex Application With A Java Backend Built With Flash Builder

Introduction

Adobe and SpringSource are working together to make it easier for Java developers to use Java and Spring on the backend and Flex-Adobe's rich internet application framework [refer 2]--on the frontend.  Adobe has an open source project called BlazeDS [refer 8] that provides the plumbing to enable a Flex application to communicate data with a Java application running on a server.  The new version of the Flex IDE--Flash Builder 4 [refer 3]--provides extensive data wizards that can auto detect the services a Java application is exposing to a remote application such as the Flex client.  SpringSource has created a Spring Flex module [refers 1 and 6] that enables Java developers to use Spring to set up the BlazeDS plumbing on the server side and to use XML or annotations to mark which classes and methods should be available to be called by the Flex application.

[More]

Java Persistence Architecture 2.0 - Using The New TypedQuery Interface

Introduction

This is a continuation of articles on new features of JPA 2.0, which I'm studying because my programming team may adopt it as our standard for ORM. Another new feature provided by JPA 2.0 is TypedQuery. A TypedQuery is a JPA query that returns a specific type of Object. TypedQuery eliminates the need to cast the query result to a specific type or having to add a SuppressWarnings annotation to eliminate compiler warnings about unchecked conversions. TypedQuery is also used with the new JPA 2.0 CriteriaBuilder. Since some of the newer books and articles on JPA still only show the Query interface and don't mention the TypedQuery interface I thought a blog article and example application might be useful to others who are learning JPA 2.0.

[More]

Java Persistence Architecture 2.0 - Using The New ElementCollection Mapping

Introduction

I've been studying Java Persistence Architecture (JPA) 2.0 since we may adopt it on my programming team. One of the new features provided by JPA 2.0 is ElementCollection. An ElementCollection can be used to define a one-to-many relationship between an entity and a collection of basic values (for example, a collection of Strings).

[More]

Example Of Using Spring JDBC Execute Batch To Insert Multiple Rows Into A Database Table

Introduction

I recently needed to read several thousand objects from an XML file, create a collection of those objects, and then insert each object in the collection into a database table. Since my application uses Spring JDBC to interact with the database, I researched how to use the SimpleJDBCInsert class method executeBatch. The Spring online documentation for SimpleJDBCInsert does not have a good example of using this executeBatch, so I wrote this article to provide one.

[More]

Struts 2 Conventions and Annotations Tutorial and Example

I added to the Struts 2 documentation a tutorial and example application showing how to use Struts 2 conventions and annotations to replace using an XML file to configure a Struts 2 web application. The Struts 2 convention plugin provides a standard way of naming your Action classes, your views, and your action URLs that can eliminate the need to use XML to wire up a Struts 2 web application. The convention plugin also provides several annotations you can use when your application requires more sophisticated configuration than what is provided by the naming conventions.

The tutorial and example code are available in the Struts 2 website's beginner tutorials area.

Struts 2, Spring 3, and Hibernate 3 Example Application

I updated the previous example application I created to demonstrate how to use Struts 2, Spring, and Hibernate together in a web application. The example was updated in October 2010 to use the current versions of Struts 2 (2.2.1) and Spring (3.0.5). The application was also changed to have Spring create the in-memory HSQL database using the new Spring 3 jdbc:embedded-database tag.

To download the new version of the example application and to read more about how the example works, visit the previous blog article.

As always if this example or my article needs some improvement, doesn't work for you, or you have any other suggestions, just submit a comment below.

Struts 2 Spring Plugin - Excluding Its Transitive Dependencies To Use A Newer Version Of Spring

Introduction

When using the Struts 2 Spring plugin in your application and using Maven to manage your dependencies, Maven will include the plugin's transitive dependencies. The Struts 2 Spring plugin (version 2.2.1) has transitive dependencies on several Spring jar files, version 2.5.6 (this is as of October 2010). If you want to use the current version of those Spring jar files, then you should exclude the Struts 2 Spring plugin's transitive dependencies and explicitly include dependencies on the current Spring jar files. This article demonstrates how to use the current Spring jar files and the Struts 2 Spring plugin when using Maven to manage your artifacts.

[More]

Struts 2 How To Customize The Theme That Controls How A Struts 2 Tag Is Displayed In The Browser

Introduction

I was working on a project where I needed to change how the Struts 2 checkboxlist tag was rendered. Struts 2 includes several themes (simple, xhtml, css_xhtml that determine how each Struts 2 user interface tag is rendered in the browser. From reading several references (see below), I learned that you can easily customize how a Struts 2 tag is displayed in the browser. This article will explain how I customized how the Struts 2 checkboxlist tag is rendered. You can apply the same method described in this article to customize how the other Struts 2 tags are displayed.

[More]

Using Blackboard Learn 9 Web Services - Part 4 Getting, Creating, Updating, Deleting Users

Introduction

Blackboard Learn 9.1 provides a User web service that you can use to get information about one or more Blackboard users, create one or more new users in your Blackboard system, and delete existing users. Currently there is a bug in the User web service that prevents using the service to update the information for a current Blackboard user. This tutorial will review how to use the User web service. You should review the previous tutorials in this series prior to reading this part.

[More]

Using Blackboard Learn 9 Web Services - Part 3 Generating And Using Web Service Client Classes

Introduction

This tutorial will describe how to use Axis2--a Java framework for generating web service client classes--and the WSDL files provided by the Blackboard web services to create Java client classes that an application may use to interact with the Blackboard web services.  If you're not familiar with Axis2, visit their website at http://ws.apache.org/axis2/.

After generating the web service client classes, you can use the client classes to interact with the Blackboard web services.

[More]

More Entries

BlogCFC was created by Raymond Camden. This blog is running version 5.9.1.002. Contact Blog Owner