Friday, July 8, 2011

Configuring JBoss 6 Web Profile to run JNDI + EAR Deployment

I have searched the net and jboss community for finding any source on configuring jbossweb-standalone configuration to support JNDI. But was not able to find, so i have started to build one.

How to configure JBoss 6 Web Profile to enable EAR deployment and JNDI lookup. The app that i'm working on is a legacy app with everything in a single war, uses JNDI for datasource lookup. I have a task to re-design the app to be an EE app to support n-tier deployment for scalability.
I chose JBoss 6 for the dev environment in eclipse using the JBoss AS plugin along with WTP. With the default standard profile the startup and down times are around 6 to 7 mins on my laptop. Also i will not be using any EJB, JMS, JMX, WS etc services.
Attached a sample profile, modified version of Web profile, which would initialize JNDI and deploy EAR's as well.

Will update this blog with the changes that were done for achieving this. Hope this helps someone who might be looking for this configuration. Click here to download the configuration.
Once downloaded
  1. Extract the contents to a temporary folder.
  2. Rename the extracted folder from jbossweb-standalone to something else (ex: jbossweb-jndi-ear) This is for just preserving the existing jbossweb-standalong profile
  3. Copy the folder to /server folder
  4. Start the jboss server using the command /run.bat -c (Ex: /bin/run.bat -c jbossweb-jndi-ear)
Resources:
1. Configuration download