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:
- 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.
- 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.
- 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.