The JConnector application is an open source application
showcasing connectivity to PCEHR system via B2B Gateway channel implemented in PCEHR system.
- To build and test the distributable package, an appropriate Java IDE or
build environment must be installed.
- Import all the projects into the JAVA IDE.
- Resolve Project dependencies and Run the project.
Running the Java Swing Program
- Find the DesktopApplication1 jar in the distribution folder.
- Download the jar and navigate to the jar folder from the command line.
- Run the jar from the command prompt using the command line -
java -jar DesktopApplication1.jar
The solution consists of the following projects:
- Thick Client (desktop application)
The user interface allowing the users to interact with the application.
- B2B Service Handlers
The SI layer that encapsulates the UI triggers and builds appropriate request objects and handles response objects.
- B2B Util Helper
The relevant helper classes of the application that packages the WSDLs, SSL and NASH certificate for mutual authentication.
- Request Models
Request objects for UI of the application.
- Response Models
Response objects for UI of the application.
Apache CXF generated classes from the WSDLs to invoke the web services.
Java Development Kit (JDK)
1. Download and install JDK 7:
2. Unpack the JDK distribution into a directory of your choice.
This directory will be your <JDK_HOME>and will be used in this document
to refer to the root directory of the JDK installation.
<JRE_HOME> will be used in this document to refer to <JDK_HOME>/jre.
3. Create a JAVA_HOME environment variable pointing to the <JDK_HOME>
directory in .
4. Add <JDK_HOME>/bin to the system path.
5. Install and configure Apache CXF 2.5.1 runtime.
Licensed under the Open Source (Apache) License; you may not use this
file except in compliance with the License. A copy of the License is in the
'license.txt' file, which should be provided with this work.