Follow these steps to start the SmartDevices-Gatweway for the Use Case 5 Sample:
- Setup the services as described in Installation
- Copy the whole content of
uc5/smardes-middleware/
intosmardes-middleware-x.y.z\smardes-backend-services-x.y.z
- ... into
smardes-backend-services-x.y.z\externaldb\lib
For example, for MS SQL Database this would be sqljdbc42.jar.
- Add the following entry:
<persistence-unit name="uc5">
<properties>
<property name="hibernate.ejb.cfgfile" value="/hibernate_uc5.cfg.xml"/>
</properties>
</persistence-unit>
- Adjust DB Configuration, notably:
hibernate.connection.url
hibernate.connection.username
hibernate.connection.password
- Might be needed to add a prefix to the table, e.g. schema name or similar.
config/dbmon/uc5.properties:
dbmon.uc5.interval
- Copy the whole content of
uc5/smartdevices-gateway/config/
intosmartdevices-gateway/config/
- Start the smartdevices-gateway
- Check if smartdevices-gateway is accessable via swagger:
- Check if smartdevices-gateway is accessable via swagger:
- Configure the Settings in the Client-Application:
Server Address
- Url to the Server installation like "http://192.168.0.1"Server Port
- Port of the ServerUsername
- A valid Username- Pick a Username from the Configuration File
smartdevices-gateway/config/UserConfig.json
- In this Example one of
operator1 operator2 operator3 operator4
- Pick a Username from the Configuration File
Device Id
- A valid Device-Id- Convention: For all phones and tablets "A", for all watches "B".