13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

23.3 Deploying the EAR515automatic c<strong>on</strong>structi<strong>on</strong> of various comp<strong>on</strong>ents by the server. It’s not as dauntingas it sounds—at least not any more.23.3.1 JBossOne of the great things about JBoss is its dynamic or “hot” deployment. The<strong>on</strong>ly work involved in deploying your applicati<strong>on</strong>, if you have the EAR file builtproperly, is to copy the EAR file to the deployment directory. JBoss does allthe rest.Here is a listing of a very simple shell script that does what is needed, followedby an invocati<strong>on</strong> of that shell script to install our BudgetPro exampleEAR file.$ cat ejbinstallcp $* /usr/local/jboss-3.2.3/server/default/deploy$ ejbinstall budgetpro.ear$Of course, this assumes that execute permissi<strong>on</strong> has been given to thescript and it is located in the search path. Furthermore, it assumes that JBoss(versi<strong>on</strong> 3.2.3) was installed in /usr/local.23.3.2 Ger<strong>on</strong>imoGer<strong>on</strong>imo will be undergoing lots of change between the time that we writethis and the time that you read this. Be sure to check the Ger<strong>on</strong>imo Web site 1for the latest informati<strong>on</strong>.Ger<strong>on</strong>imo deployment is d<strong>on</strong>e as a separate executable step and is notfolded into the server. This separati<strong>on</strong> of functi<strong>on</strong>s keeps the server smaller andquicker <strong>on</strong> startup. The deployer has the smarts for reading in all the XMLc<strong>on</strong>figurati<strong>on</strong> informati<strong>on</strong> for your bean, building all the needed classes, andserializing it to package it up.To deploy our EAR, we execute the following command from theGer<strong>on</strong>imo home directory:$ java -jar bin/deployer.jar --install --module budgetpro.ear1. http://ger<strong>on</strong>imo.apache.org/

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!