How to create and manage datasources in AS7

In this post I’ll try to describe how to add and configure datasources in AS7, and related concepts like add/configure jdbc drivers and test connection of a created datasource.

As you probably already know AS7 has been announced by Red Hat officialy here. I’ll not go in deep details of what is new, cool and fast in AS7. Just have a look to the announce page to get a bird eye view of all the cool stuffs you can find there.
Before start with main contets about data source I just want to recall you 2 main concept in AS7 we will have to deal with in this article:

  1. Modular core: JBoss Modules offers true application isolation, hiding server implementation classes and only loads the classes your application needs. Class loading is concurrent for extreme performance. OSGi support is available the moment you install the application server. We will learn in this article to create a new module for new jdbc drivers, and we compare this approach to hot deployed driver analyzing plus and minus of each.
  2. Elegant administration Consistent and powerful management is available, ranging from a polished, user-friendly web console to Java and HTTP APIs to a command line tool to direct XML edits. Configuration data is centralized and user-focused. We will learn in this artcile how to add and manage datasources with all three approaches.
  3. Domain management JBoss AS 7 can be launched in two different modes. Domain mode allows you to run and manage a multi-server topology. Standalone mode runs a single server instance, a convenience choice for development. Many settings, such as port offsets and network interfaces, can be controlled with a single attribute. Rolling deployments are available. In this article we will discuss how to add and manage datasources in both mode, providing sample for both too. Domain mode is one of the main new concept and coolest feature to learn about AS7. If you want more info read documentation about this concepts here.

Read the rest of this entry »

IronJacamar Beta2 released

Just a little cross post to inform my readers that the project I’m working on full time as Core Developer at JBoss has reached Beta2.
Since I never write about it here, let me explain that IronJcamar implements the Java EE Connector Architecture 1.6 specification.
This is a quite great release, and we are eager to have your feedback.
We have added support for our extension to specification deployment descriptors. They are designed with easy-to-use for final users requirements in mind. These formats are set to be ones used in JBoss Application Server 7, so be sure to check out the XSDs and send your feedback.