Previous  Table of Contents  Next  

  J2EE Tools - Lightweight IDE for J2EE Version 1.4  
     
 

GETTING STARTED

Create, Build, Deploy and Run Hello World 1 Enterprise Application

This page describes how to create, build, deploy and run a new enterprise application called Hello World 1.
  1. Create Hello World 1 Enterprise Application Directories:

    1. Click the Application tab in the J2EE Tools window.
    2. Click File | Create | Project Directory.
    3. Type test in the Input dialog then click OK.
    4. Click File | Create | Application Directory.
    5. Type helloworld1 in the Input dialog then click OK.
    6. Click File | Create | Application Subdirectory.
    7. Type src in the Input dialog then click OK.
  2. Create Hello World 1 Enterprise Application Name:

    1. Click the Application Subdirectory box in the J2EE Tools window then click blank in the popup list.
    2. Click File | Create | Application Name.
    3. Type HelloWorld1 in the Input dialog then click OK.
  3. Create Hello World 1 Enterprise Application Build Files:

    1. Click the Application Directory box in the J2EE Tools window then click blank in the popup list.
    2. Click File | Create | Build File | Targets.
    3. Type targets.xml (default) in the Input dialog then click OK.
    4. Click the Application Directory box then click helloworld1.
    5. Click File | Create | Build File | Properties.
    6. Type build.properties (default) in the Input dialog then click OK.
    7. Click File | Create | Build File | Project.
    8. Type build.xml (default) in the Input dialog then click OK.
  4. Create Hello World 1 Enterprise Application Java Files:

    1. Click the Application Subdirectory box in the J2EE Tools window then click src in the popup list.
    2. Click File | Create | Java File | Enterprise Application | Interface | Remote Home.
    3. Type HelloWorld1Home.java (default) in the Input dialog then click OK.
    4. Click File | Create | Java File | Enterprise Application | Interface | Remote.
    5. Type HelloWorld1.java (default) in the Input dialog then click OK.
    6. Click File | Create | Java File | Enterprise Application | Client | RMI.
    7. Type HelloWorld1Client.java (default) in the Input dialog then click OK.
    8. Click File | Create | Java File | Enterprise Java Bean | Session.
    9. Type HelloWorld1Bean.java (default) in the Input dialog then click OK.
  5. Build Hello World 1 Enterprise Application Java Files:

    1. Click the Application Subdirectory box in the J2EE Tools window then click blank in the popup list.
    2. Click the Build File box then click build.xml.
    3. Click the Build Target box then click build (default).
    4. Click Tools | Build.
    5. Wait until Build Successful appears in the Build Target window.
    6. Click the X in the top right corner of the Build Target window.
  6. Start Application Server:

    1. Click Tools | Application Server | Start in the J2EE Tools window.
    2. Wait until Application server startup complete appears in the Start Application Server window.
    3. If the domain window appears, click _ (minimize) in the top right corner of the domain window.
  7. Create Hello World 1 Enterprise Application Enterprise Archive File:

    1. Click Tools | Deployment | Console in the J2EE Tools window.
    2. Wait until the Deployment Tool window appears.
    3. Click File | New | Application in the Deployment Tool window.
    4. Click Browse in the New Application dialog.
    5. Click Up One Level until Desktop appears in the Look In box.
    6. Double click My Computer in the area under the Look In box.
    7. Double click Local Disk (C:).
    8. Double click the fieldbird directory.
    9. Double click the j2eetools directory in fieldbird directory.
    10. Double click the j2ee directory in j2eetools directory.
    11. Double click the projects directory in j2ee directory.
    12. Double click the test directory in projects directory.
    13. Double click the helloworld1 directory in test directory.
    14. Click the File Name field then type HelloWorld1App.ear.
    15. Click New Application.
    16. Verify that the Application File Name field in the New Application dialog contains C:\fieldbird\j2eetools\j2ee\projects\test\helloworld1\HelloWorld1App.ear.
    17. Click OK.
  8. Create Hello World 1 Enterprise Application Enterprise Java Bean in Enterprise Archive File:

    1. Click File | New | Enterprise Bean in the Deployment Tool window.
    2. Click Next in the New Enterprise Bean Wizard - Introduction dialog.
    3. Click Create New JAR Module in Application in the New Enterprise Bean Wizard - EJB JAR General Settings dialog.
    4. Click the Create New JAR Module in Application box then click HelloWorld1App.
    5. Click the JAR Name field then type HelloWorld1JAR.
    6. Click Edit Contents.
    7. Verify that the Starting Directory box in the Edit Contents dialog contains C:\fieldbird\j2eetools\j2ee\projects\test\helloworld1.
    8. Double click C:\fieldbird\j2eetools\j2ee\projects\test\helloworld1 in the Available Files area.
    9. Double click the build directory in the helloworld1 directory.
    10. Double click the classes directory in the build directory.
    11. Click the HelloWorld1.class file in the classes directory then click Add.
    12. Click the HelloWorld1Bean.class file in the classes directory then click Add.
    13. Click the HelloWorld1Home.class file in the classes directory then click Add.
    14. Click OK.
    15. Click Next in the New Enterprise Bean Wizard - EJB JAR General Settings dialog.
    16. Click the Enterprise Bean Class box in the New Enterprise Bean Wizard - Bean General Settings dialog then click HelloWorld1Bean in the popup list.
    17. Click the Enterprise Bean Name field then type HelloWorld1Bean.
    18. Click the Enterprise Bean Type box Stateless Session.
    19. Click the Remote Home Interface box then click HelloWorld1Home.
    20. Click the Remote Interface box then click HelloWorld1.
    21. Click Next.
    22. Click No in the New Enterprise Bean Wizard - Expose as Web Service Endpoint dialog.
    23. Click Next.
    24. Click Finish in the New Enterprise Bean Wizard - Next Steps dialog.
  9. Create Hello World 1 Enterprise Application Client in Enterprise Archive File:

    1. Click File | New | Application Client in the Deployment Tool window.
    2. Click Next in the New Application Client Wizard - Introduction dialog.
    3. Click Create New AppClient Module in Application in the New Application Client Wizard - JAR File Contents dialog.
    4. Click the Create New AppClient Module in Application box then click HelloWorld1App.
    5. Click the AppClient Name field then type HelloWorld1Client.
    6. Click Edit Contents.
    7. Verify that the Starting Directory box in the Edit Contents dialog contains C:\fieldbird\j2eetools\j2ee\projects\test\helloworld1.
    8. Double click C:\fieldbird\j2eetools\j2ee\projects\test\helloworld1 in the Available Files area.
    9. Double click the build directory in the helloworld1 directory.
    10. Double click the classes directory in the build directory.
    11. Click the HelloWorld1Client.class file in the classes directory then click Add.
    12. Click OK.
    13. Click Next in the New Application Client Wizard - JAR File Contents dialog.
    14. Click the Main Class box in the New Application Client Wizard - General dialog then click HelloWorld1Client.
    15. Click Next.
    16. Click Finish in the New Application Client Wizard - Next Steps dialog.
    17. Click HelloWorld1Client under HelloWorld1App on the left side of the Deployment Tool window.
    18. Click the EJB Refs tab on the right side of the Deployment Tool window.
    19. Click Add in the EJB Refs tab.
    20. Click the Coded Name field in the Add Enterprise Bean Reference dialog then type test/SimpleHelloWorld1.
    21. Click the EJB Type box then click Session.
    22. Click the Interfaces box then click Remote.
    23. Click the Home Interface box then type HelloWorld1Home.
    24. Click the Local/Remote Interface box then type HelloWorld1.
    25. Click JNDI Name.
    26. Click the JNDI Name box then click HelloWorld1Bean.
    27. Click OK.
    28. Click File | Save in the Deployment Tool window
    29. Click File | Exit.
  10. Deploy Hello World 1 Enterprise Application Enterprise Archive File on Application Server:

    1. Click Tools | Deployment | Deploy in the J2EE Tools window.
    2. Wait until Command deploy executed successfully appears in the Deploy Archive File window.
    3. Click the X in the top right corner of the Deploy Archive File window.
  11. Run Hello World 1 Enterprise Application Client:

    1. Click Tools | Run | Application Client in the J2EE Tools window.
    2. Wait until Hello World 1 Session Bean appears in the Run Application Client window.
    3. Click the X in the top right corner of the Run Application Client window.
  12. Undeploy Hello World 1 Enterprise Application Enterprise Archive File on Application Server:

    1. Click Tools | Deployment | Undeploy in the J2EE Tools window.
    2. Wait until Command undeploy executed successfully appears in the Undeploy Archive File window.
    3. Click the X in the top right corner of the Undeploy Archive File window.
  13. Stop Application Server:

    1. Click Tools | Application Server | Stop in the J2EE Tools window.
    2. Wait until JMS service shutdown complete appears in the Start Application Server window.
    3. Click the X in the top right corner of the Start Application Server window.
    4. Click the X in the top right corner of the Stop Application Server window.
 

 
Get J2EE Tools from Field Bird at SourceForge.net Previous  Table of Contents  Next