Seam JBPM integration

jBPM provides sophisticated functionality for workflow and task management. In the previous article we’ve exposed a basic introduction to JBPM. This one focus on Seam and JBPM integration. Seam provides two nice additions to JBPM the first one (which this tutorial is about) is a powerful integration between Seam components + JSF and JBPM, the second … Read more

How do I access Request or Session from Seam?

Two ways : 1) Easy way: use ServletContexts.instance().getRequest() in your backing bean. 2) Define a factory in your component descriptor and inject the HttpServletRequest or HttpSession directly into your Seam component. <factory name=”httpRequest”   value=”#{facesContext.externalContext.request}”   auto-create=”true”/> <factory name=”httpSession”   value=”#{facesContext.externalContext.request.session}”   auto-create=”true”/> @In HttpServletRequest httpRequest; @In HttpSession httpSession; If on the other hand you don’t … Read more

JBoss Seam tutorial 2

Several Java EE APIs (EJB, JSF, etc.), as well as popular open source frameworks like Spring, make use of the concept of dependency injection. Injection involves the automatic, runtime insertion of a property value into a bean. This simple concept can greatly simplify development, especially in a Java EE environment.   The Seam component model also … Read more

JBoss Seam tutorial 1

To be useful, your application has to be a multi tiered application that uses specific components for the presentation, business, and persistence tiers. If you have already developed one multi tiered application you know that lots of time is devoted to writing lots of “glue” code in order to connect your tier.  Starting from the presentation … Read more