This application provides functionality to create and manage drugs auctions (tenders). Application developed using last Netbeans IDE and should be deployed on GlassFish 4 or other J2EE 7 application container. To build from source code the Apache Maven can be used.
Main functions is:
The application consists of several parts:
LoadDrugs
The application loads drugs information from web sites. It is console java application. To interact with web sites it use Selenium 2.0 library. Application parses content of web site and store all the information in database tables. There is only one web adapter implemented. Now number of records in drugs database is about 20000.
ExtJS
This application just put ExtJS JavaScript library into GlassFish 4 application server. Thei application consists from one WEB module
AuCa
This is main application. Consists from two modules - EJB and WEB. There are several JPA 2.0 entities and EJB beans defined within EJB module. Entity classes used to access database data easier and also its define database structure. EJB classes provide access to JPA entities using Java Criteria API. Also EJB beans contains business logic for this application.
This application involves the integration with warehouse system. To achieve this the application uses Web Services. So as ESB not used in present configuration, the application has it's own mechanism to access web services. This feature based on Apache CXF library. The System provides user interface to configure calls of the warehouse web services.
WEB module provide access to EJB beans and JPA entities through servlets. The HTTP Post requests used to get data from servlet and put it into user interface layer. All of this data transferred in JSON format. The Jackson JSON processor used to convert from Java Object to JSON.