JBoss at Work

  Using JBoss AS 6
     Tom Marrs
      Architect
Your Profile
What’s new?



 Where does JBoss AS fit?



          How do I start?
What’s The Point?
New Product Offerings

It’s still JBoss AS underneath

JavaEE 6 and Servlet 3.0 makes it easier
Today’s Agenda
We’re Not Covering
JBoss – According to Me ☺
Who cares about app server internals?

Focus on JavaEE development & deployment

Keep it simple

More Examples!
Disclaimer
I am not associated with Red Hat or JBoss

I neither endorse or disapprove of their
   products

I like some products, and I don’t like others

But I do write about JBoss AS ☺
JBoss Overview
JBoss 6 Product Suite
jboss.org – Where’s JBoss AS?
JBoss Enterprise Data Services
JBoss Developer Studio
What’s New in JBoss AS 6?
JavaEE 6

Admin Console

Apache CXF for JAX-WS

RESTEasy 2.0
What’s New in JavaEE 6?
EJB 3.1

Servlet 3.0

Deployment
JavaEE 6 Deployment Changes
EJB classes can go in the WAR file

WEB-INF/classes
Installing JBoss AS 6
JBoss AS 6 Setup
Download / unzip the Zip file

Point JBOSS_HOME to install directory

Add JBOSS_HOME/bin to PATH
Startup JBoss AS 6
JBoss AS 6 Main Console
JBoss AS 6 Admin Console
Touring the Directory Structure
JBoss Overview – Review
JBoss Web Tier
Servlets

Servlet Context Listener

Servlet Filter
What’s New in Servlet 3.0?
Annotations

Asynchronous processing
Servlet 3.0 Annotations
@WebServlet

@WebServletContextListener

@ServletFilter

@InitParam
Original Servlet
Original web.xml
Annotated Servlet
Generated web.xml
Long-Running Servlet
Asynchronous Servlet
Asynchronous Listener
Annotated Servlet Context Listener
Servlet Context Listener –
   generated web.xml
Servlet Filter
Servlet Filter – Generated web.xml
JBoss EJB Tier
What’s New in EJB 3.1?
Removal of Local Business Interface

Singleton Beans

JPA is now a separate API
Servlet Invoking Stateless Session
               Bean
EJB 3.0 Example – Remember the
        Business Interface
EJB 3.0 Example – Stateless Session
              Bean
EJB 3.1 – Stateless Session Bean
JPA Example
Invoking the Entity – Stateless
    Session Bean      DAO
Invoking the Entity – DAO
Invoking the Entity – DAO
        … Cont’d
Configure Persistance Manager –
        persistance.xml
Data Sources
Send JMS Message
Send JMS Message
    … Cont’d
Configure JMS Queue
Message-Driven Bean (MDB)
Message-Driven Bean (MDB)
        … Cont’d
Message-Driven Bean (MDB)
        … Cont’d
JavaMail Configuration
Web Services
JAX-WS – SOAP/WSDL

JAX-RS – REST
SOAP/WSDL Web Services with
       Apache CXF
InventoryService – Interface
InventoryService – Implementation
RESTful Web Services with
        RESTEasy
Inventory Service
Inventory Service – Car
What’s The Point?
New Product Offerings

It’s still JBoss AS underneath

JavaEE 6 and Servlet 3.0 makes it easier
JBoss Resources
JBoss Resources
http://www.jboss.org/jbossas/docs

http://www.jboss.org/jbossas/docs/6-x.html

http://www.jboss.com/products

JBoss at Work: Using JBoss AS 6