Hello JBuilder 5 Enterprise

This project is a reimplmentation of the EAS HelloEnterprise example found in <eas_root>/examples/HelloEnterprise. This project was created using the tools provided by JBuilder 5 Enterprise along with the Kelp and Kelly add-ins. The Kelly add-in adds support for the JOnAS EJB container. Kelp extends this support to the EJB Service that is included with EAS 4.0.1.

System requirements    Requires libraries    Building and deploying    FAQ   

System requirements

Requires libraries (in this order)

  1. Enhydra
    As created by Kelp install/configure
  2. JDKTools
    <java_home>/lib/tools.jar
    Included with the project
  3. Jonas 2 JERIMIE
    As created by JOnAS add-in

Building and deploying

After installing and configuring the required software and libraries, follow these steps to build and deploy the project.

  1. Set the JOnAS GenIC class to: org.enhydra.tool.server.GenICProxy

    Open the Build tab of the Project propererties dialog and select the Jonas 2 sub-tab to locate the GenIC class setting.

  2. Build the ejb archive.

    You can now rebuild the project to create the myEjbJar file. Before building the jar, the Jonas add-in will create the required deployment descriptors and generate stub classes for the Jonas EJB container.

  3. Use the Kelp Deployer to create and deploy the HelloEnterprise.ear.

    The Kelp Deployer will first create the HelloEnterprise.war file and then create the ear file. When assembling the ear file, the Kelp Deployer will add the required EJB client library to the embedded war file. After building the ear, the Kelp Deployer will copy the ear to the EAS deploy directory. This automatically deploys the ear if EAS is running. If EAS is not running, the ear will be deployed the next time you start the server.

    Note: A bug in the deployer will put a lock on the ejb-jar file when you run deploy the ear. Before rebuilding your project, you will need to restart JBuilder to release the lock. If you rebuild when the file is locked, you'll see an exception such as:
    "myEjbJar.ejbgrpx:" java.io.IOException: Error in writing existing jar file

  4. Test out the application

    If EAS is not already running, start it from the command line using the eas (or multiserver) script.

    You can connect to the index page of the application by connect to:
    http://localhost:8002/Hello

    You can also use the Web Administration Console to view information on the deployed application. To use the console, connect to:
    http://localhost:8001

    The default login for the console is:
    User name: admin
    Password: enhydra

    Note: The Kelp Deployer does not support running the from the IDE when you deploy an an enterprise application archive (.ear).

FAQ

Q: Do I need to configure or run JOnAS 2.3 or the Borland AppServer?
A: You need to configure JBuilder to locate these servers through the Enterprise Setup dialog. You do not need to configure or run JOnAS 2.3 or the Borland AppServer to use Kelly and Kelp with EAS.

Q: Why do I need to install the Borland AppServer?
A: Some of JBuilder Enterprise features will be disabled until you install the Borland AppServer.

Q: Where do I get the Borland AppServer?
A: It is included on the CD for JBuilder Enterprise.

Q: How do I enable the J2EE features for JBuilder Enterprise?
After installing the Borland AppServer, select Tools | Enterprise Setup and select Application Server, BAS 4.5. From this tab you can set the BAS installation directory. This will enable JBuilder's J2EE wizards.

Q: What is JOnAS?
A: JOnAS is an open source EJB container developed by Evidian in partnership with France Telecom. The Enhydra EJB container is based on JOnAS 2.2.7.

Q: Why do I need to install the JOnAS 2.3?
A: Kelly requires some classes that are in the JOnAS 2.3 but are not included in the Enhydra EJB container.

Q: Where do I get JOnAS?
A: JOnAS is availble for free from the Evidean website at: http://www.evidian.com/jonas/

Q: How do I configure the Kelly add-in?
A: After installing JOnAS 2.3, copying the JonasOpenTools_jb5.jar into JBuilder's lib/ext folder. Launch JBuilder and select Tools | Enterprise setup. Select the Application Server, Jonas 2. From here you can set the JOnAS installation directory. This is the root directory containing the ReleaseNotes.txt file.