This is the BBMRI negotiator

Getting Started

This application uses a number of samply libraries which can be found at:

This application uses a database with the name of 'negotiator'. Feel free to change the name but remember to update it in pom.xml Following are the settings in the pom file that need to be updated according to your requirements

<database.server></database.server> <database.port>port.number</database.port> <>negotiator</> <database.username></database.username> <database.password>database.password</database.password>

Before starting the application, it is necessary to create a database.

Development mode

By settings the runtime property de.samply.development.authenticationDisabled to true in the bbmri.negotiator.xml, the application is started in development mode, that means:

  • You don't need to be authenticated from PERUN (our identity provider) to use the application. You can just select one of the two roles at the login screen.

  • You can run the application without connecting it with a directory. This would mean that you can not make/edit queries. However, you can still work with dummy queries given in the dummy data.

  • You can create dummy data by setting de.samply.development.deployDummyData to true(Also in the bbmri.negotiator.xml).

Now if the application is started; after creating the database, the dummy data would be added to the database.

The directory synchronization task fails in this case(because there is no connection to the directory) but that should not effect working of the negotiator. The directory synchronization can also be switched off by commenting out the following line from

timer.schedule(new DirectorySynchronizeTask(), 10000, 1000 * 60 * 60);


When installing it on a server, copy the file WEB-INF/lib/postgresql-9.3-1102-jdbc41.jar to the tomcat lib directory (/usr/share/tomcat7/lib/ on Ubuntu)

If you want to store the database configuration details on the server, copy the file META-INF/context.xml to /etc/tocmcat7/Catalina/localhost/ROOT.xml (if the application is deployed as ROOT.war, otherwise change the xml name accordingly) and change the values in the ROOT.xml file to the real values for the server. Otherwise the values of the META-INF/context.xml file are taken.

Code generation with jooq

Before you can generate the classes you should configure maven properly. In this case the properties for the database, the username and the password for the code generation are taken from your profile. Edit your settings.xml so that it looks like this:




You can then generate the classes by running the following command:

mvn org.jooq:jooq-codegen-maven:generate