THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- Start the server and Launch the Administrative Console using the URL http://localhost:8080/console.
- Enter default username and password.
- Once in the welcome page. In console navigation, Under Services, Select Database Pools.
- On the next screen, Create a new database pool using Geronimo database pool wizard.
- On the next screen give the name as suggested in the figure. This will initiate the process to create a Derby Embedded XA datasource.
- 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.
- Select Deploy to deploy the connector plan.
- Once done you can see the Database Pool jdbc/userds listed in the available database pools.
Creating a web based application client
- Right click under Project Explorer and Select New->Dynamic Web Project.
- Name the project as StatefulClient and Select Next.
- Keep the default settings as shown in the figure. Select Next.
- On the next screen keep default values. Select Next.
- Default values on this screen too. Select Finish.
- Right click on the StatefulClient project and Select New->Servlet.
- Name the package as ejb.stateful and Servlet as Controller.
- Keep the default values and Select Next.
- Keep the default values and Select Finish.
- 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.
- On the next screen select Java build path and select Libraries.
- Select Add External jars.
- 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.
- Select Ok on the next screen this will remove all the errors.