Deploy the DVD Store with embedded agent.

The DVD store can be built and deployed to JBoss using the provided ant script.

First, update jboss.dir to the correct path in seam/build/default.build.properties.

Then, change directory to seam/example/dvdstore and run ant explode.

This will build the DVD store sample application and deploy it as an EAR application in jboss/server/default/deploy/jboss-seam-dvdstore.ear.

Go to this newly created directory and follow the three steps below to embed Objectwiz Agent into the application. The agent is a very lightweight Java module that exposes the application and interacts with Objectwiz front-end.

  1. Copy objectwiz-agent.jar and objectwiz.conf.xml.sample to this directory (the root of the EAR application).

  2. Rename objectwiz.conf.xml.sample to objectwiz.conf.xml and update it so that the <application> tag contains the name of the application (jboss-seam-dvdstore for the sample application). The configuration file should then look like:

    <?xml version="1.0" encoding="UTF-8"?>

    <objectwiz>

    <application>jboss-seam-dvdstore</application>

    </objectwiz>

  3. Add objectwiz-agent.jar as an EJB module in META-INF/application.xml, under the <application> tag.

    <module>

    <ejb>objectwiz-agent.jar</ejb>

    </module>