How do I get the list of Datasources available ?

WildFly / JBoss EAP 6/7 The simplest way to retrieve the list of Datasources at runtime is using the CLI: ./ –connect –command=”/subsystem=datasources:read-resource” | grep “data-source” or programmatically using the JMX Api: import*; import; import; import; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Set; public class HelloWorld { public static void … Read more

ESB Service Orchestration with JBPM

BPM promotes a model-based approach to task definitions: it encourages a top-down approach to service orchestration and requirements. Since the process are defined by the businessmen this should ensure that they drive the business the way they want. In this article we’ll see how SOA and BPM are the perfect combination to model your business.  One of the … Read more

JBoss Performance Tuning tips and hints – Part 1

Important notice: This article has been originally written for JBoss EAP 5 and contains some best practices to tune the application server and the environment where it’s running. Although some indications are still valid, we recommend also taking a look at the following articles which are more recent: JBoss AS 7 Performance tuning WildFly performance … Read more

JBoss Quiz

JBoss Quiz results ! here is the ranking of registered members who took the Quiz ! Register to join our community, lots of news are coming in the next weeks ! User Score Edeldee           Mayank             timwilliams       sarah_smith           alessio.comandini  akostadinov  prakash.parvath  aguerstenau  jeevank28  Alysha WillWatson rafaelcba Camuflage Jinxed stourwalk stefanom cotroni jasonh MClayton … Read more

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

How to let JBoss deploy an application after other apps?

If you are running JBoss AS 7 or WildFly check the following tutorial: Configuring JBoss AS 7 deployment order. For older JBoss 4/5/6 releases follow this tip: If your application needs to be deployed after other applications, the quickest way to instruct JBoss to do it is simply creating a “deploy.last” folder inside the “deploy” folder. … Read more

Quartz tutorial for JBoss users

Update: Please notice that an updated tutorial about Quartz Scheduler has been published on the following article: Quartz 2 tutorial on JBoss EAP and WildFly Quartz is a full-featured, open source job scheduling service that can be integrated with, or used along side virtually any Java EE or Java SE application – from the smallest … Read more