This Java EE application allows users to create and manage transactions. The application is built using Java EE technologies and is designed to be deployed on a GlassFish server. This README file provides an overview of the application, instructions for setup, and steps to get the application running.
- Create, update, and delete transactions.
- View transaction details.
- User authentication and authorization.
- Persistence using Derby database.
- Java Development Kit (JDK) 8 or higher
- GlassFish Server 5.0 or higher
- Apache Derby database
- Netbeans 8.2
-
Download and Install GlassFish Server:
- Download GlassFish Server from the official website: GlassFish Downloads
- Follow the installation instructions provided on the website.
-
Start GlassFish Server:
- Navigate to the GlassFish installation directory.
- Run the following command to start the server:
bin/asadmin start-domain
-
Download and Install Apache Derby:
- Download Apache Derby from the official website: Apache Derby Downloads
- Follow the installation instructions provided on the website.
-
Set Up Derby Database:
-
Create a JDBC Realm:
-
Access the GlassFish Admin Console by navigating to
http://localhost:4848in your web browser. -
Go to
Configurations > server-config > Security > Realms. -
Click on
Newand fill out the form to create a new JDBC realm:- Name: jdbcRealm
- Classname: com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm
- JAAS Context: jdbcRealm
- JNDI: jdbc/FPHighDistinctionTaskWeb2
- User Table: USERS
- User Name Column: USERNAME
- Password Column: PASSWORD
- Group Table: GROUPS
- Group Name Column: GROUPNAME
- Password Encryption Algorithm: none
-
-
Create Connection Pool and JDBC Resource:
- Go to
Resources > JDBC > JDBC Connection Pools. - Click on
Newand create a connection pool for the Derby database with the following settings:- Pool Name: TransactionPool
- Resource Type: javax.sql.DataSource
- Datasource Classname: org.apache.derby.jdbc.ClientDataSource
- Click on
Nextand configure the following properties:- serverName: localhost
- portNumber: 1527
- databaseName: transactiondb
- User: (your database username)
- Password: (your database password)
- Click on
Finish. - Go to
Resources > JDBC > JDBC Resources. - Click on
Newand create a JDBC resource with the following settings:- JNDI Name: jdbc/TransactionDB
- Pool Name: TransactionPool
- Go to
-
Build the Application:
- Compile the Java EE application using your preferred IDE or build tool.
-
Deploy to GlassFish Server:
- Access the GlassFish Admin Console.
- Go to
Applications > Deploy. - Select the built WAR or EAR file of the application.
- Click on
OKto deploy the application.
-
Access the Application:
- Open your web browser and navigate to
http://localhost:8080/your-app-context.
- Open your web browser and navigate to
-
User Authentication:
- Log in with existing credentials
- User: JORTEGA Pass: admin
-
Manage Transactions:
- Use the application interface to create, view, update, and delete transactions.
Contributions are welcome! Please fork the repository and submit pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.
Thank you for using our Java EE transaction management application! If you have any questions or need further assistance, please feel free to contact us.


