My Notepad

  • My Linux Notes
  • My Grid Notes
  • To do List
  • Friday, December 05, 2008

     

    Deploy Seam EAR under JBOSS

    Provided you have already archive your application into a *.ear archive, the easiest way to deploy the archive under jboss is to copy it into $JBOSS_HOME/server/default/deploy. Nice and simple!

    However, sometime you might want to modify some files within your application and expect to see the changes online immediately. In this case, you will want to deploy the application in its exploded version. Yes, Jboss support both single *.ear archive or exploded directory for your application.

    Suppose we got a sample *.EAR called jboss-seam-messages.ear and we want to deploy it in its exploded format and rename the application to message.ear. We will need,

    1.
    Create a new directory called "messages.ear" and cp jboss-seam-messages.ear into it, run,
    jar xvf jboss-seam-messages.ear
    This will unarchive the top level of of the archive, but not jboss-seam-messages.war and jboss-seam-message.jar.

    2. In a similar way, unarchive jboss-seam-message.war and jboss-seam-message.jar and rename the extacted directories to "messages.jar" and messages.war"

    3. update application.xml under message.ear/META-INF/ and modify revelvant entries.

    4. Copy the exploded directory to $JBOSS_HOME/server/default/deploy.

    Comments: Post a Comment



    << Home

    Archives

    December 2005   January 2006   February 2006   April 2006   May 2006   June 2006   July 2006   November 2006   February 2007   May 2007   June 2007   November 2007   February 2008   March 2008   April 2008   August 2008   December 2008   March 2009   April 2009   May 2009   June 2009   October 2009   November 2009   December 2009   May 2013  

    This page is powered by Blogger. Isn't yours?