The Mediaserver has been developed with the products below ( with those explicit in versions).
Maven is used as the 'project management tool', Maven fetches all the dependencies that the Mediaserver relies on - each dependency is declared in the pom.xml-file.
OBS: before you 'mvn clean package' , you have to create a database+user&password ( grant access )
- Java SE 'Oracle Corporation': JDK 1.7.0_51
- Maven 3.0.5
- git client 1.9.1
- Application Server: Glassfish 3.1.22
- Relational DBMS: MySQL 5.5 or PostgreSQL 9.1
- and jdbc drivers mysql-connector-java-5.1.23-bin.jar or postgresql-9.1-901-1.jdbc4.jar
- Make sure your SSH keys are set up properly for GitHub.
Clone the repository
git clone [email protected]:Inkimar/dina-mediaserver.git
cd dina-mediaserver
Ubuntu 14.04 LTS Kernel : 3.13.0-40-generic
The parent pom.xml resides in the 'MediaserverApp'-module.
All other modules fetch the java-version from that pom.xml
Use of liquibase which is a database-independent library for tracking, managing and applying database schema changes.
0. Create a database+user in your preferred db
MySQL or PostgreSQL
Configuration of chosen RDBMS affects the following modules/files:
- Module 'Mediaserver-database-management'
1.1 liquibase.properties - Module 'MediaserverApp-ejb'
2.1 glassfish-resources.xml
2.2 persistence.xml
3 drop respective -jdbc-jar into 'glassfish/.../lib-library'
images.tar is in the docs-directory,
the default path to the image-directory is set to '/opt/data/mediaserver/demo'
that image-path is configured in the ADMIN_CONFIG-table.
Extract the tar-file in '/opt/data/mediaserver/demo'
Make sure to 'chmod' the directories and files ( read&write )