Вы находитесь на странице: 1из 2

Healthcare Application Sample

The Healthcare application is a JSR 286 portlet application for an information system on healthcare centers. The application comprises of two portlets that helps you in finding a healthcare center for a treatment. The portlets used for the application are: Search Health Center This portlet list downs the hospitals that have the facilities to treat a selected health problem. It searches for hospitals within a country, state, and its city. The search also lists customer rating and hospital information. Health Center Details This portlet displays the hospital information such as beds, intensive care units and operation theaters available. It displays hospital contact information, medical facilities, and the specialization. It also displays the average rating of the hospital, and comments and feedback given by other customers. The average rating of a hospital is decided based on the rating given by the patients treated in a hospital This sample application demonstrates the Web2.0 and J2EE capabilities of Portal toolkit available in IBM Rational Application Developer Version 8.0. Explore the sample to observe the following features: JPA (Java Persistence API) tooling support to connect to the backend database and generate JPA entities and JPA Manager Beans. JPA query builder to generate queries. Use RPC (Remote Procedure Call) Adapter tool to expose the JPAManagerBeans as RPC adapter service and generate a JSON response Dojo tooling support to generate GUI components and consume response generated as JSON objects Dojo IPC for dojo based client side inter portlet communication The organization of portlet project The types of resources and code generated by various wizards

Setup instructions
Prerequisites 1. IBM Rational Application Developer Version 8.0 2. IBM WebSphere Portal 7 Server with Web 2.0 feature pack installed. Note: The derby database is packaged with the sample under the WebContent->db folder. Web 2.0 Feature pack is required to publish the sample on IBM WebSphere Portal V7.0. Procedure To run the sample and test it on a server:

1- Import the HealthCareProject.zip file, Select File->Import->Existing Projects


into workspace. 2- Copy and extract the database file HealthCareDatabase.zip from HealthCareProject >WebContent->db to your local directory C:\db. 3- Open Database Development perspective. 4- Right-click Database Connections in Data Source Explorer view and select New. 5- New Connection wizard opens, select Derby as database manager. 6- Select Derby 10.1- Embedded JDBC Driver Default as JDBC driver. 7- Browse and select C:\db\HealthCareDatabse in Database Location field. 8- Click Finish.

9- Open Web perspective and in Enterprise Explorer right-click the HealthCareProject. 10- Select JPA Tools-> Configure Project for JDBC Deployment -> HealthCareDataBase in Connection drop-down and click Finish. 11- Right-click HealthCareProject and select Run as > Run on Server. 12- Select WebSphere Portal 7 and click Finish. The application opens in the web browser at the end of Run On Server operation.

Вам также может понравиться