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/consoleImage Removed].
  2. Enter default username and password.
  3. In the welcome page, Under Embedded DB, Select DB Manager.





  4. On the next page create a database userdbs and Select create.





  5. Once done you can see the userdbs database listed in DB Viewer portlet under Databases. This confirms that the database has been successfully created.





  6. As shown in the figure under Use DB, select userdbs from the dropdown box.





  7. Run the query as shown in the figure. This query will create table USERINFO with the columns FIRSTNAME, LASTNAME, SEX, USERNAME, PASSWORD.





    Code Block
    titleCreateTable.sql
    borderStylesolid
    CREATE TABLE USERINFO
    (
    FIRSTNAME char(20),
    LASTNAME  char(20),
    SEX       char(7),
    USERNAME  char(20),
    PASSWORD  char(20)
    )
    
  8. To verify the table creation is successful. Under View Tables for userdbs Database, Select Application.





  9. The next window will show the table USERINFO associated with userdbs Database.





Creating a datasource using Administrative Console

  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.
    Image Added
  4. On the next screen, Create a new database pool using Geronimo database pool wizard.
    Image Added
  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.
    Image Added
  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 default
    Image Added
  7. Select Deploy to deploy the connector plan.
    Image Added
  8. Once done you can see the Database Pool jdbc/userds listed in the available database pools.
    Image Added