JBoss at Work: Using JBoss AS 6

2,699 views
2,582 views

Published on

You're on another typical JavaEE-based project, and you find yourself writing the same old infrastructure code - again. Are you wondering if there's a easier way to incorporate the basics such as configuration, logging, HTTP, and email into your application? If so, then this presentation is for you. By using a number of Java-based utilities from Apache and similar projects, you can learn how to stop re-inventing the wheel.
We'll start with a simple Java application and add the ability to use:
Apache Commons Lang for String handling
Apache Commons Configuration to configure an application
Apache Velocity Templates and Apache Commons Email to format and send email messages
Apache Commons IOUtils to simplify File and Stream I/O
Apache POI to generate Excel spreadsheets
Joda Time to simplify Date/Time handling
SLF4J and Logback to log messages
Jasypt to encrypt sensitive data
By learning to leverage these utilities, attendees can simplify their applications by reducing/eliminating infrastructure code.

Published in: Technology
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,699
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

JBoss at Work: Using JBoss AS 6

  1. 1. JBoss at Work Using JBoss AS 6 Tom Marrs Architect
  2. 2. Your ProfileWhat’s new? Where does JBoss AS fit? How do I start?
  3. 3. What’s The Point?New Product OfferingsIt’s still JBoss AS underneathJavaEE 6 and Servlet 3.0 makes it easier
  4. 4. Today’s Agenda
  5. 5. We’re Not Covering
  6. 6. JBoss – According to Me ☺Who cares about app server internals?Focus on JavaEE development & deploymentKeep it simpleMore Examples!
  7. 7. DisclaimerI am not associated with Red Hat or JBossI neither endorse or disapprove of their productsI like some products, and I don’t like othersBut I do write about JBoss AS ☺
  8. 8. JBoss Overview
  9. 9. JBoss 6 Product Suite
  10. 10. jboss.org – Where’s JBoss AS?
  11. 11. JBoss Enterprise Data Services
  12. 12. JBoss Developer Studio
  13. 13. What’s New in JBoss AS 6?JavaEE 6Admin ConsoleApache CXF for JAX-WSRESTEasy 2.0
  14. 14. What’s New in JavaEE 6?EJB 3.1Servlet 3.0Deployment
  15. 15. JavaEE 6 Deployment ChangesEJB classes can go in the WAR fileWEB-INF/classes
  16. 16. Installing JBoss AS 6
  17. 17. JBoss AS 6 SetupDownload / unzip the Zip filePoint JBOSS_HOME to install directoryAdd JBOSS_HOME/bin to PATH
  18. 18. Startup JBoss AS 6
  19. 19. JBoss AS 6 Main Console
  20. 20. JBoss AS 6 Admin Console
  21. 21. Touring the Directory Structure
  22. 22. JBoss Overview – Review
  23. 23. JBoss Web TierServletsServlet Context ListenerServlet Filter
  24. 24. What’s New in Servlet 3.0?AnnotationsAsynchronous processing
  25. 25. Servlet 3.0 Annotations@WebServlet@WebServletContextListener@ServletFilter@InitParam
  26. 26. Original Servlet
  27. 27. Original web.xml
  28. 28. Annotated Servlet
  29. 29. Generated web.xml
  30. 30. Long-Running Servlet
  31. 31. Asynchronous Servlet
  32. 32. Asynchronous Listener
  33. 33. Annotated Servlet Context Listener
  34. 34. Servlet Context Listener – generated web.xml
  35. 35. Servlet Filter
  36. 36. Servlet Filter – Generated web.xml
  37. 37. JBoss EJB Tier
  38. 38. What’s New in EJB 3.1?Removal of Local Business InterfaceSingleton BeansJPA is now a separate API
  39. 39. Servlet Invoking Stateless Session Bean
  40. 40. EJB 3.0 Example – Remember the Business Interface
  41. 41. EJB 3.0 Example – Stateless Session Bean
  42. 42. EJB 3.1 – Stateless Session Bean
  43. 43. JPA Example
  44. 44. Invoking the Entity – Stateless Session Bean DAO
  45. 45. Invoking the Entity – DAO
  46. 46. Invoking the Entity – DAO … Cont’d
  47. 47. Configure Persistance Manager – persistance.xml
  48. 48. Data Sources
  49. 49. Send JMS Message
  50. 50. Send JMS Message … Cont’d
  51. 51. Configure JMS Queue
  52. 52. Message-Driven Bean (MDB)
  53. 53. Message-Driven Bean (MDB) … Cont’d
  54. 54. Message-Driven Bean (MDB) … Cont’d
  55. 55. JavaMail Configuration
  56. 56. Web ServicesJAX-WS – SOAP/WSDLJAX-RS – REST
  57. 57. SOAP/WSDL Web Services with Apache CXF
  58. 58. InventoryService – Interface
  59. 59. InventoryService – Implementation
  60. 60. RESTful Web Services with RESTEasy
  61. 61. Inventory Service
  62. 62. Inventory Service – Car
  63. 63. What’s The Point?New Product OfferingsIt’s still JBoss AS underneathJavaEE 6 and Servlet 3.0 makes it easier
  64. 64. JBoss Resources
  65. 65. JBoss Resourceshttp://www.jboss.org/jbossas/docshttp://www.jboss.org/jbossas/docs/6-x.htmlhttp://www.jboss.com/products

×