Deploying BroadleafCommerce 2.0 on JBoss AS 7

First 2 steps are not really related to Broadleaf specific, but mentioned to make it easy to follow(copy/paste) the steps. Step#1: Configure DataSources in JBoss AS. <datasource jta=”true” jndi-name=”java:jboss/datasources/BroadleafDS” pool-name=”BroadleafDS_Pool” enabled=”true” use-java-context=”true” use-ccm=”true”> <connection-url>jdbc:mysql://localhost:3306/broadleaf</connection-url> <driver>mysql</driver> <security> <user-name>root</user-name> <password>admin</password> </security> <timeout> <idle-timeout-minutes>0</idle-timeout-minutes> <query-timeout>600</query-timeout> </timeout> </datasource> <datasource jta=”true” jndi-name=”java:jboss/datasources/BroadleafSecureDS” pool-name=”BroadleafSecureDS_Pool” enabled=”true” use-java-context=”true” use-ccm=”true”> <connection-url>jdbc:mysql://localhost:3306/broadleaf</connection-url> <driver>mysql</driver> <security> <user-name>root</user-name> […]

Read More

Spring3+JPA2+JavaEE6AppServer = Confusion Over Configuration

Spring is great, JavaEE6 is great and latest JavaEE6 Application servers are also great. This post is not a rant on Spring Vs JavaEE6, but my experience of porting a Spring3+JPA2(Hibernate) application on JBoss AS-7.1 App Server. My application requirement is very simple: Developing a couple of SOAP based webservices using Spring3.1 and JPA2(Hibernate) and […]

Read More

RESTEasy Tutorial Part 3 – Exception Handling

  RESTEasy Tutorial Series RESTEasy Tutorial Part-1: Basics RESTEasy Tutorial Part-2: Spring Integration RESTEasy Tutorial Part 3 – Exception Handling Exception Handling is an obvious requirement while developing software application. If any error occured while processing user request we should show the user an error page with details like brief exception message, error code(optional), hints […]

Read More

RESTEasy Tutorial Part-2: Spring Integration

  RESTEasy Tutorial Series RESTEasy Tutorial Part-1: Basics RESTEasy Tutorial Part-2: Spring Integration RESTEasy Tutorial Part 3 – Exception Handling RESTEasy provides support for Spring integration which enables us to expose Spring beans as RESTful WebServices. Step#1: Configure RESTEasy+Spring dependencies using Maven. Step#2: Configure RESTEasy+Spring in web.xml org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap org.jboss.resteasy.plugins.spring.SpringContextLoaderListener Resteasy org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher Resteasy /rest/* contextConfigLocation classpath:applicationContext.xml […]

Read More

RESTEasy Tutorial Part-1: Basics

  RESTEasy Tutorial Series RESTEasy Tutorial Part-1: Basics RESTEasy Tutorial Part-2: Spring Integration RESTEasy Tutorial Part 3 – Exception Handling RESTEasy is a JAX-RS implementation from JBoss/RedHat and is in-built in JBoss 6 onwards. Here I am going to show you how to develop a Simple RESTful Web Services application using RESTEasy and JBossAS7.1.1.FINAL. Step#1: […]

Read More