ExampleWatsonAssistantJavaExtension
is a MicroProfile 5 and Jakarta EE 9.1 (Web Profile) web application for implementing an example Java extension for Watson Assistant with OpenLiberty.
- Pre-requisities:
- Java >= 8 is required on your
PATH
; for example, IBM Semeru Runtimes
- Java >= 8 is required on your
- Build and run:
- macOS or Linux:
./mvnw clean liberty:dev
- Windows:
mvnw clean liberty:dev
- macOS or Linux:
- Wait for the message:
CWWKF0011I: The defaultServer server is ready to run a smarter planet.
- Access at http://localhost:8080/api/helloworld/execute or https://localhost:8443/api/helloworld/execute
- Build:
podman build -t ewaje .
- Run:
podman run --rm -p 8080:8080 -p 8443:8443 -e WLP_LOGGING_CONSOLE_FORMAT=simple -it ewaje
- Wait for the message:
CWWKF0011I: The defaultServer server is ready to run a smarter planet.
- Access at http://localhost:8080/api/helloworld/execute or https://localhost:8443/api/helloworld/execute