Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Start the server and Launch the Administrative Console using the URL http://localhost:8080/console.
  2. Enter default username and password.
  3. Once in the welcome page. In console navigation, Under Services, Select Database Pools.





  4. On the next screen, Create a new database pool using Geronimo database pool wizard.





  5. On the next screen give the name as suggested in the figure. This will initiate the process to create a Derby Embedded XA datasource.





  6. Select the Driver jar and give the database name as userdbs(Remember this is the database we created in the previous step). Rest all fields can be set to default.





  7. Select Deploy to deploy the connector plan.





  8. Once done you can see the Database Pool jdbc/userds listed in the available database pools.





Creating a web based application client

  1. Right click under Project Explorer and Select New->Dynamic Web Project.


    Image Added


  2. Name the project as StatefulClient and Select Next.


    Image Added


  3. Keep the default settings as shown in the figure. Select Next.


    Image Added


  4. On the next screen keep default values. Select Next.


    Image Added


  5. Default values on this screen too. Select Finish.


    Image Added


  6. Right click on the StatefulClient project and Select New->Servlet.


    Image Added


  7. Name the package as ejb.stateful and Servlet as Controller.


    Image Added


  8. Keep the default values and Select Next.


    Image Added


  9. Keep the default values and Select Finish.


    Image Added
  10. Once the servlet is created it shows error. This is due to servlet api missing from the runtime. This can be easily resolved. Right click on StatefulClient project and Select properties.


    Image Added


  11. On the next screen select Java build path and select Libraries.


    Image Added


  12. Select Add External jars.


    Image Added


  13. Browse to your <GERONIMO_HOME>\repository\org\apache\geronimo\specs\geronimo-servlet_2.5_spec\1.1.2 and select geronimo-servlet_2.5_spec-1.1.2.jar and Select Open.


    Image Added


  14. Select Ok on the next screen this will remove all the errors.
    Image Added